public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/58225] New: In show_locus at fortran/error.c:391 pointer beyond end of line
@ 2013-08-23  6:00 zeccav at gmail dot com
  2013-08-23  6:24 ` [Bug fortran/58225] " kargl at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: zeccav at gmail dot com @ 2013-08-23  6:00 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 58225
           Summary: In show_locus at fortran/error.c:391 pointer beyond
                    end of line
           Product: gcc
           Version: 4.8.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zeccav at gmail dot com

In show_locus at fortran/error.c:391 statement
spaces = gfc_widechar_display_length (*p++);
*p points beyond the end of input line, cmax too big
Maybe connected to bug 54382?
two versions of test case follow
! free format
!1 format(i5) 
!print'()j'
!END
! fixed format
!3      FORMAT(BZ, (I5, F5.0, BN, F5.2, 2I5))
!       print '()J'
!       END


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

* [Bug fortran/58225] In show_locus at fortran/error.c:391 pointer beyond end of line
  2013-08-23  6:00 [Bug fortran/58225] New: In show_locus at fortran/error.c:391 pointer beyond end of line zeccav at gmail dot com
@ 2013-08-23  6:24 ` kargl at gcc dot gnu.org
  2013-09-02 12:37 ` dominiq at lps dot ens.fr
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: kargl at gcc dot gnu.org @ 2013-08-23  6:24 UTC (permalink / raw)
  To: gcc-bugs

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

kargl at gcc dot gnu.org changed:

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

--- Comment #1 from kargl at gcc dot gnu.org ---
Index: io.c
===================================================================
--- io.c        (revision 201791)
+++ io.c        (working copy)
@@ -1173,7 +1173,7 @@ check_format_string (gfc_expr *e, bool i
       if (e->value.character.string[i] != ' ')
         {
           format_locus.nextc += format_length + 1; 
-          gfc_warning ("Extraneous characters in format at %L",
&format_locus); 
+          gfc_warning ("Extraneous characters in format at %C"); 
           break;
         }
   return rv;

laptop-kargl:kargl[218] cat g.f90
1 format(i5)
print'()j'
END
laptop-kargl:kargl[219] gfc4x -c g.f90
g.f90:2.10:

print'()j'
          1
Warning: Extraneous characters in format at (1)


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

* [Bug fortran/58225] In show_locus at fortran/error.c:391 pointer beyond end of line
  2013-08-23  6:00 [Bug fortran/58225] New: In show_locus at fortran/error.c:391 pointer beyond end of line zeccav at gmail dot com
  2013-08-23  6:24 ` [Bug fortran/58225] " kargl at gcc dot gnu.org
@ 2013-09-02 12:37 ` dominiq at lps dot ens.fr
  2013-11-25  0:57 ` kargl at gcc dot gnu.org
  2017-09-26 20:59 ` dominiq at lps dot ens.fr
  3 siblings, 0 replies; 5+ messages in thread
From: dominiq at lps dot ens.fr @ 2013-09-02 12:37 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2013-09-02
     Ever confirmed|0                           |1

--- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Confirmed.


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

* [Bug fortran/58225] In show_locus at fortran/error.c:391 pointer beyond end of line
  2013-08-23  6:00 [Bug fortran/58225] New: In show_locus at fortran/error.c:391 pointer beyond end of line zeccav at gmail dot com
  2013-08-23  6:24 ` [Bug fortran/58225] " kargl at gcc dot gnu.org
  2013-09-02 12:37 ` dominiq at lps dot ens.fr
@ 2013-11-25  0:57 ` kargl at gcc dot gnu.org
  2017-09-26 20:59 ` dominiq at lps dot ens.fr
  3 siblings, 0 replies; 5+ messages in thread
From: kargl at gcc dot gnu.org @ 2013-11-25  0:57 UTC (permalink / raw)
  To: gcc-bugs

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

kargl at gcc dot gnu.org changed:

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

--- Comment #3 from kargl at gcc dot gnu.org ---
Remove myself from cc list


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

* [Bug fortran/58225] In show_locus at fortran/error.c:391 pointer beyond end of line
  2013-08-23  6:00 [Bug fortran/58225] New: In show_locus at fortran/error.c:391 pointer beyond end of line zeccav at gmail dot com
                   ` (2 preceding siblings ...)
  2013-11-25  0:57 ` kargl at gcc dot gnu.org
@ 2017-09-26 20:59 ` dominiq at lps dot ens.fr
  3 siblings, 0 replies; 5+ messages in thread
From: dominiq at lps dot ens.fr @ 2017-09-26 20:59 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="UTF-8", Size: 3164045 bytes --]

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

--- Comment #6 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> So, this is fixed.

Are you sure? I get

 print'()j'
                1
Warning: Extraneous characters in format at (1)

with 7.2 and a clean trunk.

IMO the marker should point to j.
>From gcc-bugs-return-576553-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 26 21:02:44 2017
Return-Path: <gcc-bugs-return-576553-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 10840 invoked by alias); 26 Sep 2017 21:02:42 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 10735 invoked by uid 48); 26 Sep 2017 21:02:36 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82331] ICE specializing template<auto> for function pointer
Date: Tue, 26 Sep 2017 21:02:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.2.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-82331-4-7CmbQrC6Iw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82331-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82331-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02582.txt.bz2
Content-length: 690

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-09-26
                 CC|                            |jason at gcc dot gnu.org,
                   |                            |marxin at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, started with r249320, accepted before the revision.
>From gcc-bugs-return-576554-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 26 21:26:41 2017
Return-Path: <gcc-bugs-return-576554-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 90437 invoked by alias); 26 Sep 2017 21:26: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 90371 invoked by uid 48); 26 Sep 2017 21:26:37 -0000
From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82332] [8 regression] r253156 breaks test case gfortran.dg/predcom-1.f
Date: Tue, 26 Sep 2017 21:26:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tkoenig at gcc dot gnu.org
X-Bugzilla-Status: 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-82332-4-ZQIbPpRudm@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82332-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82332-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02583.txt.bz2
Content-length: 427

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

Thomas Koenig <tkoenig at gcc dot gnu.org> changed:

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

--- Comment #1 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-576555-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 26 21:27:01 2017
Return-Path: <gcc-bugs-return-576555-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 91398 invoked by alias); 26 Sep 2017 21:27:01 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 91281 invoked by uid 55); 26 Sep 2017 21:26:52 -0000
From: "kristerw at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/39570] cabs and cabsf are named differently on NetBSD 5
Date: Tue, 26 Sep 2017 21:27:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 4.3.3
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: kristerw at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-39570-4-B1Tl45AVc9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-39570-4@http.gcc.gnu.org/bugzilla/>
References: <bug-39570-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02584.txt.bz2
Content-length: 880

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

--- Comment #13 from Krister Walfridsson <kristerw at gcc dot gnu.org> ---
Author: kristerw
Date: Tue Sep 26 21:26:21 2017
New Revision: 253216

URL: https://gcc.gnu.org/viewcvs?rev=253216&root=gcc&view=rev
Log:
2017-09-26  Krister Walfridsson  <krister.walfridsson@gmail.com>

        PR target/39570
        * gcc/config/netbsd-protos.h: New file.
        * gcc/config/netbsd.c: New file.
        * gcc/config/netbsd.h (SUBTARGET_INIT_BUILTINS): Define.
        * gcc/config/t-netbsd: New file.
        * gcc/config.gcc (tm_p_file): Add netbsd-protos.h.
        (tmake_file) Add t-netbsd.
        (extra_objs) Add netbsd.o.

Added:
    trunk/gcc/config/netbsd-protos.h
    trunk/gcc/config/netbsd.c
    trunk/gcc/config/t-netbsd
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config.gcc
    trunk/gcc/config/netbsd.h
>From gcc-bugs-return-576556-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 26 21:41:57 2017
Return-Path: <gcc-bugs-return-576556-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 127031 invoked by alias); 26 Sep 2017 21:41:57 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 127002 invoked by uid 48); 26 Sep 2017 21:41:53 -0000
From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/58225] In show_locus at fortran/error.c:391 pointer beyond end of line
Date: Tue, 26 Sep 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: fortran
X-Bugzilla-Version: 4.8.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tkoenig at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-58225-4-FhaebAkq66@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-58225-4@http.gcc.gnu.org/bugzilla/>
References: <bug-58225-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02585.txt.bz2
Content-length: 1314

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

Thomas Koenig <tkoenig at gcc dot gnu.org> changed:

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

--- Comment #7 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
(In reply to Dominique d'Humieres from comment #6)
> > So, this is fixed.
> 
> Are you sure? I get
> 
>  print'()j'
>                 1
> Warning: Extraneous characters in format at (1)
> 
> with 7.2 and a clean trunk.
> 
> IMO the marker should point to j.

Maybe we have different behavior on different systems,
depending on locale or who knows what else...

ig25@linux-d6cw:/tmp> /usr/bin/gfortran fmt.f90 2>&1 | od -a
0000000   f   m   t   .   f   9   0   :   1   :   8   :  nl  nl  sp   p
0000020   r   i   n   t  sp   '   (   )   j   '  nl  sp  sp  sp  sp  sp
0000040  sp  sp  sp   1  nl   W   a   r   n   i   n   g   :  sp   E   x
0000060   t   r   a   n   e   o   u   s  sp   c   h   a   r   a   c   t
0000100   e   r   s  sp   i   n  sp   f   o   r   m   a   t  sp   a   t
0000120  sp   (   1   )  nl

counts eight spaces before the "1" character.  What is the output on
your system?
>From gcc-bugs-return-576557-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 26 21:51:20 2017
Return-Path: <gcc-bugs-return-576557-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 27473 invoked by alias); 26 Sep 2017 21: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 27430 invoked by uid 48); 26 Sep 2017 21:51:16 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/46224] Enhancement: Issue warning when matching placement delete operator is missing
Date: Tue, 26 Sep 2017 21:51:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: 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: UNCONFIRMED
X-Bugzilla-Resolution:
X-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-46224-4-BrIjcpa8cd@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-46224-4@http.gcc.gnu.org/bugzilla/>
References: <bug-46224-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02586.txt.bz2
Content-length: 1550

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

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> ---
I get the following warnings for the 1st testcase:

$ /usr/local/bin/g++ -c -Wall -Wextra -pedantic -Weffc++ -Wplacement-new=2
46224.cc
46224.cc:12:13: warning: dynamic exception specifications are deprecated in
C++11 [-Wdeprecated]
        int) throw (std::bad_alloc)
             ^~~~~
46224.cc: In function ‘int main()’:
46224.cc:32:10: warning: variable ‘f’ set but not used
[-Wunused-but-set-variable]
     Foo* f;
          ^
$

And similarly for the 2nd testcase:

$ /usr/local/bin/g++ -c -Wall -Wextra -pedantic -Weffc++ -Wplacement-new=2
46224_a.cc
46224_a.cc:4:58: warning: dynamic exception specifications are deprecated in
C++11 [-Wdeprecated]
 void* operator new( std::size_t num_bytes, const char* ) throw
(std::bad_alloc);
                                                          ^~~~~
46224_a.cc: In function ‘void f()’:
46224_a.cc:13:10: warning: unused variable ‘p’ [-Wunused-variable]
     Foo* p = new(__FILE__) Foo();
          ^
$

I don't think the -Wdeprecated warnings are really the same as what this bug
requests though? I dunno. Leaving UNCONFIRMED for now.
>From gcc-bugs-return-576558-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 26 21:53:58 2017
Return-Path: <gcc-bugs-return-576558-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 48354 invoked by alias); 26 Sep 2017 21:53:58 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 40698 invoked by uid 48); 26 Sep 2017 21:53:54 -0000
From: "Melven.Roehrig-Zoellner at DLR dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libfortran/66756] libgfortran: ThreadSanitizer: lock-order-inversion
Date: Tue, 26 Sep 2017 21:53:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libfortran
X-Bugzilla-Version: 5.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: Melven.Roehrig-Zoellner at DLR dot de
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: INVALID
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-66756-4-IqgjjWS3lM@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66756-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66756-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02587.txt.bz2
Content-length: 359

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

--- Comment #8 from Melven.Roehrig-Zoellner at DLR dot de ---
Could this still be fixed / filtered out in the ThreadSanitizer somehow?

Otherwise the problem persists that you get huge amounts of false positives
with gfortran.

(I'm sorry, but I don't know where this problem should get reported then...)
>From gcc-bugs-return-576559-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 26 21:56:11 2017
Return-Path: <gcc-bugs-return-576559-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 30174 invoked by alias); 26 Sep 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 27612 invoked by uid 48); 26 Sep 2017 21:56:07 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/44515] improve message for missing ";"
Date: Tue, 26 Sep 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: 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: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-44515-4-iXh1dHht3O@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-44515-4@http.gcc.gnu.org/bugzilla/>
References: <bug-44515-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02588.txt.bz2
Content-length: 690

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

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

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

--- Comment #6 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed, I think David Malcolm is working on this...
>From gcc-bugs-return-576560-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 26 21:59:53 2017
Return-Path: <gcc-bugs-return-576560-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 54316 invoked by alias); 26 Sep 2017 21: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 54242 invoked by uid 48); 26 Sep 2017 21:59:49 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/47342] misleading diagnostic for member of undeclared class template partial specialization
Date: Tue, 26 Sep 2017 21: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.6.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-47342-4-8djU8U6isb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-47342-4@http.gcc.gnu.org/bugzilla/>
References: <bug-47342-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02589.txt.bz2
Content-length: 922

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

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

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

--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed, with current gcc the diagnostic is:

$ /usr/local/bin/g++ -c -Wall -Wextra -pedantic 47342.cc
47342.cc:26:14: error: invalid use of incomplete type ‘struct X<Y<T> >’
 X< Y<T> >::f()    // xxx
              ^
47342.cc:2:8: note: declaration of ‘struct X<Y<T> >’
 struct X : T
        ^
$

...which could still be improved.
>From gcc-bugs-return-576561-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 26 22:02:23 2017
Return-Path: <gcc-bugs-return-576561-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 57149 invoked by alias); 26 Sep 2017 22:02: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 57113 invoked by uid 48); 26 Sep 2017 22:02:19 -0000
From: "jsm28 at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82333] New: [8 Regression] powerpc64le _Float128 ICE in as_a, at machmode.h:345
Date: Tue, 26 Sep 2017 22:02:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jsm28 at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone cf_gcctarget
Message-ID: <bug-82333-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02590.txt.bz2
Content-length: 2700

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

            Bug ID: 82333
           Summary: [8 Regression] powerpc64le _Float128 ICE in as_a, at
                    machmode.h:345
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jsm28 at gcc dot gnu.org
  Target Milestone: ---
            Target: powerpc64le-linux-gnu

The following code, compiled with -O2 for powerpc64le-linux-gnu, produces the
following ICE.  This is a regression from GCC 7 (note you need -mfloat128 to
build with older compilers), reduced from glibc test-tgmath3, and probably
postdates the change to enable _Float128 support by default for powerpc64le
(since the glibc test built before then, then glibc build for powerpc64le was
broken for a while, and by the time it was fixed this ICE appeared).  Note, you
need both the _Complex long double functions and the apparently independent
_Complex _Float128 functions for this ICE to appear.

_Complex long double vld;
_Complex _Float128 vf128;

_Complex long double
fld (_Complex long double arg0)
{
  return 0;
}

_Complex _Float128
ff128 (_Complex _Float128 arg0)
{
  return 0;
}

void
tld (void)
{
  vld = fld (vld);
}

void
tf128 (void)
{
  vf128 = ff128 (vf128);
}

during RTL pass: expand
test-tgmath3.i: In function 'tf128':
test-tgmath3.i:25:9: internal compiler error: in as_a, at machmode.h:345
   vf128 = ff128 (vf128);
   ~~~~~~^~~~~~~~~~~~~~~
0x839dec scalar_mode as_a<scalar_mode>(machine_mode)
        /scratch/jmyers/glibc/many8/src/gcc/gcc/machmode.h:345
0x839dec convert_mode_scalar
        /scratch/jmyers/glibc/many8/src/gcc/gcc/expr.c:281
0x839dec convert_move(rtx_def*, rtx_def*, int)
        /scratch/jmyers/glibc/many8/src/gcc/gcc/expr.c:271
0x84091e store_expr_with_bounds(tree_node*, rtx_def*, int, bool, bool,
tree_node*)
        /scratch/jmyers/glibc/many8/src/gcc/gcc/expr.c:5628
0x8424f0 expand_assignment(tree_node*, tree_node*, bool)
        /scratch/jmyers/glibc/many8/src/gcc/gcc/expr.c:5319
0x71ff95 expand_gimple_stmt_1
        /scratch/jmyers/glibc/many8/src/gcc/gcc/cfgexpand.c:3655
0x71ff95 expand_gimple_stmt
        /scratch/jmyers/glibc/many8/src/gcc/gcc/cfgexpand.c:3751
0x722796 expand_gimple_basic_block
        /scratch/jmyers/glibc/many8/src/gcc/gcc/cfgexpand.c:5750
0x7281a6 execute
        /scratch/jmyers/glibc/many8/src/gcc/gcc/cfgexpand.c:6357
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-576562-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 26 22:04:02 2017
Return-Path: <gcc-bugs-return-576562-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 59911 invoked by alias); 26 Sep 2017 22:04:02 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 59809 invoked by uid 48); 26 Sep 2017 22:03:58 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/46224] Enhancement: Issue warning when matching placement delete operator is missing
Date: Tue, 26 Sep 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: c++
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-46224-4-P4gG1uJGIu@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-46224-4@http.gcc.gnu.org/bugzilla/>
References: <bug-46224-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02591.txt.bz2
Content-length: 1091

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-09-26
     Ever confirmed|0                           |1

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
No they're completely unrelated. Remove throw(std::bad_alloc) from both
testcases to prevent those warnings.

Here's a C++11 version of comment 1:

using size_t = decltype(sizeof(0));

void* operator new( size_t num_bytes, const char* );

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

void f()
{
    Foo* p = new(__FILE__) Foo();
}

EDG prints:

"del.cc", line 12: warning: function "operator new(size_t, const char *)" has
          no corresponding operator delete (to be called if an exception is
          thrown during initialization of an allocated object)
      Foo* p = new(__FILE__) Foo();
               ^
>From gcc-bugs-return-576564-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 26 22:28:47 2017
Return-Path: <gcc-bugs-return-576564-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 52590 invoked by alias); 26 Sep 2017 22:28:47 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 45466 invoked by uid 48); 26 Sep 2017 22:28:42 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/49574] Give a warning for insane overloading
Date: Tue, 26 Sep 2017 22:28:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: 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: bug_status cf_reconfirmed_on cc see_also everconfirmed
Message-ID: <bug-49574-4-gOgERGq2Gb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-49574-4@http.gcc.gnu.org/bugzilla/>
References: <bug-49574-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02593.txt.bz2
Content-length: 1001

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

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

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

--- Comment #3 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirming that in general warnings about insane overloading would be nice to
have; related to bug 51277 and bug 69855 and possibly others
>From gcc-bugs-return-576563-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 26 22:28:08 2017
Return-Path: <gcc-bugs-return-576563-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 5766 invoked by alias); 26 Sep 2017 22:28:08 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 5703 invoked by uid 55); 26 Sep 2017 22:28:03 -0000
From: "joseph at codesourcery dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82318] -fexcess-precision=standard has no effect on a libm function call
Date: Tue, 26 Sep 2017 22:28:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: joseph at codesourcery dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82318-4-aau7crQ5Vq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82318-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82318-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02592.txt.bz2
Content-length: 1966

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

--- Comment #4 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
I think the glibc reasoning is: libm functions do not need to behave as if 
written in standard C, so in particular F.6 does not apply to them and 
they may return values with excess precision.  Thus libm functions use 
math_narrow_eval (or equivalent assembler macros) in cases where there may 
be overflow and underflow (where excess *range* may be a problem, possibly 
resulting in missing errno setting), but not where there may be excess 
precision without excess range.  (Functions with fully defined results 
such as sqrt still take care to avoid excess precision in their results.)

However, that then implies GCC ought to know which standard library 
functions (only) might return with excess precision, so that casts / 
assignments of the results of those functions can remove that excess 
precision.  Which is tricky, both because it should only apply to standard 
library functions, not to user functions where it's the user's 
responsibility to compile consistently with -fexcess-precision=standard, 
and because the IR available in the front end does not represent the ABI 
information that particular return types are capable of being returned 
with excess precision (you'd need to distinguish a function's ABI return 
type from its semantic return type and produce calls with the ABI return 
type).

Or you could systematically use math_narrow_eval on all float / double 
function returns that might have excess range / precision (or maybe in the 
wrappers where wrappers are used, to avoid affecting glibc-internal uses 
that don't need this as well as to reduce the number of places needing 
changing - but if you do it in the wrappers you don't fix things for the 
__*_finite functions), but there would be some performance cost to doing 
so.
>From gcc-bugs-return-576565-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 26 22:34:21 2017
Return-Path: <gcc-bugs-return-576565-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 17110 invoked by alias); 26 Sep 2017 22: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 17073 invoked by uid 48); 26 Sep 2017 22:34:18 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/58225] In show_locus at fortran/error.c:391 pointer beyond end of line
Date: Tue, 26 Sep 2017 22:34:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 4.8.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-58225-4-iOE2UHbLIc@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-58225-4@http.gcc.gnu.org/bugzilla/>
References: <bug-58225-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02594.txt.bz2
Content-length: 1158

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

--- Comment #8 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
For test I have checked

1 format(i5)
print'()j'
end

I get

0000000    f   m   t   .   f   9   0   :   2   :   1   6   :  nl  nl  sp
0000020    p   r   i   n   t   '   (   )   j   '  nl  sp  sp  sp  sp  sp
0000040   sp  sp  sp  sp  sp  sp  sp  sp  sp  sp  sp   1  nl   W   a   r
0000060    n   i   n   g   :  sp   E   x   t   r   a   n   e   o   u   s
0000100   sp   c   h   a   r   a   c   t   e   r   s  sp   i   n  sp   f
0000120    o   r   m   a   t  sp   a   t  sp   (   1   )  nl            
0000135

For

print'()j'
end

I get

 print'()j'
        1
Warning: Extraneous characters in format at (1)

or

0000000    f   m   t   .   f   9   0   :   1   :   8   :  nl  nl  sp   p
0000020    r   i   n   t   '   (   )   j   '  nl  sp  sp  sp  sp  sp  sp
0000040   sp  sp   1  nl   W   a   r   n   i   n   g   :  sp   E   x   t
0000060    r   a   n   e   o   u   s  sp   c   h   a   r   a   c   t   e
0000100    r   s  sp   i   n  sp   f   o   r   m   a   t  sp   a   t  sp

(and 9 sp would be better).
>From gcc-bugs-return-576566-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 26 22:35:55 2017
Return-Path: <gcc-bugs-return-576566-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 18546 invoked by alias); 26 Sep 2017 22:35:54 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 18486 invoked by uid 48); 26 Sep 2017 22:35:51 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/44263] missing diagnostic on questionable array sizes with -pedantic
Date: Tue, 26 Sep 2017 22: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: 4.6.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: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-44263-4-FGwj5gPH9J@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-44263-4@http.gcc.gnu.org/bugzilla/>
References: <bug-44263-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02595.txt.bz2
Content-length: 993

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

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

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

--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
I get a warning for g with -pedantic:

$ /usr/local/bin/g++ -c -Wall -Wextra -pedantic 44263.cc
44263.cc: In function ‘void foo()’:
44263.cc:12:39: warning: size of array is not an integral constant-expression
[-Wpedantic]
  char g[(char *) &((struct S *) 0)->b - (char *) 0];
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
$

But I'm assuming you're still requesting another warning for h? Confirmed in
that case.
>From gcc-bugs-return-576567-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 26 23:05:24 2017
Return-Path: <gcc-bugs-return-576567-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 30559 invoked by alias); 26 Sep 2017 23:05: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 30154 invoked by uid 48); 26 Sep 2017 23:05:19 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82334] New: improve list of candidates for a member definition that doesn't match declaration
Date: Tue, 26 Sep 2017 23: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: enhancement
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-82334-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02596.txt.bz2
Content-length: 2050

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

            Bug ID: 82334
           Summary: improve list of candidates for a member definition
                    that doesn't match declaration
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: msebor at gcc dot gnu.org
  Target Milestone: ---

When the prototype of a member function definition doesn't match its
declaration GCC prints an error followed by a list of candidate overloads of
the member function.  That helpful but not as much as it could be.  It would be
even more useful if the note for each candidate indicated the way in which it
differs from the prototype of the definition, e.g., by underlining a missing
qualifier.

The test case below shows how the current note is less than optimal:

$ cat a.C && gcc -O2 -S -Wall -Wextra a.C
struct S {
  typedef int descriptor_t;
  typedef double real_t;
  typedef const char *strptr_t;
  typedef void *handle_t;

  int f (int, double, const char*, void*) const;
};

int S::f (descriptor_t, real_t, strptr_t, handle_t)
{
  return 0;
}
a.C:10:5: error: no declaration matches ‘int S::f(S::descriptor_t, S::real_t,
S::strptr_t, S::handle_t)’
 int S::f (descriptor_t, real_t, strptr_t, handle_t)
     ^
a.C:7:7: note: candidate is: ‘int S::f(int, double, const char*, void*) const’
   int f (int, double, const char*, void*) const;
       ^
a.C:1:8: note: ‘struct S’ defined here
 struct S {
        ^


In contrast, Clang emits a more helpful note:

.C:10:8: error: out-of-line definition of 'f' does not match any declaration in
      'S'
int S::f (descriptor_t, real_t, strptr_t, handle_t)
       ^
t.C:7:7: note: member declaration does not match because it is const qualified
  int f (int, double, const char*, void*) const;
      ^                                   ~~~~~
1 error generated.
>From gcc-bugs-return-576568-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 26 23:19:35 2017
Return-Path: <gcc-bugs-return-576568-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 74389 invoked by alias); 26 Sep 2017 23:19: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 74351 invoked by uid 48); 26 Sep 2017 23:19:31 -0000
From: "peter at cordes dot ca" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/68924] No intrinsic for x86  `MOVQ m64, %xmm`  in 32bit mode.
Date: Tue, 26 Sep 2017 23: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.3.0
X-Bugzilla-Keywords: missed-optimization, ssemmx
X-Bugzilla-Severity: normal
X-Bugzilla-Who: peter at cordes dot ca
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-68924-4-38gzVkG5Ea@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-68924-4@http.gcc.gnu.org/bugzilla/>
References: <bug-68924-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02597.txt.bz2
Content-length: 569

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

--- Comment #1 from Peter Cordes <peter at cordes dot ca> ---
There's  __m128i _mm_loadl_epi64 (__m128i const*
mem_addr)(https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=movq&expand=5450,4247,3115&techs=SSE2),
which gcc makes available in 32-bit mode.

This does solve the correctness problem for 32-bit, but gcc still compiles it
to a separate vmovq before a vpmovzxbd %xmm,%ymm.  (Using _mm_loadu_si128 still
optimizes away to vpmovzxbd (%eax), %ymm0.)

https://godbolt.org/g/Zuf26P
>From gcc-bugs-return-576569-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 26 23:27:46 2017
Return-Path: <gcc-bugs-return-576569-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 127036 invoked by alias); 26 Sep 2017 23:27: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 125153 invoked by uid 48); 26 Sep 2017 23:27:42 -0000
From: "kargl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/81509] Wrong compilation error: iand/ieor/ior + boz + -stdò008
Date: Tue, 26 Sep 2017 23:27:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: kargl at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority cc bug_severity
Message-ID: <bug-81509-4-lIalcm59jV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81509-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81509-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02598.txt.bz2
Content-length: 403

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

kargl at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P5                          |P4
                 CC|                            |kargl at gcc dot gnu.org
           Severity|enhancement                 |normal
>From gcc-bugs-return-576570-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 01:14:14 2017
Return-Path: <gcc-bugs-return-576570-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 87212 invoked by alias); 27 Sep 2017 01:14:14 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 87148 invoked by uid 48); 27 Sep 2017 01:14:09 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/44854] Improve diagnostic for missing member name or ';' in a struct
Date: Wed, 27 Sep 2017 01: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.6.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 see_also everconfirmed
Message-ID: <bug-44854-4-ZB5MLIsOdZ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-44854-4@http.gcc.gnu.org/bugzilla/>
References: <bug-44854-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02599.txt.bz2
Content-length: 1043

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

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

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

--- Comment #3 from Eric Gallager <egallager at gcc dot gnu.org> ---
Current gcc now says:

$ /usr/local/bin/gcc -c 44854.c
44854.c:1:18: warning: declaration does not declare anything
 struct foo { int };
                  ^
44854.c:1:18: warning: no semicolon at end of struct or union
$

This is better than before, but I guess it could still be improved though. So,
confirmed. Related to bug 44515.
>From gcc-bugs-return-576571-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 01:18:12 2017
Return-Path: <gcc-bugs-return-576571-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 90900 invoked by alias); 27 Sep 2017 01:18:12 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 90850 invoked by uid 48); 27 Sep 2017 01:18:07 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/51066] [C++0x] warning about binding an rvalue-reference to an implicit conversion result
Date: Wed, 27 Sep 2017 01: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.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: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-51066-4-SKAMIggnRU@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-51066-4@http.gcc.gnu.org/bugzilla/>
References: <bug-51066-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02600.txt.bz2
Content-length: 601

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

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

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

--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed that there is currently no warning.
>From gcc-bugs-return-576572-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 01:21:44 2017
Return-Path: <gcc-bugs-return-576572-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 93495 invoked by alias); 27 Sep 2017 01:21: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 93458 invoked by uid 48); 27 Sep 2017 01:21:40 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/31377] wrap_help error
Date: Wed, 27 Sep 2017 01:21:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 4.1.2
X-Bugzilla-Keywords: diagnostic
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 cf_reconfirmed_on cc everconfirmed bug_severity
Message-ID: <bug-31377-4-kGwSW5xz6a@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-31377-4@http.gcc.gnu.org/bugzilla/>
References: <bug-31377-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02601.txt.bz2
Content-length: 751

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

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

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

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed that wrap_help in gcc/opts.c still has the code in question; please
submit a patch to the gcc-patches mailing list for review.
>From gcc-bugs-return-576573-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 01:32:46 2017
Return-Path: <gcc-bugs-return-576573-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 103909 invoked by alias); 27 Sep 2017 01:32: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 103845 invoked by uid 48); 27 Sep 2017 01:32:37 -0000
From: "pskocik at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82335] New: Incorrect _Pragma expansion with in complex macro expressions
Date: Wed, 27 Sep 2017 01: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: 5.4.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pskocik 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-82335-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02602.txt.bz2
Content-length: 1314

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

            Bug ID: 82335
           Summary: Incorrect _Pragma expansion with in complex macro
                    expressions
           Product: gcc
           Version: 5.4.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pskocik at gmail dot com
  Target Milestone: ---

Created attachment 42239
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42239&action=edit
reproducer for "Incorrect _Pragma expansion with in complex macro expressions";
compile with -Wall -Wextra

Basically, _Pragma's expansions (as shown with gcc -E) seem to get shifted out
of some slightly "more complex" macro expressions, which renders them
ineffective.

Attached is one piece of code that reproduces the problem. When compiled with
`-Wall -Wextra`, the warning which should've been silenced isn't, because the
#pragma push-pop pair gets shifted out of the expression.

It's hard to pinpoint exactly what causes this, and the problem goes away with
minor complexity reductions (such as replacing a macro (e.g., the tof macro)
with what it expands to), but it seems to stick in more complex contexts.

clang handles everything fine.
>From gcc-bugs-return-576574-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 01:33:35 2017
Return-Path: <gcc-bugs-return-576574-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 128603 invoked by alias); 27 Sep 2017 01:33: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 128535 invoked by uid 48); 27 Sep 2017 01:33:31 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/55254] Warn for implicit conversion from int to char
Date: Wed, 27 Sep 2017 01: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.7.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: 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-55254-4-fONvm0iI5u@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-55254-4@http.gcc.gnu.org/bugzilla/>
References: <bug-55254-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02603.txt.bz2
Content-length: 1531

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

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

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

--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
I made a fuller testcase:

$ cat 55254.cc
#include <string>

int foo(int eighty)
{
        std::string foo = std::string(80, '=');
        std::string bar = std::string('=', 80);
        std::string baz = std::string(int('='), eighty);
        (void)foo;
        (void)bar;
        (void)baz;
        if (eighty == 0) {
                eighty = '=';
                return eighty;
        }
        return 80;
}
$ /usr/local/bin/g++ -c -Wall -Wextra -Wnarrowing -Wsign-conversion
-Wconversion -pedantic -Weffc++ 55254.cc
55254.cc: In function ‘int foo(int)’:
55254.cc:7:48: warning: conversion from ‘int’ to ‘char’ may change value
[-Wconversion]
  std::string baz = std::string(int('='), eighty);
                                                ^
$

So, I get a warning, but not where the reporter was requesting it (which is
probably my fault). Confirmed that there could still be a warning for bar.
>From gcc-bugs-return-576575-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 01:43:25 2017
Return-Path: <gcc-bugs-return-576575-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 39347 invoked by alias); 27 Sep 2017 01:43: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 39291 invoked by uid 48); 27 Sep 2017 01:43:19 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/55767] flowing off end of function which returns a value isn't treated as an error by default
Date: Wed, 27 Sep 2017 01:43:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.6.3
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: enhancement
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-55767-4-fq5TcX7BNG@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-55767-4@http.gcc.gnu.org/bugzilla/>
References: <bug-55767-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02604.txt.bz2
Content-length: 1785

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

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> ---
Yup, -Werror=return-type makes gcc reject the reporter's example:

$ /usr/local/bin/g++ -c -Wall -Wextra -pedantic -Werror=return-type 55767.cc
55767.cc: In function ‘int& foo()’:
55767.cc:3:13: error: no return statement in function returning non-void
[-Werror=return-type]
 int& foo() {}
             ^
cc1plus: some warnings being treated as errors
$

(In reply to Jonathan Wakely from comment #1)
> It's not always possible to make it a hard error and refuse to compile the
> code. The function might call a function that never returns (but isn't
> marked with a noreturn attribute) or might be of the form:
> 
>   int& f(bool b) {
>     if (b) {
>       static int i;
>       return i;
>     }
>   }
> 
> If this is never called with a false argument there's no problem. If it's
> never called at all there's no problem.
> 
> Unless GCC's flow analysis is improved I think the most you can hope for is
> enabling -Wreturn-type by default.
> 

There's several bugs with -Wreturn-type I'd like to see fixed before enabling
it by default, for example, bug 55976, bug 68336, and bug 60440

> I use -Werror=return-type, the warning's there already, use it if you want
> it.

Since that works in this case, I'm closing this bug as INVALID.
>From gcc-bugs-return-576576-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 01:46:48 2017
Return-Path: <gcc-bugs-return-576576-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 44363 invoked by alias); 27 Sep 2017 01:46: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 44316 invoked by uid 48); 27 Sep 2017 01:46:44 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/55361] Access control in templates only happens when instantiating a method
Date: Wed, 27 Sep 2017 01: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.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: 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-55361-4-IiTHfk1dOZ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-55361-4@http.gcc.gnu.org/bugzilla/>
References: <bug-55361-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02605.txt.bz2
Content-length: 838

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

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

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

--- Comment #6 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #4)
> unless this is recategorised as a diagnostic enhancement request this is
> clearly invalid, the compiler is not required to give an error for this code

Since this has since been recategorized as an enhancement, I'm confirming it.
>From gcc-bugs-return-576577-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 01:53:52 2017
Return-Path: <gcc-bugs-return-576577-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 108505 invoked by alias); 27 Sep 2017 01: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 108414 invoked by uid 48); 27 Sep 2017 01:53:49 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/57021] Better error message for * missing an expression or rather using a non-type as a cast
Date: Wed, 27 Sep 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: c
X-Bugzilla-Version: 4.8.0
X-Bugzilla-Keywords: diagnostic, error-recovery
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
Message-ID: <bug-57021-4-FZ7CNHSYsj@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-57021-4@http.gcc.gnu.org/bugzilla/>
References: <bug-57021-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02606.txt.bz2
Content-length: 669

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

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

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

--- Comment #3 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed that this diagnostic could be improved.
>From gcc-bugs-return-576578-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 01:55:28 2017
Return-Path: <gcc-bugs-return-576578-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 111921 invoked by alias); 27 Sep 2017 01:55:28 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 111823 invoked by uid 48); 27 Sep 2017 01:55:20 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/60337] s390: Function arguments are not aligned
Date: Wed, 27 Sep 2017 01: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: 4.9.0
X-Bugzilla-Keywords: ABI, 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: krebbel 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-60337-4-HrLo0KujBf@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-60337-4@http.gcc.gnu.org/bugzilla/>
References: <bug-60337-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02607.txt.bz2
Content-length: 623

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

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

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

--- Comment #6 from Eric Gallager <egallager at gcc dot gnu.org> ---
Since this has an assignee I'm changing the status to ASSIGNED
>From gcc-bugs-return-576579-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 01:57:51 2017
Return-Path: <gcc-bugs-return-576579-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 128387 invoked by alias); 27 Sep 2017 01: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 120764 invoked by uid 48); 27 Sep 2017 01:57:46 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/55791] gcc fails to detect wrong type in sizeof in malloc
Date: Wed, 27 Sep 2017 01: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.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-55791-4-YntAVXVbY8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-55791-4@http.gcc.gnu.org/bugzilla/>
References: <bug-55791-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02608.txt.bz2
Content-length: 630

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

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

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

--- Comment #3 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed, I think I've probably made this mistake myself before, actually
>From gcc-bugs-return-576580-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 01:58:20 2017
Return-Path: <gcc-bugs-return-576580-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 31672 invoked by alias); 27 Sep 2017 01:58: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 29964 invoked by uid 48); 27 Sep 2017 01:58:16 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/59552] Warning when non-trivial type parameter is passed by value but not changed in function
Date: Wed, 27 Sep 2017 01:58:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.8.2
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: enhancement
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-59552-4-4O46a0x06f@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-59552-4@http.gcc.gnu.org/bugzilla/>
References: <bug-59552-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02609.txt.bz2
Content-length: 602

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

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

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

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Could you give an example testcase please?
>From gcc-bugs-return-576581-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 02:02:24 2017
Return-Path: <gcc-bugs-return-576581-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 57006 invoked by alias); 27 Sep 2017 02:02:24 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 56964 invoked by uid 48); 27 Sep 2017 02:02:19 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug objc/80912] enhancement: -Wundeclared-selector improvements
Date: Wed, 27 Sep 2017 02:02:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: objc
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: diagnostic
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: bug_severity
Message-ID: <bug-80912-4-5LmzKFa37p@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80912-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80912-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02610.txt.bz2
Content-length: 302

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement
>From gcc-bugs-return-576582-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 03:05:40 2017
Return-Path: <gcc-bugs-return-576582-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 64002 invoked by alias); 27 Sep 2017 03: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 63904 invoked by uid 48); 27 Sep 2017 03:05:34 -0000
From: "jvdelisle at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/82324] Problem in new trunk test case gfortran.dg/promotion_4.f90
Date: Wed, 27 Sep 2017 03:05:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: testsuite
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jvdelisle at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: janus at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-82324-4-g2RcEL6Sg4@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82324-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82324-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02611.txt.bz2
Content-length: 798

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

Jerry DeLisle <jvdelisle at gcc dot gnu.org> changed:

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

--- Comment #6 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
A side note for folks.  One can:

use iso_fortran_env

and then inquire about what kinds are supported with:

real_kinds or integer_kinds which are set to an array of values.

On my system here:

program quick
  use iso_fortran_env
  print *, real_kinds
end program

$ gfc quick.f90 
$ ./a.out 
           4           8          10          16

On Raspberry pi (arm) is gives:

           4           8
>From gcc-bugs-return-576583-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 03:11:14 2017
Return-Path: <gcc-bugs-return-576583-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 68647 invoked by alias); 27 Sep 2017 03:11: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 68601 invoked by uid 48); 27 Sep 2017 03:11:09 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/59552] Warning when non-trivial type parameter is passed by value but not changed in function
Date: Wed, 27 Sep 2017 03: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.2
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-59552-4-zGT99ZNuus@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-59552-4@http.gcc.gnu.org/bugzilla/>
References: <bug-59552-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02612.txt.bz2
Content-length: 1902

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

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

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

--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> ---
The request refers to arguments of non-trivial types but I think it's just as
applicable to trivial types, if not more.  A test case for an expensive-to-copy
trivial type might look something like this.  The caller of f0() must make a
copy of x but the caller of g0() need not, and GCC just passes the address of x
to it.  Since the definition of f0() doesn't change the argument, it would be
more efficient if the caller didn't have to make the copy.  In C++, GCC could
suggest to declare f0() to take its argument by const reference instead.  (In
C, it could suggest to take it by const pointer.)  In addition, declaring the
const reference or pointer argument restrict would make it clear that the
callee doesn't change the argument when it's passed by reference (this
optimization is the subject of pr81009).

typedef struct Big {
  char a[32];
} Big;

int __attribute__ ((noclone, noinline))
f0 (Big x)   // suggest to declare f0 (const Big&) instead
{ return __builtin_strlen (x.a); }

int __attribute__ ((noclone, noinline))
g0 (const Big *x) { return __builtin_strlen (x->a); }

extern Big x;

int f1 (void)
{
  int n = f0 (x);
  return n + 1;
}

int g1 (void)
{
  int n = g0 (&x);
  return n + 1;
}

I suspect the request for a warning for non-trivial types is based on the
assumption that such a type is expensive to copy.  That may or may not be true
depending on the definition of the type but regardless, I think there is an
opportunity here for GCC to help users write more efficient code.
>From gcc-bugs-return-576584-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 03:16:31 2017
Return-Path: <gcc-bugs-return-576584-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 72551 invoked by alias); 27 Sep 2017 03: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 72509 invoked by uid 48); 27 Sep 2017 03:16:26 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/59552] Warning when non-trivial type parameter is passed by value but not changed in function
Date: Wed, 27 Sep 2017 03: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: 4.8.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: 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-59552-4-M7IL1OHJEk@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-59552-4@http.gcc.gnu.org/bugzilla/>
References: <bug-59552-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02613.txt.bz2
Content-length: 2048

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

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

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

--- Comment #3 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Martin Sebor from comment #2)
> The request refers to arguments of non-trivial types but I think it's just
> as applicable to trivial types, if not more.  A test case for an
> expensive-to-copy trivial type might look something like this.  The caller
> of f0() must make a copy of x but the caller of g0() need not, and GCC just
> passes the address of x to it.  Since the definition of f0() doesn't change
> the argument, it would be more efficient if the caller didn't have to make
> the copy.  In C++, GCC could suggest to declare f0() to take its argument by
> const reference instead.  (In C, it could suggest to take it by const
> pointer.)  In addition, declaring the const reference or pointer argument
> restrict would make it clear that the callee doesn't change the argument
> when it's passed by reference (this optimization is the subject of pr81009).
> 
> typedef struct Big {
>   char a[32];
> } Big;
> 
> int __attribute__ ((noclone, noinline))
> f0 (Big x)   // suggest to declare f0 (const Big&) instead
> { return __builtin_strlen (x.a); }
> 
> int __attribute__ ((noclone, noinline))
> g0 (const Big *x) { return __builtin_strlen (x->a); }
> 
> extern Big x;
> 
> int f1 (void)
> {
>   int n = f0 (x);
>   return n + 1;
> }
> 
> int g1 (void)
> {
>   int n = g0 (&x);
>   return n + 1;
> }
> 
> I suspect the request for a warning for non-trivial types is based on the
> assumption that such a type is expensive to copy.  That may or may not be
> true depending on the definition of the type but regardless, I think there
> is an opportunity here for GCC to help users write more efficient code.

OK, thanks, confirmed then.
>From gcc-bugs-return-576585-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 03:52:11 2017
Return-Path: <gcc-bugs-return-576585-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 108970 invoked by alias); 27 Sep 2017 03:52:10 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 108879 invoked by uid 48); 27 Sep 2017 03:52:06 -0000
From: "m101010a at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82336] New: GCC requires but does not emit defaulted constructors in certain cases
Date: Wed, 27 Sep 2017 03:52:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.1.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: m101010a 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-82336-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02614.txt.bz2
Content-length: 5895

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

            Bug ID: 82336
           Summary: GCC requires but does not emit defaulted constructors
                    in certain cases
           Product: gcc
           Version: 7.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: m101010a at gmail dot com
  Target Milestone: ---

When compiling the following source file, gcc requires a definition for
bar::bar() but does not emit one, causing a linker error:

$ cat x.cpp
struct foo { int x = 5; };
struct bar : foo { bar() = default; };
struct baz { bar x; };
void qux(baz = {}){}
int main() { qux(); }
$ g++ -v -Wall -Wextra x.cpp
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /build/gcc-multilib/src/gcc/configure --prefix=/usr
--libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man
--infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/
--enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared
--enable-threads=posix --enable-libmpx --with-system-zlib --with-isl
--enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu
--disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object
--enable-linker-build-id --enable-lto --enable-plugin
--enable-install-libiberty --with-linker-hash-style=gnu
--enable-gnu-indirect-function --enable-multilib --disable-werror
--enable-checking=release --enable-default-pie --enable-default-ssp
Thread model: posix
gcc version 7.1.1 20170630 (GCC) 
COLLECT_GCC_OPTIONS='-v' '-std=c++11' '-Wall' '-Wextra' '-g' '-shared-libgcc'
'-mtune=generic' '-march=x86-64'
 /usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/cc1plus -quiet -v -D_GNU_SOURCE x.cpp
-quiet -dumpbase x.cpp -mtune=generic -march=x86-64 -auxbase x -g -Wall -Wextra
-std=c++11 -version -o /tmp/ccwPoekN.s
GNU C++11 (GCC) version 7.1.1 20170630 (x86_64-pc-linux-gnu)
        compiled by GNU C version 7.1.1 20170630, GMP version 6.1.2, MPFR
version 3.1.5-p2, MPC version 1.0.3, isl version isl-0.18-GMP

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory
"/usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/../../../../x86_64-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/../../../../include/c++/7.1.1

/usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/../../../../include/c++/7.1.1/x86_64-pc-linux-gnu
 /usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/../../../../include/c++/7.1.1/backward
 /usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/include
 /usr/local/include
 /usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/include-fixed
 /usr/include
End of search list.
GNU C++11 (GCC) version 7.1.1 20170630 (x86_64-pc-linux-gnu)
        compiled by GNU C version 7.1.1 20170630, GMP version 6.1.2, MPFR
version 3.1.5-p2, MPC version 1.0.3, isl version isl-0.18-GMP

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 53125f87ce78f0cf5a177bd50a2fd619
COLLECT_GCC_OPTIONS='-v' '-std=c++11' '-Wall' '-Wextra' '-g' '-shared-libgcc'
'-mtune=generic' '-march=x86-64'
 as -v --64 -o /tmp/ccXARTmy.o /tmp/ccwPoekN.s
GNU assembler version 2.28.0 (x86_64-pc-linux-gnu) using BFD version (GNU
Binutils) 2.28.0.20170506
COMPILER_PATH=/usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/:/usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/:/usr/lib/gcc/x86_64-pc-linux-gnu/:/usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/:/usr/lib/gcc/x86_64-pc-linux-gnu/
LIBRARY_PATH=/usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/:/usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/../../../../lib/:/lib/../lib/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-v' '-std=c++11' '-Wall' '-Wextra' '-g' '-shared-libgcc'
'-mtune=generic' '-march=x86-64'
 /usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/collect2 -plugin
/usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/liblto_plugin.so
-plugin-opt=/usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/lto-wrapper
-plugin-opt=-fresolution=/tmp/ccvOLjqj.res -plugin-opt=-pass-through=-lgcc_s
-plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc
-plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc --build-id
--eh-frame-hdr --hash-style=gnu -m elf_x86_64 -dynamic-linker
/lib64/ld-linux-x86-64.so.2 -pie
/usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/../../../../lib/Scrt1.o
/usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/../../../../lib/crti.o
/usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/crtbeginS.o
-L/usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1
-L/usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/../../../../lib -L/lib/../lib
-L/usr/lib/../lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/../../..
/tmp/ccXARTmy.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc
/usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/crtendS.o
/usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/../../../../lib/crtn.o
/tmp/ccXARTmy.o: In function `main':
/home/m42a/tmp/gcc-bug/x.cpp:5: undefined reference to `bar::bar()'
collect2: error: ld returned 1 exit status


Since bar's constructor is declared and defaulted, it should exist.

This behavior appears in every version since 4.8, but not in 4.7.4.  It occurs
at all optimization levels, and on both Linux and MinGW.

Removing the explicit declaration of bar's constructor does not fix the issue,
but many other small changes do.  Removing foo::x's initializer fixes it, and
so does adding an initializer to baz::x ("bar x{}", "bar x = {}", and "bar x =
bar()" all work), and changing qux's parameter to "baz = baz{}" or "baz =
baz()", and providing an explicit parameter when calling qux, even if that
parameter is just "{}".
>From gcc-bugs-return-576586-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 05:00:46 2017
Return-Path: <gcc-bugs-return-576586-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 63141 invoked by alias); 27 Sep 2017 05:00:45 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 60893 invoked by uid 48); 27 Sep 2017 05:00:42 -0000
From: "ivo.raisr at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82337] New: -O2: ICE: SSA corruption at tree-ssa-coalesce.c:1010
Date: Wed, 27 Sep 2017 05:00:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ivo.raisr at oracle 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-82337-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02615.txt.bz2
Content-length: 1425

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

            Bug ID: 82337
           Summary: -O2: ICE: SSA corruption at tree-ssa-coalesce.c:1010
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ivo.raisr at oracle dot com
  Target Milestone: ---

With gcc 8.0, 7.2 and 6.3.1 we hit internal compiler error:

Unable to coalesce ssa_names 7 and 15 which are marked as MUST COALESCE.
i_7(ab) and  i_15(ab)
during RTL pass: expand
reduced-3.c:12:6: internal compiler error: SSA corruption
 void g(void) {
      ^
0xe24c8c fail_abnormal_edge_coalesce
        ../../gcc-trunk/gcc/tree-ssa-coalesce.c:1010
0xe24c8c coalesce_partitions
        ../../gcc-trunk/gcc/tree-ssa-coalesce.c:1399
0xe24c8c coalesce_ssa_name()
        ../../gcc-trunk/gcc/tree-ssa-coalesce.c:1886
0xdca93b remove_ssa_form
        ../../gcc-trunk/gcc/tree-outof-ssa.c:948
0xdca93b rewrite_out_of_ssa(ssaexpand*)
        ../../gcc-trunk/gcc/tree-outof-ssa.c:1172
0x992d70 execute
        ../../gcc-trunk/gcc/cfgexpand.c:6164


Full pre-processed sources are not publicly available.

C-reduce was able to produce "reduced-3.bare.c" which I slightly reformatted to
make it more readable: "reduced-3.c". Both files attached.

Reproduce as:
$ gcc -c reduced-3.c -O2
>From gcc-bugs-return-576587-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 05:01:31 2017
Return-Path: <gcc-bugs-return-576587-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 64251 invoked by alias); 27 Sep 2017 05:01:30 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 64202 invoked by uid 48); 27 Sep 2017 05:01:26 -0000
From: "ivo.raisr at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82337] -O2: ICE: SSA corruption at tree-ssa-coalesce.c:1010
Date: Wed, 27 Sep 2017 05: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:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ivo.raisr at oracle 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-82337-4-eoWB5l77b6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82337-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82337-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02616.txt.bz2
Content-length: 525

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

Ivo Raisr <ivo.raisr at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ivo.raisr at oracle dot com

--- Comment #1 from Ivo Raisr <ivo.raisr at oracle dot com> ---
Created attachment 42240
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42240&action=edit
reduced-3.bare.c (output produced by C-reduce)
>From gcc-bugs-return-576588-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 05:02:13 2017
Return-Path: <gcc-bugs-return-576588-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 65169 invoked by alias); 27 Sep 2017 05: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 65106 invoked by uid 48); 27 Sep 2017 05:02:10 -0000
From: "ivo.raisr at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82337] -O2: ICE: SSA corruption at tree-ssa-coalesce.c:1010
Date: Wed, 27 Sep 2017 05:02:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ivo.raisr at oracle 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-82337-4-bZFKCPGeey@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82337-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82337-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02617.txt.bz2
Content-length: 285

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

--- Comment #2 from Ivo Raisr <ivo.raisr at oracle dot com> ---
Created attachment 42241
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42241&action=edit
reduced-3.c (slightly reformatted source to make it more readable)
>From gcc-bugs-return-576589-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 05:15:29 2017
Return-Path: <gcc-bugs-return-576589-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 79747 invoked by alias); 27 Sep 2017 05:15: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 64083 invoked by uid 48); 27 Sep 2017 05:15:05 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82337] -O2: ICE: SSA corruption at tree-ssa-coalesce.c:1010
Date: Wed, 27 Sep 2017 05:15:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: 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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords target_milestone
Message-ID: <bug-82337-4-j7LwY8AfQb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82337-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82337-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02618.txt.bz2
Content-length: 461

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
   Target Milestone|---                         |8.0

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Related to PR 82264 and PR 71020.
>From gcc-bugs-return-576590-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 05:35:21 2017
Return-Path: <gcc-bugs-return-576590-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 12582 invoked by alias); 27 Sep 2017 05:35:21 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 11079 invoked by uid 48); 27 Sep 2017 05:35:15 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82334] improve list of candidates for a member definition that doesn't match declaration
Date: Wed, 27 Sep 2017 05:35:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.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: bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-82334-4-ZPkQKZVmgL@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82334-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82334-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02619.txt.bz2
Content-length: 402

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-09-27
     Ever confirmed|0                           |1
>From gcc-bugs-return-576591-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 05:45:45 2017
Return-Path: <gcc-bugs-return-576591-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 68852 invoked by alias); 27 Sep 2017 05:45: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 5553 invoked by uid 48); 27 Sep 2017 05:42:03 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82336] [5/6/7/8 Regression] GCC requires but does not emit defaulted constructors in certain cases
Date: Wed, 27 Sep 2017 05:45:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.1.1
X-Bugzilla-Keywords: link-failure
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 cf_known_to_work short_desc everconfirmed cf_known_to_fail
Message-ID: <bug-82336-4-EmUQll79oG@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82336-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82336-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02620.txt.bz2
Content-length: 882

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-09-27
      Known to work|                            |4.7.4
            Summary|GCC requires but does not   |[5/6/7/8 Regression] GCC
                   |emit defaulted constructors |requires but does not emit
                   |in certain cases            |defaulted constructors in
                   |                            |certain cases
     Ever confirmed|0                           |1
      Known to fail|                            |4.8.5, 4.9.4, 5.4.0, 6.4.0,
                   |                            |7.2.0, 8.0
>From gcc-bugs-return-576592-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 06:55:17 2017
Return-Path: <gcc-bugs-return-576592-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 111355 invoked by alias); 27 Sep 2017 06:55:17 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 104800 invoked by uid 48); 27 Sep 2017 06:55:13 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82337] [5/6/7/8 Regression] ICE: SSA corruption at tree-ssa-coalesce.c:1010
Date: Wed, 27 Sep 2017 06:55:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc short_desc everconfirmed
Message-ID: <bug-82337-4-grTsiJzaie@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82337-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82337-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02621.txt.bz2
Content-length: 867

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-09-27
                 CC|                            |marxin at gcc dot gnu.org,
                   |                            |rguenth at gcc dot gnu.org
            Summary|-O2: ICE: SSA corruption at |[5/6/7/8 Regression] ICE:
                   |tree-ssa-coalesce.c:1010    |SSA corruption at
                   |                            |tree-ssa-coalesce.c:1010
     Ever confirmed|0                           |1

--- Comment #4 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with r214941.
>From gcc-bugs-return-576593-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 06:56:05 2017
Return-Path: <gcc-bugs-return-576593-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 20501 invoked by alias); 27 Sep 2017 06:56: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 17717 invoked by uid 48); 27 Sep 2017 06:55:59 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82323] circular ifunc attribute on a function definition silently accepted
Date: Wed, 27 Sep 2017 06:56:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: accepts-invalid, diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: assigned_to
Message-ID: <bug-82323-4-X2BXENvcxv@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82323-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82323-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02622.txt.bz2
Content-length: 431

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

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

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

--- Comment #4 from Martin Liška <marxin at gcc dot gnu.org> ---
Good, I'm taking that for stage4.
>From gcc-bugs-return-576594-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 07:24:27 2017
Return-Path: <gcc-bugs-return-576594-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 62490 invoked by alias); 27 Sep 2017 07:24: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 57023 invoked by uid 48); 27 Sep 2017 07:24:16 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82321] [8 Regression] ICE in check_loop_closed_ssa_use, at tree-ssa-loop-manip.c:707
Date: Wed, 27 Sep 2017 07:24:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: 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: 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-82321-4-KWraZGf0G3@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82321-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82321-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02623.txt.bz2
Content-length: 429

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

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

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

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-576595-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 07:26:41 2017
Return-Path: <gcc-bugs-return-576595-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 62632 invoked by alias); 27 Sep 2017 07:26: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 53775 invoked by uid 48); 27 Sep 2017 07:26:36 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82326] static_cast for vector extension not working?
Date: Wed, 27 Sep 2017 07:26:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
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: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82326-4-ruH4xrcXvU@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82326-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82326-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02624.txt.bz2
Content-length: 183

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

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Agreed.  One could allow changes in signedness as extension.
>From gcc-bugs-return-576596-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 07:28:09 2017
Return-Path: <gcc-bugs-return-576596-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 41862 invoked by alias); 27 Sep 2017 07: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 15071 invoked by uid 48); 27 Sep 2017 07:27:57 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/82327] [7 Regression] ICE in equal_mem_array_ref_p, at tree-ssa-scopedtables.c:429 (i686-linux-gnu)
Date: Wed, 27 Sep 2017 07:28:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: other
X-Bugzilla-Version: 7.2.1
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: blocker
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority
Message-ID: <bug-82327-4-SgNw9q6aCF@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82327-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82327-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02625.txt.bz2
Content-length: 292

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1
>From gcc-bugs-return-576598-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 07:29:43 2017
Return-Path: <gcc-bugs-return-576598-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 108735 invoked by alias); 27 Sep 2017 07: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 86802 invoked by uid 48); 27 Sep 2017 07:29:31 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/82329] #pragma GCC target/optimize incurs high compilation time cost
Date: Wed, 27 Sep 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: middle-end
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: compile-time-hog
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: 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 everconfirmed
Message-ID: <bug-82329-4-I7gwEt0Lri@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82329-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82329-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02627.txt.bz2
Content-length: 554

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |x86_64-*-*, i?86-*-*
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-09-27
     Ever confirmed|0                           |1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed.
>From gcc-bugs-return-576597-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 07:29:26 2017
Return-Path: <gcc-bugs-return-576597-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 83172 invoked by alias); 27 Sep 2017 07:29:26 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 69671 invoked by uid 48); 27 Sep 2017 07:29:22 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/82172] Destruction of basic_string in basic_stringbuf::overflow with _GLIBCXX_USE_CXX11_ABI=0, -flto, and C++17 mode results in invalid delete
Date: Wed, 27 Sep 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: lto
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status
Message-ID: <bug-82172-4-oCYYY7E8V0@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82172-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82172-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02626.txt.bz2
Content-length: 573

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED

--- Comment #18 from Martin Liška <marxin at gcc dot gnu.org> ---
Issue solved, ld.bfd is responsible. Gold properly marks the symbols as:
1322 aef281150a4b024f PREVAILING_DEF_IRONLY_EXP
_ZNSs4_Rep20_S_empty_rep_storageE

I'm going to create binutils issue for that.
>From gcc-bugs-return-576599-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 07:32:10 2017
Return-Path: <gcc-bugs-return-576599-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 12565 invoked by alias); 27 Sep 2017 07: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 124980 invoked by uid 48); 27 Sep 2017 07:31:57 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82331] [7/8 Regression] ICE specializing template<auto> for function pointer
Date: Wed, 27 Sep 2017 07:32:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 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-82331-4-Zp6ag4Fmeq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82331-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82331-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02628.txt.bz2
Content-length: 739

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
           Priority|P3                          |P2
      Known to work|                            |7.1.0
   Target Milestone|---                         |7.3
            Summary|ICE specializing            |[7/8 Regression] ICE
                   |template<auto> for function |specializing template<auto>
                   |pointer                     |for function pointer
      Known to fail|                            |7.2.0
>From gcc-bugs-return-576600-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 07:32:29 2017
Return-Path: <gcc-bugs-return-576600-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 26475 invoked by alias); 27 Sep 2017 07:32: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 24191 invoked by uid 48); 27 Sep 2017 07:32:25 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82333] [8 Regression] powerpc64le _Float128 ICE in as_a, at machmode.h:345
Date: Wed, 27 Sep 2017 07:32:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: 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: version target_milestone
Message-ID: <bug-82333-4-YVZHlgWiPg@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82333-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82333-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02629.txt.bz2
Content-length: 346

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|7.0                         |8.0
   Target Milestone|---                         |8.0
>From gcc-bugs-return-576601-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 07:34:02 2017
Return-Path: <gcc-bugs-return-576601-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 100580 invoked by alias); 27 Sep 2017 07:34:02 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 89489 invoked by uid 48); 27 Sep 2017 07:33:58 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82336] [5/6/7/8 Regression] GCC requires but does not emit defaulted constructors in certain cases
Date: Wed, 27 Sep 2017 07: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.1
X-Bugzilla-Keywords: link-failure
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority target_milestone
Message-ID: <bug-82336-4-2KijaHvuuW@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82336-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82336-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02630.txt.bz2
Content-length: 345

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
   Target Milestone|---                         |5.5
>From gcc-bugs-return-576602-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 07:49:29 2017
Return-Path: <gcc-bugs-return-576602-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 68671 invoked by alias); 27 Sep 2017 07:49:28 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 62171 invoked by uid 48); 27 Sep 2017 07:49:24 -0000
From: "dcb314 at hotmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82338] New: valgrind error in inherit_in_ebb
Date: Wed, 27 Sep 2017 07:49:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dcb314 at hotmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created
Message-ID: <bug-82338-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02631.txt.bz2
Content-length: 1367

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

            Bug ID: 82338
           Summary: valgrind error in inherit_in_ebb
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

Created attachment 42242
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42242&action=edit
C++ source code

I built a recent trunk version of gcc with valgrind.

I compiled the attached C++ code with flags -O3 -fPIC -fno-strict-aliasing -c
and got the following:

$ ~/gcc/results.253187.valgrind/bin/gcc -O3 -fPIC -fno-strict-aliasing -c
bug386.cc
==17152== Conditional jump or move depends on uninitialised value(s)
==17152==    at 0x9DCE01: inherit_in_ebb (lra-constraints.c:6224)
==17152==    by 0x9DCE01: lra_inheritance() (lra-constraints.c:6474)
==17152==    by 0x9C8518: lra(_IO_FILE*) (lra.c:2430)
==17152==    by 0x986161: do_reload (ira.c:5440)

The bug seems to have been introduced sometime before revision 249539.

svn blame claims that lra-constraints.c:6224 is as follows:

192719   vmakarov         && usage_insns[regno].calls_num == calls_num - 1

I'll have a go at reducing the code.
>From gcc-bugs-return-576603-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 07:54:40 2017
Return-Path: <gcc-bugs-return-576603-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 17309 invoked by alias); 27 Sep 2017 07:54: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 14939 invoked by uid 48); 27 Sep 2017 07:54:35 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82337] [5/6/7/8 Regression] ICE: SSA corruption at tree-ssa-coalesce.c:1010
Date: Wed, 27 Sep 2017 07:54:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 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: 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-82337-4-XlyN0yr09P@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82337-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82337-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02632.txt.bz2
Content-length: 2679

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

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

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

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
It's SLSR, so a workaround is -fno-tree-slsr.

It's a bit iffy to fix given one of the suitable points to fence off is
alloc_cand_and_find_basis where we should "reject"
SSA_NAME_OCCURS_IN_ABNORMAL_PHI (base) but this function isn't supposed
to "FAIL".

I'm also not sure it covers the cases fully.

Basically when doing replacements SLSR may _never_ end up with
a SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA name in the replacement expression.

Costing doesn't seem to apply to unconditional candidates so fending it
off there doesn't seem viable.

The easiest thing is to try fend off during the stmt walk like with the
following big hammer.  Not sure if that's enough or we walk SSA def
stmts from other places.  Bill, can you take over with the hint below?

Index: gcc/gimple-ssa-strength-reduction.c
===================================================================
--- gcc/gimple-ssa-strength-reduction.c (revision 253203)
+++ gcc/gimple-ssa-strength-reduction.c (working copy)
@@ -802,6 +802,8 @@ slsr_process_phi (gphi *phi, bool speed)
      definitions must be in the same position in the loop hierarchy
      as PHI.  */

+  if (SSA_NAME_OCCURS_IN_ABNORMAL_PHI (gimple_phi_result (phi)))
+    return;
   for (i = 0; i < gimple_phi_num_args (phi); i++)
     {
       slsr_cand_t arg_cand;
@@ -810,7 +812,8 @@ slsr_process_phi (gphi *phi, bool speed)
       gimple *arg_stmt = NULL;
       basic_block arg_bb = NULL;

-      if (TREE_CODE (arg) != SSA_NAME)
+      if (TREE_CODE (arg) != SSA_NAME
+         || SSA_NAME_OCCURS_IN_ABNORMAL_PHI (arg))
        return;

       arg_cand = base_cand_from_table (arg);
@@ -1738,6 +1741,18 @@ find_candidates_dom_walker::before_dom_c
     {
       gimple *gs = gsi_stmt (gsi);

+      tree op;
+      ssa_op_iter iter;
+      bool abnormal_found = false;
+      FOR_EACH_SSA_TREE_OPERAND (op, gs, iter, SSA_OP_USE|SSA_OP_DEF)
+       if (SSA_NAME_OCCURS_IN_ABNORMAL_PHI (op))
+         {
+           abnormal_found = true;
+           break;
+         }
+      if (abnormal_found)
+       continue;
+
       if (gimple_vuse (gs) && gimple_assign_single_p (gs))
        slsr_process_ref (gs);
>From gcc-bugs-return-576604-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 08:29:05 2017
Return-Path: <gcc-bugs-return-576604-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 78012 invoked by alias); 27 Sep 2017 08:29:05 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 77955 invoked by uid 48); 27 Sep 2017 08:29:01 -0000
From: "david at westcontrol dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/65892] gcc fails to implement N685 aliasing of union members
Date: Wed, 27 Sep 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: 5.0
X-Bugzilla-Keywords: alias
X-Bugzilla-Severity: normal
X-Bugzilla-Who: david at westcontrol dot com
X-Bugzilla-Status: SUSPENDED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-65892-4-VlHwl0h54E@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-65892-4@http.gcc.gnu.org/bugzilla/>
References: <bug-65892-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02633.txt.bz2
Content-length: 3238

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

David Brown <david at westcontrol dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |david at westcontrol dot com

--- Comment #26 from David Brown <david at westcontrol dot com> ---
(In reply to rguenther@suse.de from comment #24)
> On Wed, 2 Nov 2016, txr at alumni dot caltech.edu wrote:
> 
> > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65892
> > 
> > --- Comment #22 from Tim Rentsch <txr at alumni dot caltech.edu> ---
> > [responding to comments from rguenther@suse.de in Comment 20]
> > 
> > > GCC already implements this if you specify -fno-strict-aliasing.
> > 
> > The main point of my comments is that the ISO C standard requires
> > the behavior in this case (and similar cases) be defined and not
> > subject to any reordering.  In other words the result must be the
> > same as an unoptimized version.  If a -fstrict-aliasing gcc /does/
> > transform the code so that the behavior is not the same as an
> > unoptimized version, then gcc is not a conforming implementation.
> 
> GCC has various optimization options that make it a not strictly
> conforming implementation (-ffast-math for example), various
> GNU extensions to the language, etc.
> 
> > Or is it your position that gcc is conforming only when operated
> > in the -fno-strict-aliasing mode?  That position seems contrary to
> > the documented description of the -fstrict-aliasing option.
> 
> Well, N685 is still disputed in this bug.  I was just pointing out
> that GCC has a switch to make it conforming to your interpretation
> of the standard (and this switch is the default at -O0 and -O1).

A key difference with non-conformance options like -ffast-math is that these
are not default options.  A user must actively choose to use them.  A user
should not need particular options in order to get correct object code from
their correct source code - or at least the user should get obvious error
messages when using default options but where their source code hits an oddity
in gcc (as they would get if they happened to use a gcc extension keyword like
"asm" as an identifier in conforming C code).  What should not happen is for
the compiler to silently break good code unless the user has given specific
flags.

I am not sure whether this particular case really is a bug or not.  However, I
wonder if there has been too much emphasis on trying to understand exactly what
the standards say.  If the gcc developers here, who are amongst the most
knowledgeable C and C++ experts around, have trouble with the details - then
consider the position of the average C developer.  Maybe it is better to try
see it from their viewpoint - would a programmer expect these accesses to alias
or not?  If it is likely that programmers would expect aliasing here, and see
that behaviour in other compilers, then the /useful/ default behaviour for gcc
would be to treat code in the way programmers expect - even with -O3.  Then
have a "-fI-know-what-I-am-doing" flag for those that want to squeeze out the
last bit of performance.
>From gcc-bugs-return-576605-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 08:33:59 2017
Return-Path: <gcc-bugs-return-576605-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 73345 invoked by alias); 27 Sep 2017 08:33:59 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 73289 invoked by uid 55); 27 Sep 2017 08:33:54 -0000
From: "rguenther at suse dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/65892] gcc fails to implement N685 aliasing of union members
Date: Wed, 27 Sep 2017 08:33:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords: alias
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenther at suse dot de
X-Bugzilla-Status: SUSPENDED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-65892-4-BckL8RGZKe@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-65892-4@http.gcc.gnu.org/bugzilla/>
References: <bug-65892-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02634.txt.bz2
Content-length: 3871

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

--- Comment #27 from rguenther at suse dot de <rguenther at suse dot de> ---
On Wed, 27 Sep 2017, david at westcontrol dot com wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65892
> 
> David Brown <david at westcontrol dot com> changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                  CC|                            |david at westcontrol dot com
> 
> --- Comment #26 from David Brown <david at westcontrol dot com> ---
> (In reply to rguenther@suse.de from comment #24)
> > On Wed, 2 Nov 2016, txr at alumni dot caltech.edu wrote:
> > 
> > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65892
> > > 
> > > --- Comment #22 from Tim Rentsch <txr at alumni dot caltech.edu> ---
> > > [responding to comments from rguenther@suse.de in Comment 20]
> > > 
> > > > GCC already implements this if you specify -fno-strict-aliasing.
> > > 
> > > The main point of my comments is that the ISO C standard requires
> > > the behavior in this case (and similar cases) be defined and not
> > > subject to any reordering.  In other words the result must be the
> > > same as an unoptimized version.  If a -fstrict-aliasing gcc /does/
> > > transform the code so that the behavior is not the same as an
> > > unoptimized version, then gcc is not a conforming implementation.
> > 
> > GCC has various optimization options that make it a not strictly
> > conforming implementation (-ffast-math for example), various
> > GNU extensions to the language, etc.
> > 
> > > Or is it your position that gcc is conforming only when operated
> > > in the -fno-strict-aliasing mode?  That position seems contrary to
> > > the documented description of the -fstrict-aliasing option.
> > 
> > Well, N685 is still disputed in this bug.  I was just pointing out
> > that GCC has a switch to make it conforming to your interpretation
> > of the standard (and this switch is the default at -O0 and -O1).
> 
> A key difference with non-conformance options like -ffast-math is that these
> are not default options.  A user must actively choose to use them.  A user
> should not need particular options in order to get correct object code from
> their correct source code - or at least the user should get obvious error
> messages when using default options but where their source code hits an oddity
> in gcc (as they would get if they happened to use a gcc extension keyword like
> "asm" as an identifier in conforming C code).  What should not happen is for
> the compiler to silently break good code unless the user has given specific
> flags.
> 
> I am not sure whether this particular case really is a bug or not.  However, I
> wonder if there has been too much emphasis on trying to understand exactly what
> the standards say.  If the gcc developers here, who are amongst the most
> knowledgeable C and C++ experts around, have trouble with the details - then
> consider the position of the average C developer.  Maybe it is better to try
> see it from their viewpoint - would a programmer expect these accesses to alias
> or not?  If it is likely that programmers would expect aliasing here, and see
> that behaviour in other compilers, then the /useful/ default behaviour for gcc
> would be to treat code in the way programmers expect - even with -O3.  Then
> have a "-fI-know-what-I-am-doing" flag for those that want to squeeze out the
> last bit of performance.

Unfortunately it's not the "last bit of performance", otherwise it would
be indeed a no-brainer.

People expect fast code from a compiler and do not want to enable
dozens of -fIm-writing-reasonable-code.  Some benchmarks even have
rules as to how many options you are allowed to enable...

Richard.
>From gcc-bugs-return-576606-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 08:44:34 2017
Return-Path: <gcc-bugs-return-576606-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 64388 invoked by alias); 27 Sep 2017 08:44:34 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 64355 invoked by uid 48); 27 Sep 2017 08:44:30 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82339] New: Inefficient movabs instruction
Date: Wed, 27 Sep 2017 08:44:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-82339-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02635.txt.bz2
Content-length: 1944

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

            Bug ID: 82339
           Summary: Inefficient movabs instruction
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jakub at gcc dot gnu.org
  Target Milestone: ---

At least on i7-5960X in the following testcase:
__attribute__((noinline, noclone)) unsigned long long int
foo (int x)
{
  asm volatile ("" : : : "memory");
  return 1ULL << (63 - x);
}

__attribute__((noinline, noclone)) unsigned long long int
bar (int x)
{
  asm volatile ("" : : : "memory");
  return (1ULL << 63) >> x;
}

__attribute__((noinline, noclone)) unsigned long long int
baz (int x)
{
  unsigned long long int y = 1;
  asm volatile ("" : "+r" (y) : : "memory");
  return (y << 63) >> x;
}

int
main (int argc, const char **argv)
{
  int i;
  if (argc == 1)
    for (i = 0; i < 1000000000; i++)
      asm volatile ("" : : "r" (foo (13)));
  else if (argc == 2)
    for (i = 0; i < 1000000000; i++)
      asm volatile ("" : : "r" (bar (13)));
  else if (argc == 3)
    for (i = 0; i < 1000000000; i++)
      asm volatile ("" : : "r" (baz (13)));
  return 0;
}

baz is fastest as well as shortest.
So I think we should consider using movl $cst, %edx; shlq $shift, %rdx instead
of movabsq $(cst << shift), %rdx.

Unfortunately I can't find in Agner Fog MOVABS and for MOV r64,i64 there is too
little information, so it is unclear on which CPUs it is beneficial.
For -Os, if the destination is a %rax to %rsp register, it is one byte shorter
(5+4 vs 10), for %r8 to %r15 it is the same size.
For speed optimization, the disadvantage is obviously that the shift clobbers
flags register.

Peter, any information on what the MOV r64,i64 latency/throughput on various
CPUs vs. MOV r32,i32; SHL r64,i8 is?
>From gcc-bugs-return-576607-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 08:49:22 2017
Return-Path: <gcc-bugs-return-576607-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 62616 invoked by alias); 27 Sep 2017 08:49:22 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 60010 invoked by uid 48); 27 Sep 2017 08:49:18 -0000
From: "dave.gittins at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/82172] Destruction of basic_string in basic_stringbuf::overflow with _GLIBCXX_USE_CXX11_ABI=0, -flto, and C++17 mode results in invalid delete
Date: Wed, 27 Sep 2017 08:49:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: lto
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dave.gittins at gmail dot com
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-82172-4-XWmB6ULNtv@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82172-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82172-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02636.txt.bz2
Content-length: 959

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

Gubbins <dave.gittins at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dave.gittins at gmail dot com

--- Comment #19 from Gubbins <dave.gittins at gmail dot com> ---
(In reply to Martin Liška from comment #18)
> Issue solved, ld.bfd is responsible.

Unfortunately, the same test program also crashes when built and linked on OSX.

I tested with Sierra (OSX 10.12.5), gcc 7.2.0, compiling the original sample
here with:

g++-7 -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++17 -O1 test.cpp

Result:

> ./a.out
a.out(608,0x7fffbda8a3c0) malloc: *** error for object 0x10c68d080: pointer
being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Abort trap: 6


I think this means the Darwin linker has a similar problem.
>From gcc-bugs-return-576608-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 08:53:10 2017
Return-Path: <gcc-bugs-return-576608-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 122995 invoked by alias); 27 Sep 2017 08: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 121639 invoked by uid 48); 27 Sep 2017 08:53:03 -0000
From: "pascal_cuoq at hotmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82340] New: volatile ignored in compound literal
Date: Wed, 27 Sep 2017 08:53:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pascal_cuoq at hotmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-82340-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02637.txt.bz2
Content-length: 1611

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

            Bug ID: 82340
           Summary: volatile ignored in compound literal
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pascal_cuoq at hotmail dot com
  Target Milestone: ---

Consider the function f below:

int f(void) {
  volatile char *p = (volatile char[1]){1};
  for (int i=1; i<10; i++) *p=4;
  return *p;
}

Volatile access is a visible side-effect, so one may expect the generated code
for the function f to do “something” nine times, for some definition of
“something”.

In GCC 7.2 and in gcc.godbolt.org's current snapshot of “gcc (trunk)”, the
function f is compiled to:

f:
        movl    $4, %eax
        ret

Command: gcc -O3 -std=c11 -xc -pedantic -S t.c
Link: https://godbolt.org/g/4Ua1Ud

I would expect function f to be compiled to something that ressembles the code
produced for function g, or the code produced by Clang for f:

int g(void) {
  volatile char t[1] = {1};
  volatile char *p = t;
  for (int i=1; i<10; i++) *p=4;
  return *p;
}

g:
        movb    $1, -1(%rsp)
        movb    $4, -1(%rsp)
        movb    $4, -1(%rsp)
        movb    $4, -1(%rsp)
        movb    $4, -1(%rsp)
        movb    $4, -1(%rsp)
        movb    $4, -1(%rsp)
        movb    $4, -1(%rsp)
        movb    $4, -1(%rsp)
        movb    $4, -1(%rsp)
        movsbl  -1(%rsp), %eax
        ret
>From gcc-bugs-return-576609-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 08:58:17 2017
Return-Path: <gcc-bugs-return-576609-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 11246 invoked by alias); 27 Sep 2017 08:58:17 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 10774 invoked by uid 48); 27 Sep 2017 08:58:13 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82339] Inefficient movabs instruction
Date: Wed, 27 Sep 2017 08:58:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-82339-4-nUzAQo5T7q@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82339-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82339-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02638.txt.bz2
Content-length: 704

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

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

Patch for -Os where movl $cst, %eXX; shlq $shift, %rXX is 1 byte shorter than
movabsq $(cst << shift), %rXX.
For speed, there is yet another option of movq $cst, %rXX; shlq $shift, %rXX
for constants like 0xffff123456700000 which have a sequence of 1 bit, followed
by at most 31 arbitrary bits and then the rest is all 0s,
movabsq $ffff123456700000, %r8 is equivalent to movq $-249346713, %r8; shlq
$20, %r8 which is longer, but perhaps faster (on which CPUs).
>From gcc-bugs-return-576610-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 09:09:03 2017
Return-Path: <gcc-bugs-return-576610-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 55645 invoked by alias); 27 Sep 2017 09:09:03 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 55562 invoked by uid 48); 27 Sep 2017 09:08:54 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/82172] Destruction of basic_string in basic_stringbuf::overflow with _GLIBCXX_USE_CXX11_ABI=0, -flto, and C++17 mode results in invalid delete
Date: Wed, 27 Sep 2017 09:09:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: lto
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82172-4-1STOGuQnIT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82172-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82172-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02639.txt.bz2
Content-length: 914

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

--- Comment #20 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to Gubbins from comment #19)
> (In reply to Martin Liška from comment #18)
> > Issue solved, ld.bfd is responsible.
> 
> Unfortunately, the same test program also crashes when built and linked on
> OSX.
> 
> I tested with Sierra (OSX 10.12.5), gcc 7.2.0, compiling the original sample
> here with:
> 
> g++-7 -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++17 -O1 test.cpp
> 
> Result:
> 
> > ./a.out
> a.out(608,0x7fffbda8a3c0) malloc: *** error for object 0x10c68d080: pointer
> being freed was not allocated
> *** set a breakpoint in malloc_error_break to debug
> Abort trap: 6
> 
> 
> I think this means the Darwin linker has a similar problem.

Your failure happens even w/o LTO, am I right?
But yes, the problem looks very similar to what happens for ld.bfd.
>From gcc-bugs-return-576611-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 09:16:26 2017
Return-Path: <gcc-bugs-return-576611-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 56845 invoked by alias); 27 Sep 2017 09: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 56024 invoked by uid 48); 27 Sep 2017 09:16:14 -0000
From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libfortran/66756] libgfortran: ThreadSanitizer: lock-order-inversion
Date: Wed, 27 Sep 2017 09:16:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libfortran
X-Bugzilla-Version: 5.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: tkoenig 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: bug_status resolution bug_severity
Message-ID: <bug-66756-4-vTbg3uYFBV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66756-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66756-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02640.txt.bz2
Content-length: 920

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

Thomas Koenig <tkoenig at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |---
           Severity|normal                      |enhancement

--- Comment #9 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Well, if it is indeed a serious problem, we can re-open
as an enhancement request.

Unfortunately, I don't know if it is possible to shut up the
thread sanitizer somehow.

A possiblity would be to lock the unit only after the global
lock has been released, and possibly keep around the global
lock for longer. If we still are in the process of opening the
file in the original thread, then there should be no problem
(at least I hope so...)
>From gcc-bugs-return-576612-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 09:20:51 2017
Return-Path: <gcc-bugs-return-576612-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 69119 invoked by alias); 27 Sep 2017 09:20:51 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 65651 invoked by uid 48); 27 Sep 2017 09:20:42 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82340] volatile ignored in compound literal
Date: Wed, 27 Sep 2017 09:20:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: component
Message-ID: <bug-82340-4-vp7w9JBXNE@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82340-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82340-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02641.txt.bz2
Content-length: 1765

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|middle-end                  |c

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Well.  I don't see how a volatile compound literal could make any sense or how
you'd observe the side-effect of multiple stores to it (IIRC compound literals
are constant!?).

So you need to come up with sth more clever to be convincing ;)

Implementation-wise we end up with

  volatile char * p;
  volatile char D.1801[1];

  <bb 2> [0.00%]:
  D.1801[0] = 1;
  p_6 = &D.1801;
  i_7 = 1;
  goto <bb 4>; [0.00%]

  <bb 3> [0.00%]:
  *p_6 ={v} 4;
  i_10 = i_2 + 1;

  <bb 4> [0.00%]:
  # i_2 = PHI <i_7(2), i_10(3)>
  if (i_2 <= 9)
    goto <bb 3>; [0.00%]
  else
    goto <bb 5>; [0.00%]

  <bb 5> [0.00%]:
  _1 ={v} *p_6;
  _8 = (int) _1;

which is mostly fine but the initialization of D.1801[0] is not a volatile
access.  And after optimization

  volatile char D.1801[1];
  char _1;
  unsigned int ivtmp_2;
  int _6;
  unsigned int ivtmp_10;

  <bb 2> [10.00%]:

  <bb 3> [90.00%]:
  # ivtmp_2 = PHI <ivtmp_10(3), 9(2)>
  MEM[(volatile char *)&D.1801] ={v} 4;
  ivtmp_10 = ivtmp_2 + 4294967295;
  if (ivtmp_10 != 0)
    goto <bb 3>; [88.89%]
  else
    goto <bb 4>; [11.11%]

  <bb 4> [10.00%]:
  _1 ={v} MEM[(volatile char *)&D.1801];
  _6 = (int) _1;

so GIMPLE does what you want but somewhere on RTL we are too clever in the
end.  D.1801 ends up being expanded as a register.  Probably the variable
itself is _not_ marked volatile but only the array member type.
>From gcc-bugs-return-576613-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 09:25:52 2017
Return-Path: <gcc-bugs-return-576613-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 85755 invoked by alias); 27 Sep 2017 09:25: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 85685 invoked by uid 48); 27 Sep 2017 09:25:47 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libfortran/66756] libgfortran: ThreadSanitizer: lock-order-inversion
Date: Wed, 27 Sep 2017 09:25:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libfortran
X-Bugzilla-Version: 5.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: REOPENED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-66756-4-8sW8YCM44G@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66756-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66756-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02642.txt.bz2
Content-length: 251

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

--- Comment #10 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> Could this still be fixed / filtered out in the ThreadSanitizer somehow?

Should it be moved to the sanitizer component?
>From gcc-bugs-return-576614-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 09:27:17 2017
Return-Path: <gcc-bugs-return-576614-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 87218 invoked by alias); 27 Sep 2017 09:27:17 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 87121 invoked by uid 48); 27 Sep 2017 09:27:12 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82339] Inefficient movabs instruction
Date: Wed, 27 Sep 2017 09:27:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: 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: cf_gcctarget
Message-ID: <bug-82339-4-arcYefH6pF@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82339-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82339-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02643.txt.bz2
Content-length: 884

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |x86_64-*-*, i?86-*-*

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
I always wondered if it is more efficient to have constant pools per function
in .text so we can do %rip relative loads with short displacement?

I suppose the assembler could even optimize things if there's the desired
constant somewhere near in the code itself... (in case data loads from icache
do not occur too much of a penalty).  The assembler could also replace
.palign space before function start with (small) constant(s).

Nothing we can really do given x86 has no idea of instruction sizes.
>From gcc-bugs-return-576615-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 09:39:52 2017
Return-Path: <gcc-bugs-return-576615-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 6230 invoked by alias); 27 Sep 2017 09: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 5825 invoked by uid 48); 27 Sep 2017 09:39:46 -0000
From: "andrey.y.guskov at intel dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/81657] [8 Regression] FAIL: gcc.dg/20050503-1.c scan-assembler-not call
Date: Wed, 27 Sep 2017 09:39:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: andrey.y.guskov at intel dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-81657-4-1pf0wkebX1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81657-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81657-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02644.txt.bz2
Content-length: 421

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

Andrey Guskov <andrey.y.guskov at intel dot com> changed:

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

--- Comment #2 from Andrey Guskov <andrey.y.guskov at intel dot com> ---
Also seeing this.
>From gcc-bugs-return-576616-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 09:40:36 2017
Return-Path: <gcc-bugs-return-576616-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 9611 invoked by alias); 27 Sep 2017 09: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 9465 invoked by uid 48); 27 Sep 2017 09:40:32 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/82327] [7 Regression] ICE in equal_mem_array_ref_p, at tree-ssa-scopedtables.c:429 (i686-linux-gnu)
Date: Wed, 27 Sep 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: 7.2.1
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: blocker
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-82327-4-OZpvVkJy1o@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82327-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82327-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02645.txt.bz2
Content-length: 702

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

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

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

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Can't reproduce, neither with current gcc-7-branch, nor with r253107 (both
x86_64-linux with -m32 -march=i686 -mtune=generic -mno-sse), nor Sep 15th build
of i686-linux compiler.  Whether the compiler defaults to PIE or not should not
matter given the explicit -fPIC.

Can you reproduce it with vanilla gcc-7-branch?
>From gcc-bugs-return-576617-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 09:53:25 2017
Return-Path: <gcc-bugs-return-576617-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 61949 invoked by alias); 27 Sep 2017 09:53:25 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 61882 invoked by uid 48); 27 Sep 2017 09:53:17 -0000
From: "andrey.y.guskov at intel dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82341] New: [8 regression] i386/pr80732.c fail
Date: Wed, 27 Sep 2017 09: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: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: andrey.y.guskov at intel dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-82341-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02646.txt.bz2
Content-length: 895

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

            Bug ID: 82341
           Summary: [8 regression] i386/pr80732.c fail
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: andrey.y.guskov at intel dot com
  Target Milestone: ---

r253037 triggered the following fail:

FAIL: gcc.target/i386/pr80732.c (test for excess errors)
Excess errors:
gcc.target/i386/pr80732.c:46:8: warning: 'f2' 'ifunc' resolver should return a
function pointer [-Wattributes]

Option set:
-with-system-zlib --with-demangler-in-ld --with-fpmath=sse --enable-shared
--enable-host-shared --enable-clocale=gnu --enable-cloog-backend=isl
--enable-languages=c,c++,fortran,jit,lto --with-arch=haswell --with-cpu=haswell
>From gcc-bugs-return-576618-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 10:01:22 2017
Return-Path: <gcc-bugs-return-576618-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 93292 invoked by alias); 27 Sep 2017 10:01:21 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 93247 invoked by uid 48); 27 Sep 2017 10:01:15 -0000
From: "andrey.y.guskov at intel dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82342] New: [8 regression] i386/pr82260-2.c fail
Date: Wed, 27 Sep 2017 10: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:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: andrey.y.guskov at intel dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-82342-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02647.txt.bz2
Content-length: 912

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

            Bug ID: 82342
           Summary: [8 regression] i386/pr82260-2.c fail
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: andrey.y.guskov at intel dot com
  Target Milestone: ---

r253050 triggered these fails:

FAIL: gcc.target/i386/pr82260-2.c scan-assembler \\mmovl\\t%esi, %ecx
FAIL: gcc.target/i386/pr82260-2.c scan-assembler \\mmovb\\t%dl, %cl
FAIL: gcc.target/i386/pr82260-2.c scan-assembler \\mmovb\\t%r8b, %cl

Option set:
-with-system-zlib --with-demangler-in-ld --with-fpmath=sse --enable-shared
--enable-host-shared --enable-clocale=gnu --enable-cloog-backend=isl
--enable-languages=c,c++,fortran,jit,lto --with-arch=haswell --with-cpu=haswell
>From gcc-bugs-return-576619-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 10:07:57 2017
Return-Path: <gcc-bugs-return-576619-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 107402 invoked by alias); 27 Sep 2017 10:07:57 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 107352 invoked by uid 48); 27 Sep 2017 10:07:53 -0000
From: "pascal_cuoq at hotmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82340] volatile ignored in compound literal
Date: Wed, 27 Sep 2017 10:07:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pascal_cuoq at hotmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82340-4-KqZgFv5SuI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82340-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82340-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02648.txt.bz2
Content-length: 759

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

--- Comment #2 from Pascal Cuoq <pascal_cuoq at hotmail dot com> ---
Richard:

>  I don't see how a volatile compound literal could make any sense or how you'd observe the side-effect of multiple stores to it

Well, I have the same question about volatile variables the address of which is
not taken. But this is off-topic for this bug report, in which the volatile's
object's address is taken.

> (IIRC compound literals are constant!?).

The C11 standard invites the programmer to use the const qualifier if they want
a constant compound literal, and gives an explicit example of a “modifiable”
non-const compound literal: https://port70.net/~nsz/c/c11/n1570.html#6.5.2.5p12
>From gcc-bugs-return-576620-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 10:35:06 2017
Return-Path: <gcc-bugs-return-576620-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 69411 invoked by alias); 27 Sep 2017 10:35:06 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 69297 invoked by uid 48); 27 Sep 2017 10:35:00 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82148] [7/8 Regression] ICE in assign_temp, at function.c:968
Date: Wed, 27 Sep 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: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: 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-82148-4-QnsPUbyVhD@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82148-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82148-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02649.txt.bz2
Content-length: 661

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

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

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

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
The gimplifier is handed call to foo with argument of type Derived, the
conversion has been omitted.  As the call expects a type (in this case empty
class) passed by value, but the argument is one that should be passed by
invisible reference, this obviously crashes during expansion.
>From gcc-bugs-return-576621-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 10:42:20 2017
Return-Path: <gcc-bugs-return-576621-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 125264 invoked by alias); 27 Sep 2017 10:42:20 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 125204 invoked by uid 48); 27 Sep 2017 10:42:16 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82138] [8 Regression] Assembler messages: Error: can't resolve `.got2' {.got2 section} - `.LCF0' {.text.unlikely section}
Date: Wed, 27 Sep 2017 10:42:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: assemble-failure
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority cc
Message-ID: <bug-82138-4-FJelZLQhvH@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82138-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82138-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02650.txt.bz2
Content-length: 363

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4
                 CC|                            |jakub at gcc dot gnu.org
>From gcc-bugs-return-576623-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 11:11:17 2017
Return-Path: <gcc-bugs-return-576623-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 52661 invoked by alias); 27 Sep 2017 11:11: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 52205 invoked by uid 48); 27 Sep 2017 11:11:12 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/82095] [8 Regression] ICE in tree_nop_conversion at tree.c:11793 on ppc64le
Date: Wed, 27 Sep 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: middle-end
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-82095-4-zgnwSxjxh4@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82095-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82095-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02652.txt.bz2
Content-length: 423

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

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

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

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-576622-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 11:11:12 2017
Return-Path: <gcc-bugs-return-576622-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 52186 invoked by alias); 27 Sep 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 48023 invoked by uid 48); 27 Sep 2017 11:10:10 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82115] [8 Regression] ICE on (valid) C++11 code: Segmentation fault signal terminated program cc1plus
Date: Wed, 27 Sep 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: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-82115-4-ozR67HGiHQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82115-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82115-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02651.txt.bz2
Content-length: 1673

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

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

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

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Anyway, if value_dependent_expression_p needs to recurse on DECL_INITIAL that
can contain arbitrary stuff, including the VAR_DECL with that DECL_INITIAL in
it, we need to avoid the recursion.
"it is a constant with literal type and is initialized with an expression that
is value-dependent."
is what applies here.
So do we need some hash-map that will track VAR_DECLs  on whose DECL_INITIAL
we've already recursed?  The problem is that value_dependent_expression_p calls
type_dependent_expression_p and vice versa, so it is unclear when that hash-map
should be saved/restored.  Even if it is not possible to reach similar infinite
recursion through both of those functions (i.e. when we could save/restore the
hash-map in "toplevel" value_dependent_expression_p call and use
value_dependent_expression_p_1 recursing to itself from it, another question is
how to do that efficiently; how common are VAR_DECLs on which we recurse on
DECL_INITIAL?  How many there are on average during one top-level
value_dependent_expression_p call?  E.g. if the common cases are 0 or 1 times,
perhaps we could have next to the hash-map a single tree which we'd compare and
only create hash-map if seeing another one.
>From gcc-bugs-return-576624-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 12:42:52 2017
Return-Path: <gcc-bugs-return-576624-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 86726 invoked by alias); 27 Sep 2017 12:42:52 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 86667 invoked by uid 48); 27 Sep 2017 12:42:47 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82342] [8 regression] i386/pr82260-2.c fail
Date: Wed, 27 Sep 2017 12: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: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: target_milestone
Message-ID: <bug-82342-4-M5l8J43gwX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82342-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82342-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02653.txt.bz2
Content-length: 373

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |8.0

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed.
>From gcc-bugs-return-576625-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 12:43:09 2017
Return-Path: <gcc-bugs-return-576625-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 87531 invoked by alias); 27 Sep 2017 12:43:09 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 87488 invoked by uid 48); 27 Sep 2017 12:43:04 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82341] [8 regression] i386/pr80732.c fail
Date: Wed, 27 Sep 2017 12:43:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: 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-82341-4-uOU5qoi3Zx@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82341-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82341-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02654.txt.bz2
Content-length: 373

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |8.0

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed.
>From gcc-bugs-return-576626-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 12:53:48 2017
Return-Path: <gcc-bugs-return-576626-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 11439 invoked by alias); 27 Sep 2017 12:53: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 11371 invoked by uid 48); 27 Sep 2017 12:53:43 -0000
From: "p1006680 at mvrht dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82343] New: internal compiler error: Segmentation fault - template recurrency, SFINAE
Date: Wed, 27 Sep 2017 12:53:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: p1006680 at mvrht 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-82343-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02655.txt.bz2
Content-length: 2846

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

            Bug ID: 82343
           Summary: internal compiler error: Segmentation fault - template
                    recurrency, SFINAE
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: p1006680 at mvrht dot net
  Target Milestone: ---

Created attachment 42244
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42244&action=edit
Preprocessed source code, generated by adding -save-temps

Segmentation fault while compiling code (see attachment). Bug is probably
associated with function template recurrency.

Tested on Wandbox (https://wandbox.org). Confirmed with gcc: 8.0, 7.2, 7.1.

Exact version of GCC (gcc -v output):
    Using built-in specs.
    COLLECT_GCC=gcc
    COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper
    OFFLOAD_TARGET_NAMES=nvptx-none
    OFFLOAD_TARGET_DEFAULT=1
    Target: x86_64-linux-gnu
    Configured with: ../src/configure -v --with-pkgversion='Ubuntu
7.2.0-1ubuntu1~16.04' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs
--enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr
--with-gcc-major-version-only --program-suffix=-7
--program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes
--with-default-libstdcxx-abi=new --enable-gnu-unique-object
--disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib
--with-target-system-zlib --enable-objc-gc=auto --enable-multiarch
--disable-werror --with-arch-32=i686 --with-abi=m64
--with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic
--enable-offload-targets=nvptx-none --without-cuda-driver
--enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu
--target=x86_64-linux-gnu
    Thread model: posix
    gcc version 7.2.0 (Ubuntu 7.2.0-1ubuntu1~16.04)
System type (lsb_release -a output):
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description:    Ubuntu 16.04.3 LTS
    Release:    16.04
    Codename:   xenial
Complete command line that triggers the bug:
    g++ prog.cpp -std=gnu++1z
Compiler output (exit code: 4):
    g++: internal compiler error: Segmentation fault signal terminated program
cc1plus
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions.
Attachment:
    prog.ii - preprocessed source code, generated by adding -save-temps
>From gcc-bugs-return-576627-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 13:07:51 2017
Return-Path: <gcc-bugs-return-576627-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 125644 invoked by alias); 27 Sep 2017 13:07:51 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 125523 invoked by uid 48); 27 Sep 2017 13:07:47 -0000
From: "wschmidt at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82337] [5/6/7/8 Regression] ICE: SSA corruption at tree-ssa-coalesce.c:1010
Date: Wed, 27 Sep 2017 13: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: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wschmidt at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: wschmidt at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: assigned_to
Message-ID: <bug-82337-4-kJ9IQXENQ1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82337-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82337-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02656.txt.bz2
Content-length: 434

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

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

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

--- Comment #6 from Bill Schmidt <wschmidt at gcc dot gnu.org> ---
You bet.  I'll try to have a look today.
>From gcc-bugs-return-576628-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 13:15:58 2017
Return-Path: <gcc-bugs-return-576628-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 24610 invoked by alias); 27 Sep 2017 13: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 22679 invoked by uid 48); 27 Sep 2017 13:15:53 -0000
From: "d25fe0be at outlook dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81398] Complaining about 'partial specialization of '...' after instantiation' in c++1z
Date: Wed, 27 Sep 2017 13:15:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: d25fe0be at outlook 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-81398-4-yd5iB194lg@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81398-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81398-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02657.txt.bz2
Content-length: 458

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

d25fe0be@ <d25fe0be at outlook dot com> changed:

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

--- Comment #2 from d25fe0be@ <d25fe0be at outlook dot com> ---
Let's close it then. Sorry for the noise.
>From gcc-bugs-return-576629-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 13:24:28 2017
Return-Path: <gcc-bugs-return-576629-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 106253 invoked by alias); 27 Sep 2017 13:24: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 82094 invoked by uid 48); 27 Sep 2017 13:23:57 -0000
From: "amonakov at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82339] Inefficient movabs instruction
Date: Wed, 27 Sep 2017 13:24:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
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: cc
Message-ID: <bug-82339-4-sS3vwqc8Kd@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82339-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82339-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02658.txt.bz2
Content-length: 1080

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

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

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

--- Comment #3 from Alexander Monakov <amonakov at gcc dot gnu.org> ---
In addition to Agner Fog's manuals, the instlatx64 resource provide plenty of
latency/throughput data: http://users.atw.hu/instlatx64/

The benchmark in comment 0 measures throughput (including call/return overhead
which seems a bit strange), latency-wise movabs should be preferable.

So I think this indicates that a "real fix" should try to evaluate if a 64-bit
immediate move starts a critical-ish dependency chain, if yes, then we should
be trying to reduce latency and should prefer movabs, if not, we may prefer the
mov+shl combo that trades latency for overall throughput (i.e. assuming the
additional latency can be hidden by compiler scheduling and CPU reordering).
>From gcc-bugs-return-576630-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 14:05:05 2017
Return-Path: <gcc-bugs-return-576630-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 18459 invoked by alias); 27 Sep 2017 14:05:05 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 15552 invoked by uid 48); 27 Sep 2017 14:05:00 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82340] volatile ignored in compound literal
Date: Wed, 27 Sep 2017 14:05:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on assigned_to everconfirmed attachments.created
Message-ID: <bug-82340-4-dp9WbTpuil@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82340-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82340-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02659.txt.bz2
Content-length: 689

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

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

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

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

Untested fix.
>From gcc-bugs-return-576631-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 14:20:34 2017
Return-Path: <gcc-bugs-return-576631-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 7228 invoked by alias); 27 Sep 2017 14:20: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 3832 invoked by uid 55); 27 Sep 2017 14:20:28 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82159] [6/7/8 Regression] ICE: in assign_temp, at function.c:961
Date: Wed, 27 Sep 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: c++
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82159-4-AZuLnV4mmT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82159-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82159-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02660.txt.bz2
Content-length: 601

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

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Sep 27 14:19:57 2017
New Revision: 253230

URL: https://gcc.gnu.org/viewcvs?rev=253230&root=gcc&view=rev
Log:
        PR c++/82159
        * gimplify.c (gimplify_modify_expr): Don't optimize away zero sized
        lhs from calls if the lhs has addressable type.

        * g++.dg/opt/pr82159.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/opt/pr82159.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/gimplify.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-576632-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 14:23:09 2017
Return-Path: <gcc-bugs-return-576632-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 100753 invoked by alias); 27 Sep 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 99305 invoked by uid 48); 27 Sep 2017 14:22:56 -0000
From: "glisse at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/68924] No intrinsic for x86  `MOVQ m64, %xmm`  in 32bit mode.
Date: Wed, 27 Sep 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: target
X-Bugzilla-Version: 5.3.0
X-Bugzilla-Keywords: missed-optimization, ssemmx
X-Bugzilla-Severity: normal
X-Bugzilla-Who: glisse at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-68924-4-BnWMrODpji@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-68924-4@http.gcc.gnu.org/bugzilla/>
References: <bug-68924-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02661.txt.bz2
Content-length: 266

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

--- Comment #2 from Marc Glisse <glisse at gcc dot gnu.org> ---
Does anything bad happen if you remove the #ifdef/#endif for _mm_cvtsi64_si128?
(2 files in the testsuite would need updating for a proper patch)
>From gcc-bugs-return-576633-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 14:43:51 2017
Return-Path: <gcc-bugs-return-576633-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 70879 invoked by alias); 27 Sep 2017 14:43: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 70790 invoked by uid 48); 27 Sep 2017 14:43:44 -0000
From: "krebbel at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82012] [8 Regression] libitm build fails for s390x-linux-gnu
Date: Wed, 27 Sep 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: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: krebbel at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-82012-4-PlGDY65j6B@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82012-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82012-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02662.txt.bz2
Content-length: 446

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

Andreas Krebbel <krebbel at gcc dot gnu.org> changed:

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

--- Comment #12 from Andreas Krebbel <krebbel at gcc dot gnu.org> ---
Commit in Comment #9
>From gcc-bugs-return-576634-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 14:58:48 2017
Return-Path: <gcc-bugs-return-576634-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 116799 invoked by alias); 27 Sep 2017 14:58:48 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 116601 invoked by uid 48); 27 Sep 2017 14:58:44 -0000
From: "alexander.nesterovskiy at intel dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/82344] New: [8 Regression] SPEC CPU2006 435.gromacs ~10% performance regression with trunk@250855
Date: Wed, 27 Sep 2017 14:58:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: alexander.nesterovskiy 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 attachments.created
Message-ID: <bug-82344-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02663.txt.bz2
Content-length: 3249

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

            Bug ID: 82344
           Summary: [8 Regression] SPEC CPU2006 435.gromacs ~10%
                    performance regression with trunk@250855
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: alexander.nesterovskiy at intel dot com
  Target Milestone: ---

Created attachment 42246
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42246&action=edit
r250854 vs r250855 generated code comparison

Compilation options that affects regression: "-Ofast -march=core-avx2
-mfpmath=sse"

Regression happened after r250855 though it looks like this commit is not of
guilty by itself but reveals something in other stages.

Changes in 123t.reassoc1 stage leads to a bit different code generation during
stages that follow it.

Place of interest is in "inl1130" subroutine (file "innerf.f") - it's a part of
a big loop with 9 similar expressions with 4-byte float variables:
---------------
y1 = 1.0/sqrt(x1)
y2 = 1.0/sqrt(x2)
y3 = 1.0/sqrt(x3)
y4 = 1.0/sqrt(x4)
y5 = 1.0/sqrt(x5)
y6 = 1.0/sqrt(x6)
y7 = 1.0/sqrt(x7)
y8 = 1.0/sqrt(x8)
y9 = 1.0/sqrt(x9)
---------------

When compiled with "-ffast-math" 1/sqrt is calculated with "vrsqrtss"
instruction followed by Newton-Raphson step with four "vmulss", one "vadss" and
two constants used.
Like here (part of r250854 code):
---------------
vrsqrtss xmm12, xmm12, xmm7
vmulss   xmm7,  xmm12, xmm7
vmulss   xmm0,  xmm12, DWORD PTR .LC2[rip]
vmulss   xmm8,  xmm7,  xmm12
vaddss   xmm5,  xmm8,  DWORD PTR .LC1[rip]
vmulss   xmm1,  xmm5,  xmm0
---------------
Input values (x1-x9) are in xmm registers mostly (x2 and x7 in memory), output
values (y1-y9) are in xmm registers.

After r250855 .LC2 constant goes into xmm7 and x7 is also goes to xmm register.
This leads to lack of temporary registers and worse instructions interleaving
as a result.
See attached picture with part of assembly listings where corresponding
y=1/sqrt parts are painted the same color.

Finally these 9 lines of code are executed about twice slower which leads to
~10% performance regression for whole test.

I've made two independent attempts to change code in order to verify the above.

1. To be sure that we loose performance exactly in this part of a loop I just
pasted ~60 assembly instructions from previous revision to a new one (after
proper renaming of course). This helped to restore performance.

2. To be sure that the problem is due to a lack of temporary registers I moved
calculation of 1/sqrt for one last line into function call. Like here:
---------------
... in other module to disable inlining:
function myrsqrt(x)
  implicit none
  real*4 x
  real*4 myrsqrt
  myrsqrt = 1.0/sqrt(x);
  return
end function myrsqrt

...

y1 = 1.0/sqrt(x1)
y2 = 1.0/sqrt(x2)
y3 = 1.0/sqrt(x3)
y4 = 1.0/sqrt(x4)
y5 = 1.0/sqrt(x5)
y6 = 1.0/sqrt(x6)
y7 = 1.0/sqrt(x7)
y8 = 1.0/sqrt(x8)
y9 = myrsqrt(x9)
---------------
Even with call/ret overhead this also helped to restore performance since it
freed some registers.
>From gcc-bugs-return-576635-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 15:07:46 2017
Return-Path: <gcc-bugs-return-576635-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 27675 invoked by alias); 27 Sep 2017 15:07:46 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 23758 invoked by uid 48); 27 Sep 2017 15:07:37 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82342] [8 regression] i386/pr82260-2.c fail
Date: Wed, 27 Sep 2017 15: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: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on assigned_to everconfirmed attachments.created
Message-ID: <bug-82342-4-BQXEiea7tT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82342-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82342-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02664.txt.bz2
Content-length: 760

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

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

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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 42247
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42247&action=edit
gcc8-pr82342.patch

Untested fix.  BMI2 sarx is not something the test intends to test, so disable
it.
>From gcc-bugs-return-576636-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 15:11:28 2017
Return-Path: <gcc-bugs-return-576636-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 35647 invoked by alias); 27 Sep 2017 15:11:28 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 31032 invoked by uid 48); 27 Sep 2017 15:11:24 -0000
From: "wschmidt at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82337] [5/6/7/8 Regression] ICE: SSA corruption at tree-ssa-coalesce.c:1010
Date: Wed, 27 Sep 2017 15:11:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wschmidt at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: wschmidt at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82337-4-8JNSNVuIUn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82337-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82337-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02665.txt.bz2
Content-length: 257

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

--- Comment #7 from Bill Schmidt <wschmidt at gcc dot gnu.org> ---
I think we can do something simpler by just keeping these abnormal SSA names
out of the basis chains in the table.  Working on a patch.
>From gcc-bugs-return-576637-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 15:17:29 2017
Return-Path: <gcc-bugs-return-576637-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 104250 invoked by alias); 27 Sep 2017 15:17: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 104195 invoked by uid 48); 27 Sep 2017 15:17:25 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82341] [8 regression] i386/pr80732.c fail
Date: Wed, 27 Sep 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: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc resolution
Message-ID: <bug-82341-4-QKOnpJyf0w@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82341-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82341-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02666.txt.bz2
Content-length: 608

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

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

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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Can't reproduce this.
I believe this test used to FAIL since r252976 till r253100, but shouldn't be
broken anymore.
>From gcc-bugs-return-576638-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 15:20:48 2017
Return-Path: <gcc-bugs-return-576638-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 114678 invoked by alias); 27 Sep 2017 15: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 112198 invoked by uid 48); 27 Sep 2017 15:20:43 -0000
From: "wschmidt at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82337] [5/6/7/8 Regression] ICE: SSA corruption at tree-ssa-coalesce.c:1010
Date: Wed, 27 Sep 2017 15: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: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wschmidt at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: wschmidt at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-82337-4-euy3uXsCBt@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82337-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82337-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02667.txt.bz2
Content-length: 306

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

--- Comment #8 from Bill Schmidt <wschmidt at gcc dot gnu.org> ---
Created attachment 42248
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42248&action=edit
Proposed patch

Here's what I'm testing -- looks like it fixes this particular case.
>From gcc-bugs-return-576639-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 15:23:38 2017
Return-Path: <gcc-bugs-return-576639-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 100889 invoked by alias); 27 Sep 2017 15:23:38 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 98343 invoked by uid 48); 27 Sep 2017 15:23:29 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/63392] poor error recovery with missing typename
Date: Wed, 27 Sep 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: 5.0
X-Bugzilla-Keywords: diagnostic, error-recovery
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
Message-ID: <bug-63392-4-7Y8RURqjCK@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-63392-4@http.gcc.gnu.org/bugzilla/>
References: <bug-63392-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02668.txt.bz2
Content-length: 631

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |error-recovery
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-09-27
                 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-576640-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 16:11:27 2017
Return-Path: <gcc-bugs-return-576640-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 95115 invoked by alias); 27 Sep 2017 16:11: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 92183 invoked by uid 48); 27 Sep 2017 16:11:23 -0000
From: "claprix at yandex dot ru" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82345] New: low performance (comparing to clang)
Date: Wed, 27 Sep 2017 16:11:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: claprix at yandex dot ru
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-82345-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02669.txt.bz2
Content-length: 1066

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

            Bug ID: 82345
           Summary: low performance (comparing to clang)
           Product: gcc
           Version: 7.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: claprix at yandex dot ru
  Target Milestone: ---

String search is slow for this code.

$ g++ -O2 -DNDEBUG -std=c++14 gcc_perf_buf.cc && time ./a.out shodan/huge01.txt 

real    0m0.470s
user    0m0.367s
sys     0m0.104s
$ clang++ -O2 -DNDEBUG -std=c++14 gcc_perf_buf.cc && time ./a.out
shodan/huge01.txt 

real    0m0.248s
user    0m0.179s
sys     0m0.069s

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

$ lsb_release -d
Description:    Ubuntu Artful Aardvark (development branch)
>From gcc-bugs-return-576641-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 16:13:40 2017
Return-Path: <gcc-bugs-return-576641-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 8814 invoked by alias); 27 Sep 2017 16:13:40 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 8738 invoked by uid 48); 27 Sep 2017 16:13:36 -0000
From: "claprix at yandex dot ru" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82345] low performance (comparing to clang)
Date: Wed, 27 Sep 2017 16:13:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: claprix at yandex dot ru
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82345-4-61Q1uiXmT5@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82345-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82345-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02670.txt.bz2
Content-length: 157

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

--- Comment #1 from Eugene <claprix at yandex dot ru> ---
Source file https://yadi.sk/d/FqXH-4Y63NGeSw
>From gcc-bugs-return-576642-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 16:22:19 2017
Return-Path: <gcc-bugs-return-576642-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 97136 invoked by alias); 27 Sep 2017 16:22: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 94539 invoked by uid 48); 27 Sep 2017 16:22:15 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82345] low performance (comparing to clang)
Date: Wed, 27 Sep 2017 16:22:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: 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-82345-4-y4BfOfi6Rb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82345-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82345-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02671.txt.bz2
Content-length: 667

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2017-09-27
     Ever confirmed|0                           |1

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Please attach the source here, don't link to somewhere else. Compress it if
needed, or better still, reduce it:
https://gcc.gnu.org/wiki/A_guide_to_testcase_reduction

https://gcc.gnu.org/bugs/
>From gcc-bugs-return-576643-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 16:25:18 2017
Return-Path: <gcc-bugs-return-576643-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 69864 invoked by alias); 27 Sep 2017 16: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 69839 invoked by uid 48); 27 Sep 2017 16:25:13 -0000
From: "claprix at yandex dot ru" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82345] low performance (comparing to clang)
Date: Wed, 27 Sep 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: claprix at yandex dot ru
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-82345-4-35JwImoEuM@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82345-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82345-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02672.txt.bz2
Content-length: 224

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

--- Comment #3 from Eugene <claprix at yandex dot ru> ---
Created attachment 42249
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42249&action=edit
source code
>From gcc-bugs-return-576644-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 17:02:24 2017
Return-Path: <gcc-bugs-return-576644-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 100939 invoked by alias); 27 Sep 2017 17:02:24 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 100895 invoked by uid 48); 27 Sep 2017 17:02:21 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82345] low performance (comparing to clang)
Date: Wed, 27 Sep 2017 17: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: 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-82345-4-z5HreXPhyu@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82345-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82345-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02673.txt.bz2
Content-length: 508

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

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
When I compare the performance of this similar program on a text file of 4
million lines I see gcc performs slightly better:

#include <fstream>
#include <string>
#include <experimental/string_view>

int main(int , char**argv) {
  std::ifstream in(argv[1]);

  std::string line;
  while (std::getline(in, line)) {
    auto pos = std::experimental::string_view(line).find("http");
  }
}
>From gcc-bugs-return-576645-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 17:06:28 2017
Return-Path: <gcc-bugs-return-576645-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 121857 invoked by alias); 27 Sep 2017 17:06: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 119031 invoked by uid 48); 27 Sep 2017 17:06:24 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82345] low performance (comparing to clang)
Date: Wed, 27 Sep 2017 17:06:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: 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: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: 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-82345-4-kCseTGXF1Q@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82345-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82345-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02674.txt.bz2
Content-length: 529

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

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

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

--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Eugene from comment #3)
> Created attachment 42249 [details]
> source code

Thanks, GCC does indeed perform worse for the version using boost::string_view.
>From gcc-bugs-return-576646-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 18:08:34 2017
Return-Path: <gcc-bugs-return-576646-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 82109 invoked by alias); 27 Sep 2017 18:08:33 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 77625 invoked by uid 48); 27 Sep 2017 18:08:30 -0000
From: "clyon at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82258] [8 regression] allocate_zerosize_3.f fails since r251949
Date: Wed, 27 Sep 2017 18:08:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: clyon at gcc dot gnu.org
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: pault at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82258-4-G7pcbjLrK3@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82258-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82258-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02675.txt.bz2
Content-length: 331

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

--- Comment #9 from Christophe Lyon <clyon at gcc dot gnu.org> ---

I get:
           1           2           1           0          -2          -3       
  -4
           3           4           5           0           7           8       
   9
>From gcc-bugs-return-576647-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 18:37:11 2017
Return-Path: <gcc-bugs-return-576647-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 11873 invoked by alias); 27 Sep 2017 18:37:11 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 9812 invoked by uid 48); 27 Sep 2017 18:37:07 -0000
From: "bergner at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/69493] Poor code generation for return of struct containing vectors on PPC64LE
Date: Wed, 27 Sep 2017 18:37:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 6.0
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: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-69493-4-SHeVkSxm6W@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-69493-4@http.gcc.gnu.org/bugzilla/>
References: <bug-69493-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02676.txt.bz2
Content-length: 1569

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

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

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

--- Comment #6 from Peter Bergner <bergner at gcc dot gnu.org> ---
A simpler test case that shows the same problem when compiling for POWER8. When
compiling for POWER9, we get the code we want/expect:

bergner@pike:~/gcc/BUGS/PR70053$ cat pr69493-2.c 
typedef struct
{
  __vector double vx0;
  __vector double vx1;
} vec_t;

vec_t
foo (__vector double a, __vector double b)
{
  vec_t result;
  result.vx0 = a;
  result.vx1 = b;
  return result;
}

bergner@pike:~/gcc/BUGS/PR70053$
/home/bergner/gcc/build/gcc-fsf-mainline-pr70053-debug/gcc/xgcc
-B/home/bergner/gcc/build/gcc-fsf-mainline-pr70053-debug/gcc -S -O2
-mcpu=power8 pr69493-2.c 
bergner@pike:~/gcc/BUGS/PR70053$ cat pr69493-2.s 
...
foo:
        addi 8,1,-96
        li 10,32
        xxpermdi 34,34,34,2
        xxpermdi 35,35,35,2
        li 9,48
        stxvd2x 34,8,10
        stxvd2x 35,8,9
        lxvd2x 34,8,10
        lxvd2x 35,8,9
        xxpermdi 34,34,34,2
        xxpermdi 35,35,35,2
        blr


bergner@pike:~/gcc/BUGS/PR70053$
/home/bergner/gcc/build/gcc-fsf-mainline-pr70053-debug/gcc/xgcc
-B/home/bergner/gcc/build/gcc-fsf-mainline-pr70053-debug/gcc -S -O2
-mcpu=power9 pr69493-2.c 

bergner@pike:~/gcc/BUGS/PR70053$ cat pr69493-2.s 
...
foo:
        blr
>From gcc-bugs-return-576648-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 19:33:16 2017
Return-Path: <gcc-bugs-return-576648-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 53956 invoked by alias); 27 Sep 2017 19: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 50549 invoked by uid 48); 27 Sep 2017 19:33:10 -0000
From: "peter at cordes dot ca" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82339] Inefficient movabs instruction
Date: Wed, 27 Sep 2017 19:33:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: peter at cordes dot ca
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82339-4-1FJS0JEjBC@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82339-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82339-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02677.txt.bz2
Content-length: 5396

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

--- Comment #4 from Peter Cordes <peter at cordes dot ca> ---
(In reply to Jakub Jelinek from comment #0)
> At least on i7-5960X in the following testcase:
> 
> baz is fastest as well as shortest.
> So I think we should consider using movl $cst, %edx; shlq $shift, %rdx
> instead of movabsq $(cst << shift), %rdx.
> 
> Unfortunately I can't find in Agner Fog MOVABS and for MOV r64,i64 there is
> too little information, so it is unclear on which CPUs it is beneficial.

Agner uses Intel syntax, where imm64 doesn't have a special mnemonic.  It's
part of the  mov r,i  entry in the tables.  But those tables are throughput for
a flat sequence of the instruction repeated many times, not mixed with others
where front-end effects can be different.  Agner probably didn't actually test
mov r64,imm64, because its throughput is different when tested in a long
sequence (not in a small loop).  According to
http://users.atw.hu/instlatx64/GenuineIntel00506E3_Skylake2_InstLatX64.txt, a
regular desktop Skylake has 0.64c throughput for mov r64, imm64, vs. 0.25 for
mov r32, imm32.  (They don't test mov r/m64, imm32, the 7-byte encoding for
something like mov rax,-1).

Skylake with up-to-date microcode (including all SKX CPUs) disables the loop
buffer (LSD), and has to read uops from the uop cache every time even in short
loops.

Uop-cache effects could be a problem for instructions with a 64-bit immediate. 
Agner only did detailed testing for Sandybridge; it's likely that Skylake still
mostly works the same (although the uop cache read bandwidth is higher).

mov r64, imm64 takes 2 entries in the uop cache (because of the 64-bit
immediate that's outside the signed 32-bit range), and takes 2 cycles to read
from the uop cache, according to Agner's Table 9.1 in his microarch pdf.  It
can borrow space from another entry in the same uop cache line, but still takes
extra cycles to read.

See
https://stackoverflow.com/questions/46433208/which-is-faster-imm64-or-m64-for-x86-64
for an SO question the other day about loading constants from memory vs. imm64.
 (Although I didn't have anything very wise to say there, just that it depends
on surrounding code as always!)

> Peter, any information on what the MOV r64,i64 latency/throughput on various
> CPUs vs. MOV r32,i32; SHL r64,i8 is?

When not bottlenecked on the front-end,  mov r64,i64  is a single ALU uop with
1c latency.  I think it's pretty much universal that it's the best choice when
you bottleneck on anything else.

Some loops *do* bottleneck on the front-end, though, especially without
unrolling.  But then it comes down to whether we have a uop-cache read
bottleneck, or a decode bottleneck, or an issue bottleneck (4 fused-domain uops
per clock renamed/issued).  For issue/retire bandwidth mov/shl is 2 uops
instead of 1.

But for code that bottlenecks on reading the uop-cache, it's really hard to say
if one is better in general.  I think if the imm64 can borrow space in other
uops in the cache line, it's better for uop-cache density than mov/shl.  Unless
the extra code-size means one fewer instruction fits into a uop cache line that
wasn't nearly full (6 uops).

Front-end stuff is *very* context-sensitive.  :/  Calling a very short
non-inline function from a tiny loop is probably making the uop-cache issues
worse, and is probably favouring the mov/shift over the mov r64,imm64 approach
more than you'd see as part of a larger contiguous block.

I *think*  mov r64,imm64  should still generally be preferred in most cases. 
Usually the issue queue (IDQ) between the uop cache and the issue/rename stage
can absorb uop-cache read bubbles.

A constant pool might be worth considering if code-size is getting huge
(average instruction length much greater than 4).

Normally of course you'd really want to hoist an imm64 out of a loop, if you
have a spare register.  When optimizing small loops, you can usually avoid
front-end bottlenecks.  It's a lot harder for medium-sized loops involving
separate functions.  I'm not confident this noinline case is very
representative of real code.

-------

Note that in this special case, you can save another byte of code by using 
ror rax  (implicit by-one encoding).

Also worth considering for tune=sandybridge or later: xor eax,eax / bts rax,
63.   2B + 5B = 7B.  BTS has 0.5c throughput, and xor-zeroing doesn't need an
ALU on SnB-family (so it has zero latency; the BTS can execute right away even
if it issues in the same cycle as xor-zeroing).  BTS runs on the same ports as
shifts (p0/p6 in HSW+, or p0/p5 in SnB/IvB).  On older Intel, it has 1 per
clock throughput for the reg,imm form.  On AMD, it's 2 uops, with 1c throughput
(0.5c on Ryzen), so its not bad if used on AMD CPUs, but it doesn't look good
for tune=generic.

At -Os, you could consider  or eax, -1;  shl rax,63.  (Also 7 bytes, and works
for constants with multiple consecutive high-bits set). The false dependency on
the old RAX value is often not a bottleneck, and gcc already uses OR with -1
for  return -1;

It's too bad there isn't an efficient 3-byte way to get small constants
zero-extended into registers, like a mov r/m32, imm8 or something.  That would
make the code-size savings large enough to be worth considering
multi-instruction stuff more often.
>From gcc-bugs-return-576649-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 19:34:33 2017
Return-Path: <gcc-bugs-return-576649-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 100809 invoked by alias); 27 Sep 2017 19:34:33 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 95242 invoked by uid 48); 27 Sep 2017 19:34:29 -0000
From: "wschmidt at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82337] [5/6/7/8 Regression] ICE: SSA corruption at tree-ssa-coalesce.c:1010
Date: Wed, 27 Sep 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: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wschmidt at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: wschmidt at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82337-4-yPQy9TjSA0@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82337-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82337-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02678.txt.bz2
Content-length: 219

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

--- Comment #9 from Bill Schmidt <wschmidt at gcc dot gnu.org> ---
Revised and tested patch posted here: 
https://gcc.gnu.org/ml/gcc-patches/2017-09/msg01836.html
>From gcc-bugs-return-576650-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 19:36:10 2017
Return-Path: <gcc-bugs-return-576650-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 70045 invoked by alias); 27 Sep 2017 19:36: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 68178 invoked by uid 48); 27 Sep 2017 19:36:07 -0000
From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libfortran/66756] libgfortran: ThreadSanitizer: lock-order-inversion
Date: Wed, 27 Sep 2017 19:36:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libfortran
X-Bugzilla-Version: 5.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: tkoenig 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: attachments.created
Message-ID: <bug-66756-4-uiIQz7dbgn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66756-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66756-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02679.txt.bz2
Content-length: 518

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

--- Comment #11 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Created attachment 42250
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42250&action=edit
Proposed patch

This patch is an attempt at getting rid of the lock-order
inversion.  It seems to do the right thing, and survives
both regression-testing and the thread sanitizer.

It is not yet complete (comments are not adjusted).

I would be grateful if somebody had a way to stress-test it.
>From gcc-bugs-return-576651-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 19:38:35 2017
Return-Path: <gcc-bugs-return-576651-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 122226 invoked by alias); 27 Sep 2017 19:38: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 117705 invoked by uid 48); 27 Sep 2017 19:38:31 -0000
From: "kargl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/81509] Wrong compilation error: iand/ieor/ior + boz + -stdò008
Date: Wed, 27 Sep 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: fortran
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: kargl at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81509-4-Z8oWxJgwZa@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81509-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81509-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02680.txt.bz2
Content-length: 190

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

--- Comment #4 from kargl at gcc dot gnu.org ---
A patch has been submitted.  See

https://gcc.gnu.org/ml/fortran/2017-09/msg00124.html
>From gcc-bugs-return-576652-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 19:40:29 2017
Return-Path: <gcc-bugs-return-576652-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 33346 invoked by alias); 27 Sep 2017 19:40:29 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 30637 invoked by uid 48); 27 Sep 2017 19:40:24 -0000
From: "janus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/82324] Problem in new trunk test case gfortran.dg/promotion_4.f90
Date: Wed, 27 Sep 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: testsuite
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: janus at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: janus 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-82324-4-uibXIbFQJD@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82324-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82324-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02681.txt.bz2
Content-length: 510

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

janus at gcc dot gnu.org changed:

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

--- Comment #7 from janus at gcc dot gnu.org ---
I hope all failures should be fixed with r253214. If not, please reopen.
>From gcc-bugs-return-576653-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 19:44:34 2017
Return-Path: <gcc-bugs-return-576653-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 128129 invoked by alias); 27 Sep 2017 19:44:34 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 126203 invoked by uid 48); 27 Sep 2017 19:44:30 -0000
From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libfortran/66756] libgfortran: ThreadSanitizer: lock-order-inversion
Date: Wed, 27 Sep 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: libfortran
X-Bugzilla-Version: 5.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: tkoenig 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-66756-4-PXmKBvrDS9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66756-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66756-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02682.txt.bz2
Content-length: 330

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

--- Comment #12 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Correction... the patch does not work with a simple
example such as

program main
  !$OMP PARALLEL NUM_THREADS(4)
  print *,"Hello, world"
  !$OMP END PARALLEL 
end program main

Some more digging to do...
>From gcc-bugs-return-576654-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 19:53:07 2017
Return-Path: <gcc-bugs-return-576654-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 112479 invoked by alias); 27 Sep 2017 19:53: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 106077 invoked by uid 48); 27 Sep 2017 19:53:02 -0000
From: "peter at cordes dot ca" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82339] Inefficient movabs instruction
Date: Wed, 27 Sep 2017 19:53:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: peter at cordes dot ca
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82339-4-bkJnvyeuqp@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82339-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82339-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02683.txt.bz2
Content-length: 3185

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

--- Comment #5 from Peter Cordes <peter at cordes dot ca> ---
(In reply to Richard Biener from comment #2)
> I always wondered if it is more efficient to have constant pools per function
> in .text so we can do %rip relative loads with short displacement?

There's no rel8 encoding for RIP-relative; it's always RIP+rel32, so this
doesn't save code-size.  (AMD64 hacked it in by repurposing one of the two
redundant ways to encode a 32-bit absolute address with no base or index
register; the ModRM machine-code encoding is otherwise the same between x86-32
and x86-64.)

> I suppose the assembler could even optimize things if there's the desired
> constant somewhere near in the code itself... (in case data loads from icache
> do not occur too much of a penalty).

There's no penalty for loads AFAIK, only stores to addresses near RIP are
snooped and cause self-modifying-code machine clears.

Code will often be hot in L2 cache as well as L1I, so an L1D miss could hit
there.  But L1dTLB is separate from L1iTLB, so you could TLB miss even when
loading from the instruction you're running.

(The L2TLB is usually a victim cache, IIRC, so a TLB miss that loaded the
translation into the L1iTLB doesn't also put it into L2TLB.)

>  The assembler could also replace
> .palign space before function start with (small) constant(s).

This could be a win in some cases, if L1D pressure is low or there wasn't any
locality with other constants anyway.  If there could have been locality,
you're just wasting space in L1D by having your data spread out across more
cache lines.

But in general on x86, it's probably not a good strategy.


BTW, gcc could do a lot better with vector constants.  e.g. set1_ps(1.0f) could
compile to a vbroadcastss load (which is the same cost as a normal vmovaps). 
But instead it actually repeats the 1.0f in memory 8 times.  That's useful if
you want to use it as a memory operand, because before AVX512 you can't have
broadcast memory operands to ALU instructions.  But if it's only ever loaded
ahead of a loop, a broadcast load or a PMOVZX load can save a lot of space.  In
a function with multiple vector constants, this is the difference between one
vs. multiple cache lines for all its data. 

(vpbroadcastd/q, ss/sd, and 128-bit is handled in the load ports on Intel and
AMD, but vector PMOVZX/SX with a memory operand is still a micro-fused
load+ALU.  Still, could easily be worth it for e.g.
_mm256_set_epi32(1,2,3,4,5,6,7,8), storing that as .byte 1,2,3,4,5,6,7,8.

The downside is lost opportunities for different functions to share the same
constant like with string-literal deduplication.  If one function wants the
full constant in memory for use as a memory operand, it's probably better for
all functions to use that copy.  Except that putting all the constants for a
given function into a couple cache lines is good for locality when it runs.  If
the full copy somewhere else isn't generally hot when a function that could use
a broadcast or pmovzx/pmovsx load runs, it might be better for it to use a
separate copy stored with the constants it does touch.
>From gcc-bugs-return-576655-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 20:41:50 2017
Return-Path: <gcc-bugs-return-576655-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 7796 invoked by alias); 27 Sep 2017 20: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 1736 invoked by uid 48); 27 Sep 2017 20:41:46 -0000
From: "krzysio.kurek at wp dot pl" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82346] New: String is not detected as a part of std
Date: Wed, 27 Sep 2017 20: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: 5.4.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: krzysio.kurek at wp dot pl
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-82346-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02684.txt.bz2
Content-length: 633

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

            Bug ID: 82346
           Summary: String is not detected as a part of std
           Product: gcc
           Version: 5.4.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: krzysio.kurek at wp dot pl
  Target Milestone: ---

Most basic code fails to compile.

#include <iostream>
#include <string>

int main ()
{
  std::string perfect = std::to_string(1+2+4+7+14) + " is a perfect number";
  std::cout << perfect << '\n';
  return 0;
}
>From gcc-bugs-return-576656-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 20:52:39 2017
Return-Path: <gcc-bugs-return-576656-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 23397 invoked by alias); 27 Sep 2017 20:52:39 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 23339 invoked by uid 48); 27 Sep 2017 20:52:35 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82346] String is not detected as a part of std
Date: Wed, 27 Sep 2017 20:52:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 5.4.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pinskia at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: INVALID
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-82346-4-0EBwdooFb6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82346-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82346-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02685.txt.bz2
Content-length: 640

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

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

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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This compiles for me with GCC 7 without any -std=* options.  GCC 6 and above
default to C++14 while GCC 5 defaults to C++03 so you might need -std=c++11 or
-std=gnu++11 to make std::to_string work correctly.
>From gcc-bugs-return-576657-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 21:07:47 2017
Return-Path: <gcc-bugs-return-576657-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 76769 invoked by alias); 27 Sep 2017 21:07:47 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 76704 invoked by uid 48); 27 Sep 2017 21:07:43 -0000
From: "krzysio.kurek at wp dot pl" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82346] String is not detected as a part of std
Date: Wed, 27 Sep 2017 21: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: 5.4.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: krzysio.kurek at wp dot pl
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-82346-4-hPJBH8V7ZA@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82346-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82346-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02686.txt.bz2
Content-length: 523

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

krzysio.kurek at wp dot pl changed:

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

--- Comment #2 from krzysio.kurek at wp dot pl ---
Oh yeah I could have mentioned, my bad.
-std=c++11/-std=c++14 do not fix the issue. It only fails on 5.4.1, and works
on 5.4.0.
>From gcc-bugs-return-576658-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 21:12:48 2017
Return-Path: <gcc-bugs-return-576658-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 91980 invoked by alias); 27 Sep 2017 21: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 91930 invoked by uid 48); 27 Sep 2017 21:12:43 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/82346] [5.5 Regression] String is not detected as a part of std
Date: Wed, 27 Sep 2017 21:12:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 5.4.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pinskia at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: component target_milestone short_desc
Message-ID: <bug-82346-4-mnE9xJdyfH@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82346-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82346-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02687.txt.bz2
Content-length: 669

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c++                         |libstdc++
   Target Milestone|---                         |5.5
            Summary|String is not detected as a |[5.5 Regression] String is
                   |part of std                 |not detected as a part of
                   |                            |std

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Can you provide the exact output of g++ then?
>From gcc-bugs-return-576659-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 21:13:02 2017
Return-Path: <gcc-bugs-return-576659-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 92859 invoked by alias); 27 Sep 2017 21:13:02 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 92799 invoked by uid 48); 27 Sep 2017 21:12:58 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/82346] [5.5 Regression] String is not detected as a part of std
Date: Wed, 27 Sep 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: libstdc++
X-Bugzilla-Version: 5.4.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pinskia at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82346-4-1BZuqXpP4X@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82346-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82346-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02688.txt.bz2
Content-length: 285

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

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #3)
> Can you provide the exact output of g++ then?

Can you provide the exact output of g++ -v then?


Sorry for the typo.
>From gcc-bugs-return-576660-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 21:16:55 2017
Return-Path: <gcc-bugs-return-576660-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 111978 invoked by alias); 27 Sep 2017 21:16: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 111920 invoked by uid 48); 27 Sep 2017 21:16:50 -0000
From: "krzysio.kurek at wp dot pl" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/82346] [5.5 Regression] String is not detected as a part of std
Date: Wed, 27 Sep 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: libstdc++
X-Bugzilla-Version: 5.4.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: krzysio.kurek at wp dot pl
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82346-4-rGMT7upEx7@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82346-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82346-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02689.txt.bz2
Content-length: 4471

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

--- Comment #5 from krzysio.kurek at wp dot pl ---
$ g++-5 -std=c++11 main.cpp -o string -v
Using built-in specs.
COLLECT_GCC=g++-5
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.4.1-12ubuntu4'
--with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs
--enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-5 --enable-shared --enable-linker-build-id
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes
--with-default-libstdcxx-abi=new --enable-gnu-unique-object
--disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie
--with-system-zlib --disable-browser-plugin --enable-java-awt=gtk
--enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre
--enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64
--with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64
--with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar
--enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686
--with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib
--with-tune=generic --enable-checking=release --build=x86_64-linux-gnu
--host=x86_64-linux-gnu --target=x86_64-linux-gnu                               
Thread model: posix                                                             
gcc version 5.4.1 20170906 (Ubuntu 5.4.1-12ubuntu4)                             
COLLECT_GCC_OPTIONS='-std=c++11' '-o' 'string' '-v' '-shared-libgcc'
'-mtune=generic' '-march=x86-64'                                                
 /usr/lib/gcc/x86_64-linux-gnu/5/cc1plus -quiet -v -imultiarch x86_64-linux-gnu
-D_GNU_SOURCE main.cpp -quiet -dumpbase main.cpp -mtune=generic -march=x86-64
-auxbase main -std=c++11 -version -fstack-protector-strong -Wformat
-Wformat-security -o /tmp/ccUSBFkt.s                                            
GNU C++11 (Ubuntu 5.4.1-12ubuntu4) version 5.4.1 20170906 (x86_64-linux-gnu)    
        compiled by GNU C version 5.4.1 20170906, GMP version 6.1.2, MPFR
version 3.1.6-rc1, MPC version 1.0.3                                            
warning: MPFR header version 3.1.6-rc1 differs from library version 3.1.6.      
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072      
ignoring duplicate directory "/usr/include/x86_64-linux-gnu/c++/5"              
ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu"
ignoring nonexistent directory
"/usr/lib/gcc/x86_64-linux-gnu/5/../../../../x86_64-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/include/c++/5
 /usr/include/x86_64-linux-gnu/c++/5
 /usr/include/c++/5/backward
 /usr/lib/gcc/x86_64-linux-gnu/5/include
 /usr/local/include
 /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed
 /usr/include/x86_64-linux-gnu
 /usr/include
End of search list.
GNU C++11 (Ubuntu 5.4.1-12ubuntu4) version 5.4.1 20170906 (x86_64-linux-gnu)
        compiled by GNU C version 5.4.1 20170906, GMP version 6.1.2, MPFR
version 3.1.6-rc1, MPC version 1.0.3
warning: MPFR header version 3.1.6-rc1 differs from library version 3.1.6.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 4fa6e505be5bb1fff9039a541d8268ee
main.cpp: In function ‘int main()’:
main.cpp:6:25: error: ‘to_string’ is not a member of ‘std’
   std::string perfect = std::to_string(1+2+4+7+14) + " is a perfect number";
                         ^
>From gcc-bugs-return-576661-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 21:18:25 2017
Return-Path: <gcc-bugs-return-576661-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 113738 invoked by alias); 27 Sep 2017 21:18: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 113529 invoked by uid 48); 27 Sep 2017 21:18:20 -0000
From: "peter at cordes dot ca" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/68924] No intrinsic for x86  `MOVQ m64, %xmm`  in 32bit mode.
Date: Wed, 27 Sep 2017 21:18:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 5.3.0
X-Bugzilla-Keywords: missed-optimization, ssemmx
X-Bugzilla-Severity: normal
X-Bugzilla-Who: peter at cordes dot ca
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-68924-4-mecTkOmsCZ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-68924-4@http.gcc.gnu.org/bugzilla/>
References: <bug-68924-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02690.txt.bz2
Content-length: 1770

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

--- Comment #3 from Peter Cordes <peter at cordes dot ca> ---
(In reply to Marc Glisse from comment #2)
> Does anything bad happen if you remove the #ifdef/#endif for
> _mm_cvtsi64_si128? (2 files in the testsuite would need updating for a
> proper patch)

It's just a wrapper for

_mm_cvtsi64_si128 (long long __A) {
  return _mm_set_epi64x (0, __A);
}

and _mm_set_epi64x is already available in 32-bit mode.

I tried using _mm_set_epi64x(0, i) (https://godbolt.org/g/24AYPk), and got the
expected results (same as with _mm_loadl_epi64(&i));

__m128i movq_test(uint64_t *p) {
  return _mm_set_epi64x( 0, *p );
}

        movl    4(%esp), %eax
        vmovq   (%eax), %xmm0
        ret

For the test where we shift before movq, it still uses 32-bit integer
double-precision shifts, stores to the stack, then vmovq (instead of optimizing
to  vmovq / vpsllq)


For the reverse, we get:

long long extract(__m128i v) {
    return ((__v2di)v)[0];
}

        subl    $28, %esp
        vmovq   %xmm0, 8(%esp)
        movl    8(%esp), %eax
        movl    12(%esp), %edx
        addl    $28, %esp
        ret

MOVD / PEXTRD might be better, but gcc does handle it.  It's all using syntax
that's available in 32-bit mode, not a special built-in.

I don't think it's helpful to disable the 64-bit integer intrinsics for 32-bit
mode, even though they are no longer always single instructions.  I guess it
could be worse if someone used it without thinking, assuming it would be the
same cost as MOVD, and didn't really need the full 64 bits.  In that case, a
compile-time error would prompt them to port more optimally to 32-bit.  But
it's not usually gcc's job to refuse to compile code that might be sub-optimal!
>From gcc-bugs-return-576662-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 21:57:08 2017
Return-Path: <gcc-bugs-return-576662-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 48575 invoked by alias); 27 Sep 2017 21:57:08 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 48530 invoked by uid 48); 27 Sep 2017 21:57:03 -0000
From: "krzysio.kurek at wp dot pl" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/82302] LTO producing bad code
Date: Wed, 27 Sep 2017 21:57:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: lto
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: lto, wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: krzysio.kurek at wp dot pl
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82302-4-dGA51geMy9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82302-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82302-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02691.txt.bz2
Content-length: 256

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

--- Comment #9 from krzysio.kurek at wp dot pl ---
I think I located the issue, it works fine on my machine, but using I found an
error using glslangValidator.
Please try pulling and compiling again.
>From gcc-bugs-return-576663-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 22:07:47 2017
Return-Path: <gcc-bugs-return-576663-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 43023 invoked by alias); 27 Sep 2017 22:07:47 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 40265 invoked by uid 48); 27 Sep 2017 22:07:43 -0000
From: "dcb314 at hotmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/82338] valgrind error in inherit_in_ebb
Date: Wed, 27 Sep 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: rtl-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ra
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dcb314 at hotmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82338-4-cMecziEmZS@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82338-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82338-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02692.txt.bz2
Content-length: 527

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

--- Comment #1 from David Binderman <dcb314 at hotmail dot com> ---
12 hours reducing leads to this C++ code:

extern "C" {
void a();
void *memset(void *, int, unsigned long);
}
struct b {
  int c;
  int d;
} e[5000], *f;
int g;
int h;
int i;
int j, k;
void l(int);
int m;
int o;
void load() {
  int n;
  memset(e, 0, sizeof(e));
  for (; k;)
    ;
  a();
  for (; m < o; m++)
    for (; i; n++) {
      e[j].c = g;
      if (f[h].d && n == i)
        l(-1);
    }
}
>From gcc-bugs-return-576664-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 22:53:56 2017
Return-Path: <gcc-bugs-return-576664-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 22990 invoked by alias); 27 Sep 2017 22: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 22887 invoked by uid 48); 27 Sep 2017 22:53:50 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/82346] [5.5 Regression] String is not detected as a part of std
Date: Wed, 27 Sep 2017 22: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: 5.4.1
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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-82346-4-orGFzQHNgs@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82346-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82346-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02693.txt.bz2
Content-length: 471

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

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

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

--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> ---
This must be an Ubuntu bug. It works fine here.
>From gcc-bugs-return-576665-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 22:59:59 2017
Return-Path: <gcc-bugs-return-576665-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 31212 invoked by alias); 27 Sep 2017 22: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 28648 invoked by uid 48); 27 Sep 2017 22:59:56 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/81509] Wrong compilation error: iand/ieor/ior + boz + -stdò008
Date: Wed, 27 Sep 2017 22:59:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81509-4-9T05P8oKl7@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81509-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81509-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02694.txt.bz2
Content-length: 168

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

--- Comment #5 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
pr45513 and pr54072 could be duplicates.
>From gcc-bugs-return-576666-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 23:07:52 2017
Return-Path: <gcc-bugs-return-576666-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 68718 invoked by alias); 27 Sep 2017 23:07: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 68632 invoked by uid 48); 27 Sep 2017 23:07:48 -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: Wed, 27 Sep 2017 23:07:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: 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 cc resolution
Message-ID: <bug-80210-4-PA0DJPQbgF@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-09/txt/msg02695.txt.bz2
Content-length: 5054

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|CLOSED                      |ASSIGNED
                 CC|                            |schwab at gcc dot gnu.org
         Resolution|FIXED                       |---

--- Comment #15 from Peter Bergner <bergner at gcc dot gnu.org> ---
David and Andreas have reported that they are seeing ICEs on powerpc-aix and
powerpc-linux (32-bit) with the test case added as part of the fix for this
bug.  I didn't see this on my BE builds, because my build scripts were using
the --with-cpu=... configure command and using any -mcpu=... option will work
around the bug.  The bug isn't due to my earlier, since the ICE existed before
my patch, we just didn't have the test case to notice before.  

The problem they are seeing is due to a mismatch between TARGET_DEFAULT, which
contains MASK_PPC_GPOPT and the ISA flags for the default "powerpc64" cpu,
which does not contain MASK_PPC_GPOPT and how rs6000_option_override_internal()
decides which one to use.  The failure scenario is:

Early on, we call init_all_optabs() which setups up a table which describes
which patterns that generate some HW insns are "valid".  Before we call
init_all_optabs(), rs6000_option_override_internal() gets called with
global_init_p arg set to "true" and we basically set rs6000_isa_flags to
TARGET_DEFAULT.  This is because we do not have a -mcpu= value nor do we have
an "implicit_cpu", which forces us to use TARGET_DEFAULT.  With this,
init_all_optabs() thinks we can generate a HW sqrt, so it enables generating
its pattern.

Later, after we've scanned the entire file, we go to expand our function into
RTL and we reset our compiler options and we end up calling
rs6000_option_override_internal() again, but with global_init_p arg now false
and we encounter this code:

  struct cl_target_option *main_target_opt
    = ((global_init_p || target_option_default_node == NULL)
       ? NULL : TREE_TARGET_OPTION (target_option_default_node));

This ends up setting main_target_opt to a non-NULL value, then:

  ...
  else if (main_target_opt != NULL && main_target_opt->x_rs6000_cpu_index >= 0)
    {
      rs6000_cpu_index = cpu_index = main_target_opt->x_rs6000_cpu_index;
      have_cpu = true;
    }

So now we act as if the user explicitly passed in a -mcpu= option, then:

  ...
  /* If we have a cpu, either through an explicit -mcpu=<xxx> or if the
     compiler was configured with --with-cpu=<xxx>, replace all of the ISA bits
     with those from the cpu, except for options that were explicitly set.  If
     we don't have a cpu, do not override the target bits set in
     TARGET_DEFAULT.  */
  if (have_cpu)
    {
      rs6000_isa_flags &= ~set_masks;
      rs6000_isa_flags |= (processor_target_table[cpu_index].target_enable
                           & set_masks);
    }
  else
    {
      /* If no -mcpu=<xxx>, inherit any default options that were cleared via
         POWERPC_MASKS.  Originally, TARGET_DEFAULT was used to initialize
         target_flags via the TARGET_DEFAULT_TARGET_FLAGS hook.  When we
switched
         to using rs6000_isa_flags, we need to do the initialization here.

         If there is a TARGET_DEFAULT, use that.  Otherwise fall back to using
         -mcpu=powerpc, -mcpu=powerpc64, or -mcpu=powerpc64le defaults.  */
      HOST_WIDE_INT flags = ((TARGET_DEFAULT) ? TARGET_DEFAULT
                             :
processor_target_table[cpu_index].target_enable);
      rs6000_isa_flags |= (flags & ~rs6000_isa_flags_explicit);
    }

So the first time through here with global_init_p == true, have_cpu is set to
false and we get TARGET_DEFAULT.  The next time we come here, global_init_p ==
false and we set have_cpu to true because main_target_opt is non-NULL and the
cpu_index value is set to "powerpc64" (for -m64 compiles) or "powerpc" (for
-m32 compiles).  This causes us to now grab the ISA flags from:

  processor_target_table[cpu_index].target_enable

...instead of from TARGET_DEFAULT and neither "powerpc64" nor "powerpc" contain
the MASK_PPC_GPOPT flag, which leads us to ICE because the optabs allows us to
generate the HW sqrt pattern, but our ISA flags don't allow it.

This doesn't affect LE builds, because it has a TARGET_DEFAULT value that
matches the "powerpc64le" default masks.  We also enforce passing a
-mcpu=power8 option when the user doesn't explicitly use one, so again, not a
problem.

This also doesn't affect --target=powerpc-linux builds or
--target=powerpc64-linux builds that default to 32-bit binaries, because we use
a value of TARGET_DEFAULT == 0 (for both -m32 and -m64), so the first time
through rs6000_option_override_internal(), we end up using
processor_target_table[cpu_index].target_enable right from the beginning.
>From gcc-bugs-return-576667-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 23:09:14 2017
Return-Path: <gcc-bugs-return-576667-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 69958 invoked by alias); 27 Sep 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 69921 invoked by uid 48); 27 Sep 2017 23:09:10 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/82346] [5.5 Regression] String is not detected as a part of std
Date: Wed, 27 Sep 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: libstdc++
X-Bugzilla-Version: 5.4.1
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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82346-4-Acn1sYR5p7@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82346-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82346-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02696.txt.bz2
Content-length: 461

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

--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> ---
The condition for std::to_string being declared in gcc-5 is:

#if __cplusplus >= 201103L && defined(_GLIBCXX_USE_C99)

So presumably _GLIBCXX_USE_C99 is false. If you're using glibc 2.26 you might
have hit https://sourceware.org/bugzilla/show_bug.cgi?id=22146 and so need a
glibc fix so that libstdc++ correctly detects C99 support.
>From gcc-bugs-return-576668-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 23:13:52 2017
Return-Path: <gcc-bugs-return-576668-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 74052 invoked by alias); 27 Sep 2017 23: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 73948 invoked by uid 48); 27 Sep 2017 23:13:49 -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: Wed, 27 Sep 2017 23:13:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: 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-cE3e3aP9XN@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-09/txt/msg02697.txt.bz2
Content-length: 1827

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

--- Comment #16 from Peter Bergner <bergner at gcc dot gnu.org> ---
While investigating the new failure in Comment 15, I modified the test case
slightly to move the #pragma to the beginning of the test case.  I found I get
another similar looking ICE, but which isn't the same as the bug reported in
Comment 15:

bergner@bns:~/gcc/BUGS/PR80210>
/home/bergner/gcc/build/gcc-fsf-mainline-pr80210-64-base/gcc/xgcc
-B/home/bergner/gcc/build/gcc-fsf-mainline-pr80210-64-base/gcc -O2 -S no-sqrt.i 
no-sqrt.i: In function ‘foo’:
no-sqrt.i:6:1: error: unrecognizable insn:
 }
 ^
(insn 6 3 7 2 (set (reg:DF 121 [ <retval> ])
        (sqrt:DF (reg/v:DF 122 [ a ]))) "no-sqrt.i":5 -1
     (nil))
during RTL pass: vregs
no-sqrt.i:6:1: internal compiler error: in extract_insn, at recog.c:2304
0x101330c7 _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
        /home/bergner/gcc/gcc-fsf-mainline-pr80210-base/gcc/rtl-error.c:108
0x1013310b _fatal_insn_not_found(rtx_def const*, char const*, int, char const*)
        /home/bergner/gcc/gcc-fsf-mainline-pr80210-base/gcc/rtl-error.c:116
0x1085747b extract_insn(rtx_insn*)
        /home/bergner/gcc/gcc-fsf-mainline-pr80210-base/gcc/recog.c:2304
0x10555bff instantiate_virtual_regs_in_insn
        /home/bergner/gcc/gcc-fsf-mainline-pr80210-base/gcc/function.c:1591
0x10555bff instantiate_virtual_regs
        /home/bergner/gcc/gcc-fsf-mainline-pr80210-base/gcc/function.c:1959
0x10555bff execute
        /home/bergner/gcc/gcc-fsf-mainline-pr80210-base/gcc/function.c:2008

After debugging this, I have found that this is a problem saving and restoring
the optab values, so basically the opposite problem than we had before.

I have a patch that I am testing that fixes both new problems.
>From gcc-bugs-return-576669-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 23:20:38 2017
Return-Path: <gcc-bugs-return-576669-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 88701 invoked by alias); 27 Sep 2017 23:20: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 88627 invoked by uid 55); 27 Sep 2017 23:20:32 -0000
From: "sgk at troutmask dot apl.washington.edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/81509] Wrong compilation error: iand/ieor/ior + boz + -stdò008
Date: Wed, 27 Sep 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: fortran
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: sgk at troutmask dot apl.washington.edu
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81509-4-nAALHlRWNJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81509-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81509-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02698.txt.bz2
Content-length: 1016

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

--- Comment #6 from Steve Kargl <sgk at troutmask dot apl.washington.edu> ---
On Wed, Sep 27, 2017 at 10:59:56PM +0000, dominiq at lps dot ens.fr wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81509
> 
> --- Comment #5 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> pr45513 and pr54072 could be duplicates.
> 

I don't recall either of those PR's, and have no idea
why I would have missed them.  :-\

pr45513 should be covered by my patch.  A portion of pr54072
is also covered, but pr54072 indicates a BOZ can be used with
other intrinsic subprogramis, e.g., TRANSFER.  This isn't surprizing
as a boz is marked as a BT_INTEGER.  That is, for

gfc_expr x;

a boz has

x->ts.type = BT_INTEGER
x->is_boz = 1

In hindsight, we probably should have introduced BT_BOZ and
treat it has some opaque entity with helper functions.  For
example, gfc_boz2int(x,kind) would convert the BOZ in x to
an INTEGER with kind type parameter 'kind'.
>From gcc-bugs-return-576670-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 23:21:11 2017
Return-Path: <gcc-bugs-return-576670-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 89893 invoked by alias); 27 Sep 2017 23:21:11 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 89819 invoked by uid 48); 27 Sep 2017 23:21:08 -0000
From: "dave.gittins at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/82172] Destruction of basic_string in basic_stringbuf::overflow with _GLIBCXX_USE_CXX11_ABI=0, -flto, and C++17 mode results in invalid delete
Date: Wed, 27 Sep 2017 23:21:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: lto
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dave.gittins at gmail dot com
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82172-4-MHIAMppA9Z@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82172-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82172-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02699.txt.bz2
Content-length: 429

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

--- Comment #21 from Gubbins <dave.gittins at gmail dot com> ---
(In reply to Martin Liška from comment #20)
> Your failure happens even w/o LTO, am I right?
> But yes, the problem looks very similar to what happens for ld.bfd.

You are right.

Does anyone know how I would raise this with someone who can fix it on the
Darwin side? Or could it be worked around by gcc?
>From gcc-bugs-return-576671-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 23:29:57 2017
Return-Path: <gcc-bugs-return-576671-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 107099 invoked by alias); 27 Sep 2017 23:29: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 107061 invoked by uid 48); 27 Sep 2017 23:29:53 -0000
From: "p1006680 at mvrht dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82343] internal compiler error: Segmentation fault - template recurrency, SFINAE
Date: Wed, 27 Sep 2017 23:29:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: p1006680 at mvrht dot net
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.isobsolete attachments.created
Message-ID: <bug-82343-4-6S0yEeVJNy@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82343-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82343-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02700.txt.bz2
Content-length: 958

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

Mark <p1006680 at mvrht dot net> changed:

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

--- Comment #1 from Mark <p1006680 at mvrht dot net> ---
Created attachment 42251
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42251&action=edit
(simplified) Preprocessed source code, generated by adding -save-temps

I managed to narrow down the problem (see attachment). I was wrong about the
function template recurrency. Problem is associated with the parameter pack of
size 0 or 1 in SFINAE test.

Confirmed with gcc: 8.0.0, 7.2.0, 7.1.0, 6.3.0, 6.2.0, 6.1.0, 5.4.0, 5.3.0,
5.2.0, 5.1.0, 4.9.3, 4.9.2, 4.9.1, 4.9.0, 4.8.5, 4.8.4, 4.8.3, 4.8.2, 4.8.1.
Below version 4.8.1 (4.7.4 and below) everything is okay.
>From gcc-bugs-return-576672-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 23:50:31 2017
Return-Path: <gcc-bugs-return-576672-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 126259 invoked by alias); 27 Sep 2017 23:50: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 126219 invoked by uid 48); 27 Sep 2017 23:50:27 -0000
From: "ahuszagh at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82347] New: Class Name Injection and Constructor Typenames
Date: Wed, 27 Sep 2017 23:50:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ahuszagh 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-82347-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02701.txt.bz2
Content-length: 2758

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

            Bug ID: 82347
           Summary: Class Name Injection and Constructor Typenames
           Product: gcc
           Version: 7.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ahuszagh at gmail dot com
  Target Milestone: ---

G++ (including 7.01 and 6.3.0) allowing the following code to compile without
any warning, allowing a type alias of the constructor of a class.


Source File
-----------

a.cpp

```
#include <iostream>
#include <typeinfo>
#include <vector>

int main()
{
    using a = typename std::vector<int>::vector;
    std::cout << typeid(a).name() << std::endl;
    return 0;
}
```

G++ Information
---------------

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='Ubuntu
7-20170407-0ubuntu2' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs
--enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr
--with-gcc-major-version-only --program-suffix=-7
--program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes
--with-default-libstdcxx-abi=new --enable-gnu-unique-object
--disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie
--with-system-zlib --with-target-system-zlib --enable-objc-gc=auto
--enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64
--with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic
--enable-offload-targets=nvptx-none --without-cuda-driver
--enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu
--target=x86_64-linux-gnu
Thread model: posix
gcc version 7.0.1 20170407 (experimental) [trunk revision 246759] (Ubuntu
7-20170407-0ubuntu2)


Complete Command
----------------

g++-7 a.cpp

Compiler Output
---------------

N/A

Preprocessed File
-----------------

(Not applicable?)

Description
-----------

ISO C++ in [class.qual]/2 states that a nested name specifier for the class
specifies the constructor and not the class, and therefore using `typename
x::x` is therefore not standards compliant. More information can be found on
the StackOverflow post I made on the topic:
https://stackoverflow.com/questions/46412754/class-name-injection-and-constructors
>From gcc-bugs-return-576673-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Sep 27 23:53:35 2017
Return-Path: <gcc-bugs-return-576673-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 129541 invoked by alias); 27 Sep 2017 23: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 129469 invoked by uid 55); 27 Sep 2017 23:53:30 -0000
From: "clyon at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/71727] -O3 -mstrict-align produces code which assumes unaligned vector accesses work
Date: Wed, 27 Sep 2017 23: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: 6.1.0
X-Bugzilla-Keywords: patch, wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: clyon at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-71727-4-a0Ja9AmTx8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-71727-4@http.gcc.gnu.org/bugzilla/>
References: <bug-71727-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02702.txt.bz2
Content-length: 727

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

--- Comment #4 from Christophe Lyon <clyon at gcc dot gnu.org> ---
Author: clyon
Date: Wed Sep 27 23:52:58 2017
New Revision: 253242

URL: https://gcc.gnu.org/viewcvs?rev=253242&root=gcc&view=rev
Log:
[AArch64] PR71727 fix -mstrict-align

2017-09-27  Christophe Lyon  <christophe.lyon@linaro.org>

        PR target/71727
        gcc/
        * config/aarch64/aarch64.c
        (aarch64_builtin_support_vector_misalignment): Always return false
        when misalignment is unknown.

        gcc/testsuite/
        * gcc.target/aarch64/pr71727-2.c: New test


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/aarch64/aarch64.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-576674-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 02:11:58 2017
Return-Path: <gcc-bugs-return-576674-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 33019 invoked by alias); 28 Sep 2017 02:11:58 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 28243 invoked by uid 48); 28 Sep 2017 02:11:53 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/65041] Improve -Wclobbered
Date: Thu, 28 Sep 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: middle-end
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-65041-4-RWdzwUpLq7@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-65041-4@http.gcc.gnu.org/bugzilla/>
References: <bug-65041-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02703.txt.bz2
Content-length: 602

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

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

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

--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed that gcc warns for a2 instead of fd.
>From gcc-bugs-return-576675-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 02:15:43 2017
Return-Path: <gcc-bugs-return-576675-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 26776 invoked by alias); 28 Sep 2017 02:15:43 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 18907 invoked by uid 48); 28 Sep 2017 02:15:38 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/65461] -Warray-bounds warnings in the linux kernel (free_area_init_nodes)
Date: Thu, 28 Sep 2017 02: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: 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-65461-4-KzhFBfcRbg@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-65461-4@http.gcc.gnu.org/bugzilla/>
References: <bug-65461-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02704.txt.bz2
Content-length: 608

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

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

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

--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed that I get the -Warray-bounds warning too.
>From gcc-bugs-return-576676-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 02:19:08 2017
Return-Path: <gcc-bugs-return-576676-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 129323 invoked by alias); 28 Sep 2017 02:19:08 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 129295 invoked by uid 48); 28 Sep 2017 02:19:03 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/66601] RFE: improve diagnostics for failure to deduce template parameter pack that is not in the last position in the parameter list
Date: Thu, 28 Sep 2017 02:19:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 5.1.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: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-66601-4-AhxSnoTTFT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66601-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66601-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02705.txt.bz2
Content-length: 566

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-09-28
                 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-576677-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 05:29:46 2017
Return-Path: <gcc-bugs-return-576677-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 7585 invoked by alias); 28 Sep 2017 05:29: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 7531 invoked by uid 48); 28 Sep 2017 05:29:42 -0000
From: "ivo.raisr at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82337] [5/6/7/8 Regression] ICE: SSA corruption at tree-ssa-coalesce.c:1010
Date: Thu, 28 Sep 2017 05:29:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ivo.raisr at oracle dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: wschmidt at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82337-4-HPsXcAjqiv@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82337-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82337-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02706.txt.bz2
Content-length: 236

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

--- Comment #10 from Ivo Raisr <ivo.raisr at oracle dot com> ---
(In reply to Bill Schmidt from comment #9)

I confirm this fixes the problem also in the original full-blown source.
>From gcc-bugs-return-576678-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 06:05:43 2017
Return-Path: <gcc-bugs-return-576678-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 61507 invoked by alias); 28 Sep 2017 06: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 61475 invoked by uid 48); 28 Sep 2017 06:05:38 -0000
From: "krzysio.kurek at wp dot pl" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/82346] [5.5 Regression] String is not detected as a part of std
Date: Thu, 28 Sep 2017 06:05:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 5.4.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: krzysio.kurek at wp dot pl
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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82346-4-idbQymBi6I@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82346-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82346-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02707.txt.bz2
Content-length: 202

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

--- Comment #8 from krzysio.kurek at wp dot pl ---
Wouldn't this bug affect all gcc compilers? I have 5, 6 and 7 installed, and
only 5 is affected.
>From gcc-bugs-return-576679-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 07:30:32 2017
Return-Path: <gcc-bugs-return-576679-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 25357 invoked by alias); 28 Sep 2017 07:30: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 19325 invoked by uid 48); 28 Sep 2017 07:29:55 -0000
From: "mfe at live dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug go/82348] New: make[4]: Circular runtime.lo <- bytes.gox dependency dropped.
Date: Thu, 28 Sep 2017 07: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: 8.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-82348-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02708.txt.bz2
Content-length: 3620

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

            Bug ID: 82348
           Summary: make[4]: Circular runtime.lo <- bytes.gox dependency
                    dropped.
           Product: gcc
           Version: 8.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: ---

Configure:
gcc-compiled# ../gcc-trunk/configure CC=/opt/gcc-7.1/bin/gcc
CXX=/opt/gcc-7.1/bin/g++ --enable-languages=c,c++,go --prefix=/opt/gcc-8 
--with-cpu=v7 --disable-libstdcxx-pch --disable-linux-futex
--disable-libsanitizer --enable-clocale=gnu --enable-debug  --disable-doc
--disable-libcilkrts --disable-libitm --disable-nls

System:Sparc

Error:
make[3]: Entering directory
'/c/backup/ReadyNASDuoSparc/gcc-compiled/sparc-unknown-linux-gnu/libgo'
make[4]: Entering directory
'/c/backup/ReadyNASDuoSparc/gcc-compiled/sparc-unknown-linux-gnu/libgo'
/bin/mkdir -p .; files=`echo ../../../gcc-trunk/libgo/go/errors/errors.go | sed
-e 's/[^ ]*\.gox//g' -e 's/[^ ]*\.dep//'`; /bin/sh ./libtool --tag GO
--mode=compile /backup/ReadyNASDuoSparc/gcc-compiled/./gcc/gccgo
-B/backup/ReadyNASDuoSparc/gcc-compiled/./gcc/
-B/opt/gcc-8/sparc-unknown-linux-gnu/bin/
-B/opt/gcc-8/sparc-unknown-linux-gnu/lib/ -isystem
/opt/gcc-8/sparc-unknown-linux-gnu/include -isystem
/opt/gcc-8/sparc-unknown-linux-gnu/sys-include       -O2 -g -I . -c
-fgo-pkgpath=`echo errors.lo | sed -e 's/.lo$//' -e
's|golang_org|vendor/golang_org|'`  -o errors.lo $files
libtool: compile:  /backup/ReadyNASDuoSparc/gcc-compiled/./gcc/gccgo
-B/backup/ReadyNASDuoSparc/gcc-compiled/./gcc/
-B/opt/gcc-8/sparc-unknown-linux-gnu/bin/
-B/opt/gcc-8/sparc-unknown-linux-gnu/lib/ -isystem
/opt/gcc-8/sparc-unknown-linux-gnu/include -isystem
/opt/gcc-8/sparc-unknown-linux-gnu/sys-include -O2 -g -I . -c
-fgo-pkgpath=errors ../../../gcc-trunk/libgo/go/errors/errors.go  -fPIC -o
.libs/errors.o
libtool: compile:  /backup/ReadyNASDuoSparc/gcc-compiled/./gcc/gccgo
-B/backup/ReadyNASDuoSparc/gcc-compiled/./gcc/
-B/opt/gcc-8/sparc-unknown-linux-gnu/bin/
-B/opt/gcc-8/sparc-unknown-linux-gnu/lib/ -isystem
/opt/gcc-8/sparc-unknown-linux-gnu/include -isystem
/opt/gcc-8/sparc-unknown-linux-gnu/sys-include -O2 -g -I . -c
-fgo-pkgpath=errors ../../../gcc-trunk/libgo/go/errors/errors.go -o errors.o
>/dev/null 2>&1
f="errors.o"; if test ! -f $f; then f="./.libs/errors.o"; fi; objcopy -j
.go_export $f errors.s-gox.tmp; /bin/sh ../../../gcc-trunk/libgo/mvifdiff.sh
errors.s-gox.tmp `echo errors.s-gox | sed -e 's/s-gox/gox/'`
echo timestamp > errors.s-gox
make[4]: Circular runtime.lo <- bytes.gox dependency dropped.
make[4]: Circular fmt.lo <- io.gox dependency dropped.
make[4]: *** No rule to make target 'internal/cpu.gox', needed by 'math.lo'. 
Stop.
make[4]: Leaving directory
'/c/backup/ReadyNASDuoSparc/gcc-compiled/sparc-unknown-linux-gnu/libgo'
make[3]: *** [Makefile:2693: all-recursive] Error 1
make[3]: Leaving directory
'/c/backup/ReadyNASDuoSparc/gcc-compiled/sparc-unknown-linux-gnu/libgo'
make[2]: *** [Makefile:1397: all] Error 2
make[2]: Leaving directory
'/c/backup/ReadyNASDuoSparc/gcc-compiled/sparc-unknown-linux-gnu/libgo'
make[1]: *** [Makefile:20236: all-target-libgo] Error 2
make[1]: Leaving directory '/c/backup/ReadyNASDuoSparc/gcc-compiled'
make: *** [Makefile:945: all] Error 2

I would like to ask, whether gcc-compiled/gcc/gccgo is the final go compiler or
it is previous generated compiler from bootstrapping.
>From gcc-bugs-return-576680-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 07:40:13 2017
Return-Path: <gcc-bugs-return-576680-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 17615 invoked by alias); 28 Sep 2017 07:40: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 6326 invoked by uid 48); 28 Sep 2017 07:40:06 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/82302] LTO producing bad code
Date: Thu, 28 Sep 2017 07:40:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: lto
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: lto, wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to
Message-ID: <bug-82302-4-fT4fAJqsSy@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82302-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82302-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02709.txt.bz2
Content-length: 2803

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |marxin at gcc dot gnu.org

--- Comment #10 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to krzysio.kurek from comment #9)
> I think I located the issue, it works fine on my machine, but using I found
> an error using glslangValidator.
> Please try pulling and compiling again.

Good, I can confirm using GCC-6 it runs and exits very fast. With GCC 7 it
hangs in:

#0  0x0000000000413720 in get () at
/home/marxin/Programming/MineCraft-One-Week-Challenge/Source/World/Block/BlockDatabase.cpp:25
#1  0x000000000041619f in getData (this=<synthetic pointer>) at
/home/marxin/Programming/MineCraft-One-Week-Challenge/Source/World/Block/ChunkBlock.cpp:20
#2  setBlock (this=0x88ccb0, x=1, y=-703477434, z=0, block=...) at
/home/marxin/Programming/MineCraft-One-Week-Challenge/Source/World/Chunk/Chunk.cpp:43
#3  0x0000000000412ee6 in setBlocks (maxHeight=<optimized out>, this=0x884fb0)
at
/home/marxin/Programming/MineCraft-One-Week-Challenge/Source/World/Generation/Terrain/ClassicOverWorldGenerator.cpp:145
#4  generateTerrainFor (this=0x884fb0, chunk=...) at
/home/marxin/Programming/MineCraft-One-Week-Challenge/Source/World/Generation/Terrain/ClassicOverWorldGenerator.cpp:61
#5  0x00000000004074df in load (generator=..., this=0x88ccb0) at
/home/marxin/Programming/MineCraft-One-Week-Challenge/Source/World/Chunk/Chunk.cpp:122
#6  loadChunk (z=153, x=102, this=0x896868) at
/home/marxin/Programming/MineCraft-One-Week-Challenge/Source/World/Chunk/ChunkManager.cpp:59
#7  setSpawnPoint (this=0x896868) at
/home/marxin/Programming/MineCraft-One-Week-Challenge/Source/World/World.cpp:278
#8  __base_ctor  (player=..., config=..., camera=..., this=0x896868) at
/home/marxin/Programming/MineCraft-One-Week-Challenge/Source/World/World.cpp:18
#9  __base_ctor  (config=..., app=..., this=0x8965f0) at
/home/marxin/Programming/MineCraft-One-Week-Challenge/Source/States/PlayingState.cpp:14
#10 make_unique (__args#1=..., __args#0=...) at
/usr/include/c++/7/bits/unique_ptr.h:825
#11 pushState (args#1=..., args#0=..., this=0x7fffffffd6d0) at
/home/marxin/Programming/MineCraft-One-Week-Challenge/Source/Application.h:26
#12 __base_ctor  (config=..., this=0x7fffffffd6d0) at
/home/marxin/Programming/MineCraft-One-Week-Challenge/Source/Application.cpp:13
#13 main () at
/home/marxin/Programming/MineCraft-One-Week-Challenge/Source/Main.cpp:61
>From gcc-bugs-return-576681-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 07:57:07 2017
Return-Path: <gcc-bugs-return-576681-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 96784 invoked by alias); 28 Sep 2017 07:57:06 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 80573 invoked by uid 48); 28 Sep 2017 07:56:35 -0000
From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libfortran/66756] libgfortran: ThreadSanitizer: lock-order-inversion
Date: Thu, 28 Sep 2017 07:57:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libfortran
X-Bugzilla-Version: 5.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: tkoenig at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: tkoenig at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to
Message-ID: <bug-66756-4-2RSMUrZIJ0@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66756-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66756-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02710.txt.bz2
Content-length: 462

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

Thomas Koenig <tkoenig at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |tkoenig at gcc dot gnu.org

--- Comment #13 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Let's see.
>From gcc-bugs-return-576682-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 08:01:42 2017
Return-Path: <gcc-bugs-return-576682-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 128589 invoked by alias); 28 Sep 2017 08:01: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 92914 invoked by uid 48); 28 Sep 2017 08:00:53 -0000
From: "marc.pres at gmx dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82349] New: float INFINITY issue with division by zero in regression with compiler option '-ffast-math'
Date: Thu, 28 Sep 2017 08:01:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marc.pres at gmx dot net
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-82349-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02711.txt.bz2
Content-length: 1112

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

            Bug ID: 82349
           Summary: float INFINITY issue with division by zero in
                    regression with compiler option '-ffast-math'
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marc.pres at gmx dot net
  Target Milestone: ---

Given this code snippet:

#include <stdio.h>
#include <math.h>

int main(void) {

int denom=0;
printf("%d %d %d\n", (int)(1.0/denom), (int)(1.0/0), (int)INFINITY);

return 0;
}

bash> gcc infinity.c

bash> -2147483648 -2147483648 2147483647

bash> gcc infinity.c -ffast-math

bash> -2147483648 2147483647 2147483647

What is unclear regarding the IEEE standard and the supplement documentation of
option "-ffast-math", is why is 1. first and 2. term in are different in sign
AND why are the 2 outputs generally different.

In my opionion all the terms above should be positive like 2147483647.


Dr. Marcello Presulli
>From gcc-bugs-return-576683-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 08:02:08 2017
Return-Path: <gcc-bugs-return-576683-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 26321 invoked by alias); 28 Sep 2017 08:02: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 13846 invoked by uid 48); 28 Sep 2017 08:01:59 -0000
From: "marc.pres at gmx dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82350] New: float INFINITY issue with division by zero in regression with compiler option '-ffast-math'
Date: Thu, 28 Sep 2017 08: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: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marc.pres at gmx dot net
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-82350-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02712.txt.bz2
Content-length: 1109

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

            Bug ID: 82350
           Summary: float INFINITY issue with division by zero in
                    regression with compiler option '-ffast-math'
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marc.pres at gmx dot net
  Target Milestone: ---

Given this code snippet:

#include <stdio.h>
#include <math.h>

int main(void) {

int denom=0;
printf("%d %d %d\n", (int)(1.0/denom), (int)(1.0/0), (int)INFINITY);

return 0;
}

bash> gcc infinity.c

bash> -2147483648 -2147483648 2147483647

bash> gcc infinity.c -ffast-math

bash> -2147483648 2147483647 2147483647

What is unclear regarding the IEEE standard and the supplement documentation of
option "-ffast-math", is why is 1. first and 2. term are different in sign AND
why are the 2 outputs generally different.

In my opionion all the terms above should be positive like 2147483647.


Dr. Marcello Presulli
>From gcc-bugs-return-576684-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 08:03:48 2017
Return-Path: <gcc-bugs-return-576684-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 118504 invoked by alias); 28 Sep 2017 08:03: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 114438 invoked by uid 48); 28 Sep 2017 08:03:39 -0000
From: "marc.pres at gmx dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82351] New: float INFINITY issue with division by zero in regression with compiler option '-ffast-math'
Date: Thu, 28 Sep 2017 08: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: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marc.pres at gmx dot net
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-82351-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02713.txt.bz2
Content-length: 1109

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

            Bug ID: 82351
           Summary: float INFINITY issue with division by zero in
                    regression with compiler option '-ffast-math'
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marc.pres at gmx dot net
  Target Milestone: ---

Given this code snippet:

#include <stdio.h>
#include <math.h>

int main(void) {

int denom=0;
printf("%d %d %d\n", (int)(1.0/denom), (int)(1.0/0), (int)INFINITY);

return 0;
}

bash> gcc infinity.c

bash> -2147483648 -2147483648 2147483647

bash> gcc infinity.c -ffast-math

bash> -2147483648 2147483647 2147483647

What is unclear regarding the IEEE standard and the supplement documentation of
option "-ffast-math", is why is 1. first and 2. term are different in sign AND
why are the 2 outputs generally different.

In my opionion all the terms above should be positive like 2147483647.


Dr. Marcello Presulli
>From gcc-bugs-return-576686-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 08:11:52 2017
Return-Path: <gcc-bugs-return-576686-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 110236 invoked by alias); 28 Sep 2017 08:11:52 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 108255 invoked by uid 48); 28 Sep 2017 08:11:48 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82349] float INFINITY issue with division by zero in regression with compiler option '-ffast-math'
Date: Thu, 28 Sep 2017 08:11:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: 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:
Message-ID: <bug-82349-4-rqKXCKLW9V@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82349-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82349-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02715.txt.bz2
Content-length: 183

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

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 82350 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-576685-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 08:11:14 2017
Return-Path: <gcc-bugs-return-576685-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 92390 invoked by alias); 28 Sep 2017 08:11: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 90231 invoked by uid 48); 28 Sep 2017 08:11:10 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82349] float INFINITY issue with division by zero in regression with compiler option '-ffast-math'
Date: Thu, 28 Sep 2017 08:11:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: 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: bug_status resolution
Message-ID: <bug-82349-4-IleiaShmdC@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82349-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82349-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02714.txt.bz2
Content-length: 683

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

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> ---
Two issues here that makes this undefined.
1) out of range conversion is undefined.  That is inf converted to an int does
not have a specified value.
2) inf is not a valid value for float when -ffast-math is specified  (fast math
implies finite math only).
>From gcc-bugs-return-576687-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 08:12:00 2017
Return-Path: <gcc-bugs-return-576687-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 112351 invoked by alias); 28 Sep 2017 08:12:00 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 108050 invoked by uid 48); 28 Sep 2017 08:11:48 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82350] float INFINITY issue with division by zero in regression with compiler option '-ffast-math'
Date: Thu, 28 Sep 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: 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: 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-82350-4-eIXeX4qZ6e@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82350-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82350-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02716.txt.bz2
Content-length: 490

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

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

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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
.

*** This bug has been marked as a duplicate of bug 82349 ***
>From gcc-bugs-return-576688-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 08:18:23 2017
Return-Path: <gcc-bugs-return-576688-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 99131 invoked by alias); 28 Sep 2017 08:18: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 97198 invoked by uid 48); 28 Sep 2017 08:18:19 -0000
From: "schwab@linux-m68k.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82351] float INFINITY issue with division by zero in regression with compiler option '-ffast-math'
Date: Thu, 28 Sep 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: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: schwab@linux-m68k.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-82351-4-9ZlinoskMT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82351-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82351-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02717.txt.bz2
Content-length: 482

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

Andreas Schwab <schwab@linux-m68k.org> changed:

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

--- Comment #1 from Andreas Schwab <schwab@linux-m68k.org> ---
dup

*** This bug has been marked as a duplicate of bug 82349 ***
>From gcc-bugs-return-576689-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 08:18:28 2017
Return-Path: <gcc-bugs-return-576689-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 100277 invoked by alias); 28 Sep 2017 08:18: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 97369 invoked by uid 48); 28 Sep 2017 08:18:19 -0000
From: "schwab@linux-m68k.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82349] float INFINITY issue with division by zero in regression with compiler option '-ffast-math'
Date: Thu, 28 Sep 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: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: schwab@linux-m68k.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-82349-4-caA23NikT3@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82349-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82349-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02718.txt.bz2
Content-length: 179

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

--- Comment #3 from Andreas Schwab <schwab@linux-m68k.org> ---
*** Bug 82351 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-576690-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 08:20:15 2017
Return-Path: <gcc-bugs-return-576690-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 77518 invoked by alias); 28 Sep 2017 08:20: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 75530 invoked by uid 48); 28 Sep 2017 08:20:11 -0000
From: "marc.pres at gmx dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82349] float INFINITY issue with division by zero in regression with compiler option '-ffast-math'
Date: Thu, 28 Sep 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: c
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marc.pres at gmx dot net
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-82349-4-oDZPaogYua@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82349-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82349-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02719.txt.bz2
Content-length: 300

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

--- Comment #4 from Marcello Presulli <marc.pres at gmx dot net> ---
Thats clear, but why are the 2 terms different each.
If so, they should output the same, because what would be the difference
between 1.0/denom and 1.0/0 in case of fast-math ?
>From gcc-bugs-return-576691-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 08:22:43 2017
Return-Path: <gcc-bugs-return-576691-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 74685 invoked by alias); 28 Sep 2017 08:22: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 72731 invoked by uid 48); 28 Sep 2017 08:22:39 -0000
From: "schwab@linux-m68k.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82349] float INFINITY issue with division by zero in regression with compiler option '-ffast-math'
Date: Thu, 28 Sep 2017 08:22:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: schwab@linux-m68k.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-82349-4-vm1PixnISQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82349-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82349-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02720.txt.bz2
Content-length: 177

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

--- Comment #5 from Andreas Schwab <schwab@linux-m68k.org> ---
Undefined means anything can happen, not even consistently.
>From gcc-bugs-return-576692-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 08:33:02 2017
Return-Path: <gcc-bugs-return-576692-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 66594 invoked by alias); 28 Sep 2017 08:33:02 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 64615 invoked by uid 48); 28 Sep 2017 08:32:58 -0000
From: "julia.koval at intel dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82344] [8 Regression] SPEC CPU2006 435.gromacs ~10% performance regression with trunk@250855
Date: Thu, 28 Sep 2017 08:33:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: julia.koval 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: attachments.created
Message-ID: <bug-82344-4-58Sstx21cd@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82344-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82344-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02721.txt.bz2
Content-length: 366

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

--- Comment #1 from Yulia Koval <julia.koval at intel dot com> ---
Created attachment 42252
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42252&action=edit
RSQRT disable patch

Performance can be fixed on new architectures by disabling Newthon-Raphson.
Unfortunately it causes degradation on Haswell.
>From gcc-bugs-return-576693-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 08:55:48 2017
Return-Path: <gcc-bugs-return-576693-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 28929 invoked by alias); 28 Sep 2017 08: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 27622 invoked by uid 48); 28 Sep 2017 08:55:43 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/82302] LTO producing bad code
Date: Thu, 28 Sep 2017 08:55:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: lto
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: lto, wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: 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-82302-4-f9xOdxcZJp@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82302-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82302-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02722.txt.bz2
Content-length: 502

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

--- Comment #11 from Martin Liška <marxin at gcc dot gnu.org> ---
Created attachment 42253
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42253&action=edit
UBSAN errors

Well, the issue is fixed on trunk by r247277, which is a revision that changes
inlining decisions. It's not culprit.

Anyway, before a deeper investigation, I would like to see fixed UBSAN errors
(-fsanitize=undefined). Can you please take a look at these.
>From gcc-bugs-return-576694-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 09:11:24 2017
Return-Path: <gcc-bugs-return-576694-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 35540 invoked by alias); 28 Sep 2017 09:11:24 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 34053 invoked by uid 48); 28 Sep 2017 09:11:20 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/82346] [5.5 Regression] String is not detected as a part of std
Date: Thu, 28 Sep 2017 09:11:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 5.4.1
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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82346-4-Q0YZdzeeYU@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82346-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82346-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02723.txt.bz2
Content-length: 431

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

--- Comment #9 from Jonathan Wakely <redi at gcc dot gnu.org> ---
In gcc-6 and later the condition is different:

#if __cplusplus >= 201103L
...
#if _GLIBCXX_USE_C99_STDIO

So the <math.h> changes in glibc won't affect std::to_string() (but you will be
missing functionality in <cmath> instead).

This is a bug in a package you got from Ubuntu, please talk to your vendor.
>From gcc-bugs-return-576695-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 09:16:39 2017
Return-Path: <gcc-bugs-return-576695-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 108678 invoked by alias); 28 Sep 2017 09: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 106586 invoked by uid 48); 28 Sep 2017 09:16:35 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/82346] [5.5 Regression] to_string is not detected as a part of std
Date: Thu, 28 Sep 2017 09:16:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 5.4.1
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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: short_desc
Message-ID: <bug-82346-4-H7xJipOVbF@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82346-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82346-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02724.txt.bz2
Content-length: 562

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[5.5 Regression] String is  |[5.5 Regression] to_string
                   |not detected as a part of   |is not detected as a part
                   |std                         |of std

--- Comment #10 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(Fixing the summary to reflect the actual error)
>From gcc-bugs-return-576696-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 10:24:32 2017
Return-Path: <gcc-bugs-return-576696-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 67838 invoked by alias); 28 Sep 2017 10:24: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 67711 invoked by uid 48); 28 Sep 2017 10:24:19 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/56260] [C++11] GCC hangs/crashes on invalid source
Date: Thu, 28 Sep 2017 10:24:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.7.2
X-Bugzilla-Keywords: ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status blocked assigned_to
Message-ID: <bug-56260-4-NYketQ34AY@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-56260-4@http.gcc.gnu.org/bugzilla/>
References: <bug-56260-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02725.txt.bz2
Content-length: 656

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |NEW
             Blocks|                            |54367
           Assignee|paolo.carlini at oracle dot com    |unassigned at gcc dot gnu.org

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Not actively working on it.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54367
[Bug 54367] [meta-bug] lambda expressions
>From gcc-bugs-return-576699-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 10:25:00 2017
Return-Path: <gcc-bugs-return-576699-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 68956 invoked by alias); 28 Sep 2017 10:25: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 68729 invoked by uid 48); 28 Sep 2017 10:24:57 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/54367] [meta-bug] lambda expressions
Date: Thu, 28 Sep 2017 10:25:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: dep_changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.8.0
X-Bugzilla-Keywords: meta-bug
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-54367-4-9UbQLBVAdg@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-54367-4@http.gcc.gnu.org/bugzilla/>
References: <bug-54367-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02728.txt.bz2
Content-length: 531

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

Bug 82288 Summary: Defining a type in a parameter type of a lambda calling an undefined function results in a Segfault
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82288

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE
>From gcc-bugs-return-576697-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 10:25:00 2017
Return-Path: <gcc-bugs-return-576697-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 68823 invoked by alias); 28 Sep 2017 10:25: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 68680 invoked by uid 48); 28 Sep 2017 10:24:56 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82288] Defining a type in a parameter type of a lambda calling an undefined function results in a Segfault
Date: Thu, 28 Sep 2017 10: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: ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle 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: bug_status resolution
Message-ID: <bug-82288-4-afAcBUF4wZ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82288-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82288-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02726.txt.bz2
Content-length: 501

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

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

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

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Dup.

*** This bug has been marked as a duplicate of bug 56260 ***
>From gcc-bugs-return-576698-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 10:25:00 2017
Return-Path: <gcc-bugs-return-576698-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 68834 invoked by alias); 28 Sep 2017 10:25: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 68705 invoked by uid 48); 28 Sep 2017 10:24:56 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/56260] [C++11] GCC hangs/crashes on invalid source
Date: Thu, 28 Sep 2017 10:25:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.7.2
X-Bugzilla-Keywords: ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: 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-56260-4-BkhEiF4nAC@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-56260-4@http.gcc.gnu.org/bugzilla/>
References: <bug-56260-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02727.txt.bz2
Content-length: 451

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jasper at mezzo dot de

--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> ---
*** Bug 82288 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-576700-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 11:27:04 2017
Return-Path: <gcc-bugs-return-576700-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 79331 invoked by alias); 28 Sep 2017 11:27:04 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 79262 invoked by uid 48); 28 Sep 2017 11:27:00 -0000
From: "costamagnagianfranco at yahoo dot it" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/82327] [7 Regression] ICE in equal_mem_array_ref_p, at tree-ssa-scopedtables.c:429 (i686-linux-gnu)
Date: Thu, 28 Sep 2017 11:27: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.2.1
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: blocker
X-Bugzilla-Who: costamagnagianfranco at yahoo dot it
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82327-4-FbyrBPC1DV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82327-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82327-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02729.txt.bz2
Content-length: 218

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

--- Comment #4 from Gianfranco <costamagnagianfranco at yahoo dot it> ---
Tested with r253234
https://launchpad.net/ubuntu/+source/gcc-7/7.2.0-7ubuntu4

same issue
>From gcc-bugs-return-576701-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 11:48:36 2017
Return-Path: <gcc-bugs-return-576701-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 111727 invoked by alias); 28 Sep 2017 11:48: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 111567 invoked by uid 48); 28 Sep 2017 11:48:23 -0000
From: "pault at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82258] [8 regression] allocate_zerosize_3.f fails since r251949
Date: Thu, 28 Sep 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: fortran
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pault at gcc dot gnu.org
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: pault at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-82258-4-wgWz69DUTw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82258-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82258-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02730.txt.bz2
Content-length: 912

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

--- Comment #10 from Paul Thomas <pault at gcc dot gnu.org> ---
Created attachment 42254
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42254&action=edit
tree dump for testcase of comment # 9

The output in comment #9 has left me totally perplexed.

I cannot for the life of me understand why the lbounds that should be positive
are wrong while everything else is OK.

I have attached the tree dump (-fdump-tree-original). Could you compare it on
your system, please? If they are the same, I would guess that we have uncovered
some weird backend bug. If they are different, we have something to work on.

Note that the computation of the lower and upper bounds is pretty similar in
respect of what is extracted from the descriptor. Also, there is no sign of the
new field 'span' being addressed at all in this testcase.

Cordialement

Paul
>From gcc-bugs-return-576702-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 12:13:01 2017
Return-Path: <gcc-bugs-return-576702-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 53206 invoked by alias); 28 Sep 2017 12:13: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 52321 invoked by uid 48); 28 Sep 2017 12:12:57 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/65213] Extend -Wmissing-declarations to variables
Date: Thu, 28 Sep 2017 12:13:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: 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
Message-ID: <bug-65213-4-oCrVyZrPVc@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-65213-4@http.gcc.gnu.org/bugzilla/>
References: <bug-65213-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02731.txt.bz2
Content-length: 628

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

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

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

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed; it should be a separate flag like clang's flag you mentioned.
>From gcc-bugs-return-576703-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 12:16:41 2017
Return-Path: <gcc-bugs-return-576703-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 56470 invoked by alias); 28 Sep 2017 12:16:40 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 56366 invoked by uid 48); 28 Sep 2017 12:16:28 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/67036] GCC does not warn of throwing destructors in C++11, even when they lack noexcept(false) and std::uncaught_exception
Date: Thu, 28 Sep 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: 5.1.1
X-Bugzilla-Keywords: diagnostic
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-67036-4-QXe4pl9RwS@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67036-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67036-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02732.txt.bz2
Content-length: 1309

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

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> ---
I get a warning from -Wterminate with current gcc:

$ /usr/local/bin/g++ -O1 -Wall -Wextra -c -pedantic 67036.cc
67036.cc: In destructor ‘useless::~useless()’:
67036.cc:7:90: warning: throw will always call terminate() [-Wterminate]
     ~useless() { std::cout << "out" << std::endl; throw
std::runtime_error("who knows..."); }
                                                                               
          ^
67036.cc:7:90: note: in C++11 destructors default to noexcept
67036.cc: In function ‘int main(int, char**)’:
67036.cc:10:31: warning: unused parameter ‘argv’ [-Wunused-parameter]
 int main(int argc, char* argv[])
                               ^
$

Is this what you were looking for?
>From gcc-bugs-return-576704-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 12:20:47 2017
Return-Path: <gcc-bugs-return-576704-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 72841 invoked by alias); 28 Sep 2017 12:20: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 70839 invoked by uid 48); 28 Sep 2017 12:20:34 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/67445] New warning: returning std::initializer_list bound to temporary
Date: Thu, 28 Sep 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: c++
X-Bugzilla-Version: 4.9.4
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-67445-4-ULzeZgKWfX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67445-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67445-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02733.txt.bz2
Content-length: 957

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

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

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

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Testcase needs:

#include <initializer_list>

or else it errors with:

$ /usr/local/bin/g++ -c -Wall -Wextra -pedantic 67445.cc
67445.cc:1:6: error: ‘initializer_list’ in namespace ‘std’ does not name a
template type
 std::initializer_list<int> f() {
      ^~~~~~~~~~~~~~~~
$

but after adding that include, I can confirm that there are no warnings for the
example.
>From gcc-bugs-return-576705-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 12:33:14 2017
Return-Path: <gcc-bugs-return-576705-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 29879 invoked by alias); 28 Sep 2017 12:33:14 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 29723 invoked by uid 48); 28 Sep 2017 12:33:08 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/68615] Unhelpful location when missing a semi-colon on a function declaration at the end of a header
Date: Thu, 28 Sep 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.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-68615-4-Xhs05YPgF8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-68615-4@http.gcc.gnu.org/bugzilla/>
References: <bug-68615-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02734.txt.bz2
Content-length: 948

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

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

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

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed, related to bug 44515 and bug 82013
(not sure which is a dup of which if any)
>From gcc-bugs-return-576706-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 12:35:34 2017
Return-Path: <gcc-bugs-return-576706-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 34380 invoked by alias); 28 Sep 2017 12: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 34336 invoked by uid 48); 28 Sep 2017 12:35:30 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/69215] Improve diagnostic for  'for(i : v)'
Date: Thu, 28 Sep 2017 12:35:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 6.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-69215-4-jQSAEgtCGF@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-69215-4@http.gcc.gnu.org/bugzilla/>
References: <bug-69215-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02735.txt.bz2
Content-length: 566

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-09-28
                 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-576707-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 12:41:22 2017
Return-Path: <gcc-bugs-return-576707-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 18619 invoked by alias); 28 Sep 2017 12:41: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 13268 invoked by uid 48); 28 Sep 2017 12:41:18 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/68230] Unused function parameters not reported by -Wunused-parameter when only used recursively.
Date: Thu, 28 Sep 2017 12:41:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 5.2.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-68230-4-5XtG8w9mvM@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-68230-4@http.gcc.gnu.org/bugzilla/>
References: <bug-68230-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02736.txt.bz2
Content-length: 600

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

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

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

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed that there's currently no warning.
>From gcc-bugs-return-576708-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 12:52:50 2017
Return-Path: <gcc-bugs-return-576708-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 103377 invoked by alias); 28 Sep 2017 12:52:50 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 103348 invoked by uid 48); 28 Sep 2017 12:52:46 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82013] better error message for missing semicolon in prototype
Date: Thu, 28 Sep 2017 12:52:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 8.0
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-82013-4-TGxoQz447b@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82013-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82013-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02737.txt.bz2
Content-length: 317

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

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Andi Kleen from comment #0)
> It's especially confusing when the prototype is the last in the include
> file, because then the errors appear in another file.

Yes, that's PR c++/68615
>From gcc-bugs-return-576709-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 12:56:41 2017
Return-Path: <gcc-bugs-return-576709-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 67691 invoked by alias); 28 Sep 2017 12:56: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 65500 invoked by uid 48); 28 Sep 2017 12:56:37 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/68615] Unhelpful location when missing a semi-colon on a function declaration at the end of a header
Date: Thu, 28 Sep 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: 6.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: see_also
Message-ID: <bug-68615-4-gjTXDFecDc@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-68615-4@http.gcc.gnu.org/bugzilla/>
References: <bug-68615-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02738.txt.bz2
Content-length: 837

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

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

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

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Eric Gallager from comment #1)
> Confirmed, related to bug 44515 and bug 82013
> (not sure which is a dup of which if any)

Neither I think. Both are for C not C++, and the former is for calls not
declarations.

Possibly a dup of PR c++/56084 because fixing that properly might make the
location for this case correct. But it might be better to keep them separate.
>From gcc-bugs-return-576710-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 12:58:05 2017
Return-Path: <gcc-bugs-return-576710-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 25504 invoked by alias); 28 Sep 2017 12:58:05 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 16867 invoked by uid 48); 28 Sep 2017 12:58:01 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/25071] dummy argument larger than actual argument
Date: Thu, 28 Sep 2017 12:58:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 4.1.0
X-Bugzilla-Keywords: accepts-invalid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: dominiq at lps dot ens.fr
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-25071-4-3zinDQZyMH@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-25071-4@http.gcc.gnu.org/bugzilla/>
References: <bug-25071-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02739.txt.bz2
Content-length: 191

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

--- Comment #25 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Patch at https://gcc.gnu.org/ml/fortran/2017-09/msg00126.html.
>From gcc-bugs-return-576711-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 13:00:33 2017
Return-Path: <gcc-bugs-return-576711-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 8141 invoked by alias); 28 Sep 2017 13:00: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 129045 invoked by uid 48); 28 Sep 2017 13:00:28 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/68230] Unused function parameters not reported by -Wunused-parameter when only used recursively.
Date: Thu, 28 Sep 2017 13: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: 5.2.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-68230-4-GVC2cH4gS3@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-68230-4@http.gcc.gnu.org/bugzilla/>
References: <bug-68230-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02740.txt.bz2
Content-length: 482

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

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I'm not sure there *should* be a warning here.

I find -Wunused-parameter most useful to know when I can remove the name of the
parameter, but you can't do that here (because it still needs a name to pass it
to the recursive call).

It's rare that my reaction to a -Wunused-parameter warning is to change the
function to remove the parameter entirely. YMMV.
>From gcc-bugs-return-576712-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 14:38:18 2017
Return-Path: <gcc-bugs-return-576712-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 81970 invoked by alias); 28 Sep 2017 14:38: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 54994 invoked by uid 48); 28 Sep 2017 14:38:09 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/68230] Unused function parameters not reported by -Wunused-parameter when only used recursively.
Date: Thu, 28 Sep 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: 5.2.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:
Message-ID: <bug-68230-4-Tgqr1Hmgam@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-68230-4@http.gcc.gnu.org/bugzilla/>
References: <bug-68230-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02741.txt.bz2
Content-length: 714

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

--- Comment #3 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #2)
> I'm not sure there *should* be a warning here.
> 
> I find -Wunused-parameter most useful to know when I can remove the name of
> the parameter, but you can't do that here (because it still needs a name to
> pass it to the recursive call).
> 
> It's rare that my reaction to a -Wunused-parameter warning is to change the
> function to remove the parameter entirely. YMMV.

There's also attribute unused and pragma unused, but yeah, it'd feel weird
using either of those here, too... maybe this should be closed as WONTFIX
instead...
>From gcc-bugs-return-576713-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 14:50:15 2017
Return-Path: <gcc-bugs-return-576713-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 48019 invoked by alias); 28 Sep 2017 14: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 47837 invoked by uid 48); 28 Sep 2017 14:50:06 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug preprocessor/65834] give error for #if with no expression at the previous location
Date: Thu, 28 Sep 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: preprocessor
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: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-65834-4-HkmMOTZKSv@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-65834-4@http.gcc.gnu.org/bugzilla/>
References: <bug-65834-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02742.txt.bz2
Content-length: 485

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-09-28
                 CC|                            |egallager at gcc dot gnu.org
     Ever confirmed|0                           |1
>From gcc-bugs-return-576714-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 14:54:09 2017
Return-Path: <gcc-bugs-return-576714-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 95535 invoked by alias); 28 Sep 2017 14:54:09 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 95441 invoked by uid 48); 28 Sep 2017 14:54:06 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/62316] poor location for missing braces warning
Date: Thu, 28 Sep 2017 14: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: unknown
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: enhancement
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-62316-4-lZdSPM2CGl@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-62316-4@http.gcc.gnu.org/bugzilla/>
References: <bug-62316-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02743.txt.bz2
Content-length: 605

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

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> ---
I think this is a dup of bug 70924

*** This bug has been marked as a duplicate of bug 70924 ***
>From gcc-bugs-return-576715-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 14:54:15 2017
Return-Path: <gcc-bugs-return-576715-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 96180 invoked by alias); 28 Sep 2017 14:54: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 95492 invoked by uid 48); 28 Sep 2017 14:54:06 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/70924] Wrong position for "warning: missing braces around initializer [-Wmissing-braces]"
Date: Thu, 28 Sep 2017 14:54:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: 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-70924-4-EFcmYdWmhd@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70924-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70924-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02744.txt.bz2
Content-length: 446

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

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

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

--- Comment #3 from Eric Gallager <egallager at gcc dot gnu.org> ---
*** Bug 62316 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-576716-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 14:58:36 2017
Return-Path: <gcc-bugs-return-576716-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 112788 invoked by alias); 28 Sep 2017 14:58:36 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 112731 invoked by uid 48); 28 Sep 2017 14:58:31 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/69777] Give a warning when virtual function is devirtualized into a __cxa_pure_virtual call
Date: Thu, 28 Sep 2017 14:58:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.9.1
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: enhancement
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-69777-4-sJCwIpfGPL@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-69777-4@http.gcc.gnu.org/bugzilla/>
References: <bug-69777-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02745.txt.bz2
Content-length: 1101

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2017-09-28
                 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 Manuel López-Ibáñez from comment #1)
> (In reply to Vadim Zeitlin from comment #0)
> > I have a small (but still ~50 lines of code) example that can be used to
> > reproduce this behaviour, please let me know if you'd like me to attach it.
> 
> If it is the preprocessed file (*.i*) that triggers the bug, generated by
> adding -save-temps to the complete compilation command, then please do so.
> 50 lines is small enough. Otherwise https://gcc.gnu.org/bugs/minimize.html

Thus WAITING for it to be attached.
>From gcc-bugs-return-576717-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 15:01:58 2017
Return-Path: <gcc-bugs-return-576717-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 122581 invoked by alias); 28 Sep 2017 15:01: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 122483 invoked by uid 48); 28 Sep 2017 15:01:51 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/70968] Missed case for -Wmisleading-indentation
Date: Thu, 28 Sep 2017 15:01:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: other
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-70968-4-89mJxeOvrt@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70968-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70968-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02746.txt.bz2
Content-length: 675

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

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

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

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed; cc-ing author of the warning
>From gcc-bugs-return-576718-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 15:09:47 2017
Return-Path: <gcc-bugs-return-576718-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 1965 invoked by alias); 28 Sep 2017 15:09: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 1864 invoked by uid 48); 28 Sep 2017 15:09:38 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/68230] Unused function parameters not reported by -Wunused-parameter when only used recursively.
Date: Thu, 28 Sep 2017 15: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: 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-68230-4-orBMebt5jj@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-68230-4@http.gcc.gnu.org/bugzilla/>
References: <bug-68230-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02747.txt.bz2
Content-length: 178

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

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Those aren't portable, so aren't a good general solution.
>From gcc-bugs-return-576719-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 15:12:12 2017
Return-Path: <gcc-bugs-return-576719-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 5482 invoked by alias); 28 Sep 2017 15: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 4396 invoked by uid 48); 28 Sep 2017 15:12:04 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/70618] better error messages for missing/too many arguments
Date: Thu, 28 Sep 2017 15:12:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 6.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-70618-4-94nUqJoe42@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70618-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70618-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02748.txt.bz2
Content-length: 566

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-09-28
                 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-576720-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 15:14:54 2017
Return-Path: <gcc-bugs-return-576720-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 10153 invoked by alias); 28 Sep 2017 15:14: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 10101 invoked by uid 48); 28 Sep 2017 15:14:50 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/71852] add warning for conditions that can never be true
Date: Thu, 28 Sep 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: 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: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-71852-4-tbVYoCqKaM@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-71852-4@http.gcc.gnu.org/bugzilla/>
References: <bug-71852-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02749.txt.bz2
Content-length: 755

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

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

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

--- Comment #3 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed, I would've thought Marek's recent changes to -Wtautological-compare
would have gotten this, but guess not...
>From gcc-bugs-return-576721-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 15:19:18 2017
Return-Path: <gcc-bugs-return-576721-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 75055 invoked by alias); 28 Sep 2017 15:19: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 69555 invoked by uid 48); 28 Sep 2017 15:19:13 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/64679] Spurious redefinition error when parsing not-quite-most-vexing-parse declarations
Date: Thu, 28 Sep 2017 15:19:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 5.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: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-64679-4-ZZ5D6HoxKQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64679-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64679-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02750.txt.bz2
Content-length: 623

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

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

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

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed that current gcc prints the same diagnostic that you got.
>From gcc-bugs-return-576722-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 15:30:38 2017
Return-Path: <gcc-bugs-return-576722-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 21661 invoked by alias); 28 Sep 2017 15:30: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 13176 invoked by uid 48); 28 Sep 2017 15:30:15 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/70065] Split -Wparentheses warnings about operators priority into a separate warning flag, -Wprecedence
Date: Thu, 28 Sep 2017 15:30:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 5.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: bug_status cf_reconfirmed_on cc short_desc everconfirmed
Message-ID: <bug-70065-4-t8byeoJtAK@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70065-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70065-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02751.txt.bz2
Content-length: 1794

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-09-28
                 CC|                            |egallager at gcc dot gnu.org
            Summary|Add a new option to         |Split -Wparentheses
                   |suppress a warnings about   |warnings about operators
                   |operators priority          |priority into a separate
                   |                            |warning flag, -Wprecedence
     Ever confirmed|0                           |1

--- Comment #9 from Eric Gallager <egallager at gcc dot gnu.org> ---
My old version of clang puts this under -Wlogical-op-parentheses:

$ cat 70065.cc
bool a, b, c;

// Something...
int main()
{
        if (a && b || c)
        {
                // Do something...
        }
}
$ /usr/local/bin/g++ -c -Wall -Wextra -pedantic 70065.cc
70065.cc: In function ‘int main()’:
70065.cc:6:8: warning: suggest parentheses around ‘&&’ within ‘||’
[-Wparentheses]
  if (a && b || c)
      ~~^~~~
$ /sw/opt/llvm-3.1/bin/clang -c -Wall -Wextra -pedantic 70065.cc
70065.cc:6:8: warning: '&&' within '||' [-Wlogical-op-parentheses]
        if (a && b || c)
            ~~^~~~ ~~
70065.cc:6:8: note: place parentheses around the '&&' expression to silence
this warning
        if (a && b || c)
              ^
            (     ) 
1 warning generated.
$

So confirming that another compiler has another name for it, regardless of
bikeshedding about the specific name to give it.
>From gcc-bugs-return-576723-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 15:48:38 2017
Return-Path: <gcc-bugs-return-576723-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 60741 invoked by alias); 28 Sep 2017 15:48:37 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 53811 invoked by uid 48); 28 Sep 2017 15:48:33 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/70047] Warn on inefficient function parameter passing
Date: Thu, 28 Sep 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: middle-end
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: enhancement
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-70047-4-GJdUBTMCkR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70047-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70047-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02752.txt.bz2
Content-length: 648

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

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

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

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Could you give an example testcase that you think gcc should warn on with this
option?
>From gcc-bugs-return-576724-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 15:51:47 2017
Return-Path: <gcc-bugs-return-576724-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 77905 invoked by alias); 28 Sep 2017 15:51: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 75806 invoked by uid 48); 28 Sep 2017 15:51:43 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug preprocessor/67276] duplicated missing terminating character diagnostic
Date: Thu, 28 Sep 2017 15:51:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: preprocessor
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-67276-4-2Ks55u2iME@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67276-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67276-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02753.txt.bz2
Content-length: 948

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

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

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

--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed, besides the 2 diagnostics you mentioned I also get one from
-Wpragmas:

$ /usr/local/bin/gcc -c 67276.c
67276.c:1:17: warning: missing terminating " character
 #pragma message "
                 ^
67276.c:1:17: error: missing terminating " character
67276.c:1:9: warning: expected a string after ‘#pragma message’ [-Wpragmas]
 #pragma message "
         ^~~~~~~
$
>From gcc-bugs-return-576725-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 15:56:30 2017
Return-Path: <gcc-bugs-return-576725-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 80698 invoked by alias); 28 Sep 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 78685 invoked by uid 48); 28 Sep 2017 15:56:26 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/67776] Using asm with non-static variable generates warning in C, but not in C++
Date: Thu, 28 Sep 2017 15:56:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 5.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: bug_status cf_reconfirmed_on cc short_desc everconfirmed
Message-ID: <bug-67776-4-FSvTjhLDwn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67776-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67776-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02754.txt.bz2
Content-length: 837

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-09-28
                 CC|                            |egallager at gcc dot gnu.org
            Summary|No warning when using asm   |Using asm with non-static
                   |with non-static variable    |variable generates warning
                   |                            |in C, but not in C++
     Ever confirmed|0                           |1

--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed, retitling to focus on this being an inconsistency
>From gcc-bugs-return-576726-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 15:59:27 2017
Return-Path: <gcc-bugs-return-576726-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 128207 invoked by alias); 28 Sep 2017 15:59:27 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 123016 invoked by uid 48); 28 Sep 2017 15:59:23 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/77430] warn about redundant assignments
Date: Thu, 28 Sep 2017 15:59:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 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: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-77430-4-EoaHconbtX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-77430-4@http.gcc.gnu.org/bugzilla/>
References: <bug-77430-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02755.txt.bz2
Content-length: 780

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

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

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

--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed, the clang static analyzer catches this:

$ /sw/opt/llvm-3.1/bin/clang --analyze -Wall -Wextra -pedantic 77430.c
77430.c:3:5: warning: Value stored to 'a' is never read
    a = 0;
    ^   ~
1 warning generated.
$
>From gcc-bugs-return-576727-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 16:02:54 2017
Return-Path: <gcc-bugs-return-576727-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 37189 invoked by alias); 28 Sep 2017 16:02:54 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 32497 invoked by uid 48); 28 Sep 2017 16:02:45 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/60523] Warning flag for octal literals
Date: Thu, 28 Sep 2017 16:02:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: 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: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-60523-4-g47Lr3Uedz@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-60523-4@http.gcc.gnu.org/bugzilla/>
References: <bug-60523-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02756.txt.bz2
Content-length: 718

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

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

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

--- Comment #7 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed, octal literals have confused me in the past, too. A separate -Woctal
that's controlled by neither -Wall nor -Wextra would be my preferred solution.
>From gcc-bugs-return-576728-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 16:05:44 2017
Return-Path: <gcc-bugs-return-576728-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 92838 invoked by alias); 28 Sep 2017 16: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 81931 invoked by uid 48); 28 Sep 2017 16:05:40 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/77618] warn for explicit instantiation that occurs after an explicit specialization
Date: Thu, 28 Sep 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: 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: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-77618-4-6YDUH6xD0U@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-77618-4@http.gcc.gnu.org/bugzilla/>
References: <bug-77618-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02757.txt.bz2
Content-length: 1016

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

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

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

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed, my (old) version of clang says:

$ /sw/opt/llvm-3.1/bin/clang++ -c -Wall -Wextra -pedantic 77618.cc
77618.cc:3:15: warning: explicit instantiation of 'foo<int>' that occurs after
an explicit specialization will be ignored (C++11 extension)
[-pedantic,-Wc++11-extensions]
template void foo<int>();
              ^
77618.cc:2:18: note: previous template specialization is here
template <> void foo<int>() {}
                 ^
1 warning generated.
$
>From gcc-bugs-return-576729-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 16:07:29 2017
Return-Path: <gcc-bugs-return-576729-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 30688 invoked by alias); 28 Sep 2017 16:07: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 24166 invoked by uid 48); 28 Sep 2017 16:07:25 -0000
From: "holger.hopp at sap dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/82352] New: link error 'defined in discarded section'
Date: Thu, 28 Sep 2017 16:07: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: 7.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: holger.hopp at sap 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-82352-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02758.txt.bz2
Content-length: 3469

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

            Bug ID: 82352
           Summary: link error 'defined in discarded section'
           Product: gcc
           Version: 7.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: holger.hopp at sap dot com
  Target Milestone: ---

I'm getting linker error
`...' referenced in section `...' of ..: defined in discarded section `...' of
...
with gcc-7 compiled code, that do not appear with gcc-5 or gcc-6.

Source:

typedef long unsigned int size_t;

class A
{
public :
  typedef enum { Zero = 0, One = 1 } tA;
  A(tA a) { m_a = a; }

private :
  tA m_a;
};

class B
{
public :
  void *operator new(size_t t) { return (void*)(42); };
};

class C
{
public:
  virtual void ffff () = 0;
};

class D
{
 public :
  virtual void g() = 0;
  virtual void h() = 0;
};

template<class T> class IIII: public T, public D
{
public:
 void ffff()
 {
   if (!m_i2) throw A(A::One);
 };

 void h()
 {
  if (m_i2) throw A(A::Zero);
 }

protected:
 virtual void g()
 {
  if (m_i1 !=0) throw A(A::Zero);
 };

private :
 int m_i1;
 void *m_i2;
};

class E
{
private:
    size_t m_e;
    static const size_t Max;

public:
    E& i(size_t a, size_t b, size_t c)
    {
        if ((a > Max) || (c > Max)) throw A(A::Zero );
        if (a + b > m_e) throw A(A::One );
        return (*this);
    }

  inline E& j(const E &s)
    {
      return i(0,0,s.m_e);
    }
};

class F : public C { };
class G : public C { };
class HHHH : public B, public F, public G { };

void k()
{
    HHHH *p = new IIII<HHHH>();
}

void l()
{
  E e1, e2;
  e1.j(e2);
}



Reproduce:

$ g++ -O2 -o t1.o -c t1.cpp && echo ok && objdump -t t1.o | grep ffffEv.part
ok
0000000000000000 l    d  .text.unlikely._ZN4IIIII4HHHHE4ffffEv.part.2  
0000000000000000 .text.unlikely._ZN4IIIII4HHHHE4ffffEv.part.2
0000000000000000 l     F .text.unlikely._ZN4IIIII4HHHHE4ffffEv.part.2  
0000000000000023 _ZN4IIIII4HHHHE4ffffEv.part.2

This symbol is causing the linker problem. Maybe this is already sufficient for
you.
You may get the final linker error as follows:

Slightly change source t1.cpp to t2.cpp:
- remove function g() (twice!)
- rename k() and l() by k2() and l2(2), respectively.

$ g++ -O2 -o t2.o -c t2.cpp && echo ok && objdump -t t2.o | grep ffffEv.part
ok
0000000000000000 l    d  .text.unlikely._ZN4IIIII4HHHHE4ffffEv.part.1  
0000000000000000 .text.unlikely._ZN4IIIII4HHHHE4ffffEv.part.1
0000000000000000 l     F .text.unlikely._ZN4IIIII4HHHHE4ffffEv.part.1  
0000000000000023 _ZN4IIIII4HHHHE4ffffEv.part.1

Symbol is named ...part.1 instead of ...part.2 in this case.

$ echo "int main() { return 0; }" | gcc -x c -c - -o main.o
$ g++ -o main main.o t1.o t2.o
`_ZN4IIIII4HHHHE4ffffEv.part.1' referenced in section `.text.unlikely' of t2.o:
defined in discarded section
`.text.unlikely._ZN4IIIII4HHHHE4ffffEv.part.1[_ZN4IIIII4HHHHE4ffffEv]' of t2.o
collect2: error: ld returned 1 exit status



Following works:
(1) gcc-5 and gcc-6
(2) gcc-7 with -O1
(3) marking ffff() with __attribute__((used))
    (found in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65199)
(4) patch binutils in file bfd/elflink.c, function
_bfd_elf_default_action_discarded:
    remove the COMPLAIN flag


Nevertheless, it is probably a bug on gcc side, as in similar old bug 49665
with same linker error.
>From gcc-bugs-return-576730-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 16:20:32 2017
Return-Path: <gcc-bugs-return-576730-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 127581 invoked by alias); 28 Sep 2017 16:20:32 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 127261 invoked by uid 48); 28 Sep 2017 16:20:28 -0000
From: "qing.zhao at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81357] Extra mov for zero extend of add
Date: Thu, 28 Sep 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: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization, ra
X-Bugzilla-Severity: normal
X-Bugzilla-Who: qing.zhao at oracle dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-81357-4-BFSgbgMt9k@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81357-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81357-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02759.txt.bz2
Content-length: 1134

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

Qing Zhao <qing.zhao at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |qing.zhao at oracle dot com

--- Comment #1 from Qing Zhao <qing.zhao at oracle dot com> ---
one question to the submitter:
   what optimization level you used to show this issue?

I tried-O0, -O1, -O2, and -O3.  I did not see this issue with -O0 and -O1.
starting to see the issue from -O2 and above. (I am using the upstream GCC on
9/27/2017).

the assembly sequence I observed with -O1 (GOOD one) is:
test1:
        add     w0, w0, 1
        uxtw    x2, w0
        adrp    x1, d
        str     x2, [x1, #:lo12:d]
        ret

the assembly sequence I observed with -O2 (BAD one) is:
test1:
        adrp    x2, d
        add     w1, w0, 1
        mov     w0, w1
        str     x1, [x2, #:lo12:d]
        ret

which shows the issue that mentioned by Andrew Pinski (i.e the "mov" insn might
be
unnecessary if the "add" insn is "add w0, w0, 1".
>From gcc-bugs-return-576732-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 16:26:00 2017
Return-Path: <gcc-bugs-return-576732-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 35733 invoked by alias); 28 Sep 2017 16: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 35694 invoked by uid 48); 28 Sep 2017 16:25:56 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/67036] GCC does not warn of throwing destructors in C++11, even when they lack noexcept(false) and std::uncaught_exception
Date: Thu, 28 Sep 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.1.1
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: enhancement
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-67036-4-0xRqkWFjbN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67036-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67036-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02761.txt.bz2
Content-length: 921

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2017-09-28
     Ever confirmed|0                           |1

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
VC++ prints:

main.cpp(7): warning C4297: 'useless::~useless': function assumed not to throw
an exception but does
main.cpp(7): note: destructor or deallocator has a (possibly implicit)
non-throwing exception specification
main.cpp(10): warning C4100: 'argv': unreferenced formal parameter

This is roughly equivalent to GCC's (in both cases the warning is because the
destructor is implicitly noexcept, so throwing will terminate).

So FIXED?
>From gcc-bugs-return-576731-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 16:25:10 2017
Return-Path: <gcc-bugs-return-576731-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 34712 invoked by alias); 28 Sep 2017 16: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 34621 invoked by uid 48); 28 Sep 2017 16:25:03 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81357] Extra mov for zero extend of add
Date: Thu, 28 Sep 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: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization, ra
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-81357-4-M7VdSfAkOg@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81357-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81357-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02760.txt.bz2
Content-length: 288

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

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
-O1 produces an extra zero extend.
-O2 and above produces an extra move instruction.

The zero extend is not needed as the add does an implicit zero extend already.
>From gcc-bugs-return-576733-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 16:42:43 2017
Return-Path: <gcc-bugs-return-576733-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 122094 invoked by alias); 28 Sep 2017 16: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 122054 invoked by uid 48); 28 Sep 2017 16:42:39 -0000
From: "jaak at ristioja dot ee" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/70047] Warn on inefficient function parameter passing
Date: Thu, 28 Sep 2017 16:42:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: jaak at ristioja dot ee
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-70047-4-zd2G3c3066@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70047-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70047-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02762.txt.bz2
Content-length: 720

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

--- Comment #2 from Jaak Ristioja <jaak at ristioja dot ee> ---
Perhaps the simplest example for x86_64 would be something like:

  void f(long a1, long a2, long a3, long a4, long a5, long a6, long a7);

According to the ABI all seven arguments are classified as INTEGER-s. Arguments
a1 through a6 get passed in %rdi, %rsi, %rdx, %rcx, %r8 and %r9 respectively,
but a7 will be passed on the stack because no other registers are available.
Therefore, in machine code passing/accessing a7 via the stack might be slightly
slower than accessing the rest of the variables via registers. The situation
gets more complicated with floating-point and aggregate values.
>From gcc-bugs-return-576734-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 17:31:33 2017
Return-Path: <gcc-bugs-return-576734-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 123579 invoked by alias); 28 Sep 2017 17:31: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 123502 invoked by uid 48); 28 Sep 2017 17:31:29 -0000
From: "babokin at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/82353] New: runtime ubsan crash
Date: Thu, 28 Sep 2017 17:31: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: babokin at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone attachments.created
Message-ID: <bug-82353-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02763.txt.bz2
Content-length: 1060

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

            Bug ID: 82353
           Summary: runtime ubsan crash
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: sanitizer
          Assignee: unassigned at gcc dot gnu.org
          Reporter: babokin at gmail dot com
                CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org,
                    jakub at gcc dot gnu.org, kcc at gcc dot gnu.org, marxin at gcc dot gnu.org
  Target Milestone: ---

Created attachment 42255
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42255&action=edit
reduced test case

GCC trunk, rev 253244, x86_64.

> g++ -std=c++11 -fsanitize=undefined -fno-sanitize-recover=undefined -w -O2 ff.cpp dd.cpp -o out
> ./out
ff.cpp:20:27: runtime error: pointer index expression with base 0x0000006022f0
overflowed to 0x000000602300

Test case was reduced from a larger UB-free program.

I failed to reduce test case to a single file reproducer.
>From gcc-bugs-return-576736-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 17:33:35 2017
Return-Path: <gcc-bugs-return-576736-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 127918 invoked by alias); 28 Sep 2017 17:33: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 127866 invoked by uid 48); 28 Sep 2017 17:33:31 -0000
From: "noloader at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/67036] GCC does not warn of throwing destructors in C++11, even when they lack noexcept(false) and std::uncaught_exception
Date: Thu, 28 Sep 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: 5.1.1
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: noloader 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-67036-4-RHCiSd4OgY@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67036-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67036-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02765.txt.bz2
Content-length: 674

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

--- Comment #4 from Jeffrey Walton <noloader at gmail dot com> ---
(In reply to Jonathan Wakely from comment #3)
> VC++ prints:
> 
> main.cpp(7): warning C4297: 'useless::~useless': function assumed not to
> throw an exception but does
> main.cpp(7): note: destructor or deallocator has a (possibly implicit)
> non-throwing exception specification
> main.cpp(10): warning C4100: 'argv': unreferenced formal parameter
> 
> This is roughly equivalent to GCC's (in both cases the warning is because
> the destructor is implicitly noexcept, so throwing will terminate).
> 
> So FIXED?

Yes, it sounds like it. Thanks.
>From gcc-bugs-return-576735-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 17:33:09 2017
Return-Path: <gcc-bugs-return-576735-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 127096 invoked by alias); 28 Sep 2017 17:33: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 127014 invoked by uid 48); 28 Sep 2017 17:33:06 -0000
From: "babokin at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/82353] runtime ubsan crash
Date: Thu, 28 Sep 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: sanitizer
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: babokin at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-82353-4-X6ZM6fkfow@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82353-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82353-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02764.txt.bz2
Content-length: 605

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

--- Comment #1 from Dmitry Babokin <babokin at gmail dot com> ---
Created attachment 42256
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42256&action=edit
original test case

I'm also attaching original test case, just in case. For the bug to reproduce
it's important to compile with -std=c++11 switch.

> g++ -std=c++11 -fsanitize=undefined -fno-sanitize-recover=undefined -w -O2 func.cpp driver.cpp -o out
> ./out
func.cpp:2448:96: runtime error: pointer index expression with base
0x00000063a3a0 overflowed to 0x00000063a3b8
>From gcc-bugs-return-576737-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 17:36:06 2017
Return-Path: <gcc-bugs-return-576737-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 130937 invoked by alias); 28 Sep 2017 17:36: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 130900 invoked by uid 48); 28 Sep 2017 17:36:02 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/67036] GCC does not warn of throwing destructors in C++11, even when they lack noexcept(false) and std::uncaught_exception
Date: Thu, 28 Sep 2017 17:36:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 5.1.1
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution target_milestone
Message-ID: <bug-67036-4-a1iPiMSqNy@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67036-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67036-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02766.txt.bz2
Content-length: 517

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |6.0

--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Fixed by the addition of -Wterminate in GCC 6
>From gcc-bugs-return-576738-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 17:51:41 2017
Return-Path: <gcc-bugs-return-576738-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 82531 invoked by alias); 28 Sep 2017 17:51: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 81997 invoked by uid 48); 28 Sep 2017 17:51:36 -0000
From: "j.fisher at digipen dot edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/68230] Unused function parameters not reported by -Wunused-parameter when only used recursively.
Date: Thu, 28 Sep 2017 17:51:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 5.2.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: j.fisher at digipen dot edu
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-68230-4-sBK9moP4z9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-68230-4@http.gcc.gnu.org/bugzilla/>
References: <bug-68230-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02767.txt.bz2
Content-length: 980

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

--- Comment #5 from Joshua T, Fisher <j.fisher at digipen dot edu> ---
(In reply to Jonathan Wakely from comment #2)
> It's rare that my reaction to a -Wunused-parameter warning is to change the
> function to remove the parameter entirely. YMMV.

Totally reasonable, I too rarely change the signature and use either
attributes, removing the parameter name, or the void cast trick. However I have
seen bugs pop up a couple times from important parameters being included, but
not used, see:

https://github.com/nvpro-pipeline/VkHLF/commit/b6646c4773e8aef49c40e8684eca1382bf2e9d50

and my blog where I first encountered this in a closed source codebase:

http://www.nullterminatedstrings.com/c++/recursive-warning

Perhaps this doesn't qualify as a bug in the current -Wunused-parameter warning
implementation, but would it be reasonable to add it as a separate warning?

Thanks for looking into this by the way folks!
>From gcc-bugs-return-576739-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 18:00:27 2017
Return-Path: <gcc-bugs-return-576739-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 93791 invoked by alias); 28 Sep 2017 18:00: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 93272 invoked by uid 48); 28 Sep 2017 17:59:59 -0000
From: "vmakarov at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81481] [7/8 Regression] Spills %xmm to stack in glibc strspn SSE 4.2 variant
Date: Thu, 28 Sep 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: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization, ra
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vmakarov at gcc dot gnu.org
X-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-81481-4-2xCZ0aYtYU@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81481-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81481-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02768.txt.bz2
Content-length: 2056

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

--- Comment #4 from Vladimir Makarov <vmakarov at gcc dot gnu.org> ---
In IRA we have

(insn 9 8 24 2 (set (reg:V2DI 100 [ MEM[(const __m128i_u * {ref-all})_1] ])
        (mem:V2DI (plus:SI (plus:SI (reg:SI 99 [ i ])
                    (reg:SI 87))
                (const:SI (unspec:SI [
                            (symbol_ref:SI ("c") [flags 0x42] <var_decl
0x7f94b4253480 c>)
                        ] UNSPEC_GOTOFF))) [0 MEM[(const __m128i_u *
{ref-all})_1]+0 S16 A8])) "./include/emmintrin.h":702 1233 {movv2di_internal}
     (expr_list:REG_EQUIV (mem:V2DI (plus:SI (plus:SI (reg:SI 99 [ i ])
                    (reg:SI 87))
                (const:SI (unspec:SI [
                            (symbol_ref:SI ("c") [flags 0x42] <var_decl
0x7f94b4253480 c>)
                        ] UNSPEC_GOTOFF))) [0 MEM[(const __m128i_u *
{ref-all})_1]+0 S16 A8])
        (nil)))
(insn 24 9 10 2 (set (reg/v/f:SI 97 [ x ])
        (mem/f/c:SI (reg/f:SI 16 argp) [2 x+0 S4 A32]))
"./include/tmmintrin.h":138 82 {*movsi_internal}
     (expr_list:REG_EQUIV (mem/f/c:SI (reg/f:SI 16 argp) [2 x+0 S4 A32])
        (nil)))
...
(insn 11 10 14 2 (set (reg:V16QI 101)
        (unspec:V16QI [
                (reg:V16QI 102 [ *x_5(D) ])
                (subreg:V16QI (reg:V2DI 100 [ MEM[(const __m128i_u *
{ref-all})_1] ]) 0)
            ] UNSPEC_PSHUFB)) "./include/tmmintrin.h":138 3798
{ssse3_pshufbv16qi3}
     (expr_list:REG_DEAD (reg:V16QI 102 [ *x_5(D) ])
        (expr_list:REG_DEAD (reg:V2DI 100 [ MEM[(const __m128i_u *
{ref-all})_1] ])
            (nil))))

Pseudo 100 gets NO_REGS class in ira-costs.c

  a6 (r100,l0) best NO_REGS, allocno NO_REGS

  a6(r100,l0) costs: SSE_FIRST_REG:0,0 NO_REX_SSE_REGS:0,0 MEM:-9000,-9000

because it is supposed in ira-costs.c that we can remove insn 9 by using equiv
memory for pseudo 100.

LRA does not use this equivalence because the related code in IRA and LRA
is not fully synced.  If the patch will be not ready this week, then it will
be ready only in a week.
>From gcc-bugs-return-576740-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 18:23:06 2017
Return-Path: <gcc-bugs-return-576740-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 30437 invoked by alias); 28 Sep 2017 18:23:06 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 30376 invoked by uid 48); 28 Sep 2017 18:23:02 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82354] New: semi-colon instead of comma in parameter list produces confusing diagnostics
Date: Thu, 28 Sep 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: 8.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cc target_milestone
Message-ID: <bug-82354-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02769.txt.bz2
Content-length: 2083

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

            Bug ID: 82354
           Summary: semi-colon instead of comma in parameter list produces
                    confusing diagnostics
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: redi at gcc dot gnu.org
                CC: dmalcolm at gcc dot gnu.org
  Target Milestone: ---

int main(int argc; char **argv) { (void) argc; (void) argv; return 0; }

With -Wpedantic this prints:

sscce.c:1:1: warning: ISO C forbids forward parameter declarations [-Wpedantic]
 int main(int argc; char **argv) { (void) argc; (void) argv; return 0; }
 ^~~
sscce.c:1:14: error: parameter ‘argc’ has just a forward declaration
 int main(int argc; char **argv) { (void) argc; (void) argv; return 0; }
              ^~~~
sscce.c:1:5: warning: first argument of ‘main’ should be ‘int’ [-Wmain]
 int main(int argc; char **argv) { (void) argc; (void) argv; return 0; }
     ^~~~
sscce.c:1:5: warning: ‘main’ takes only zero or two arguments [-Wmain]
sscce.c: In function ‘main’:
sscce.c:1:42: error: ‘argc’ undeclared (first use in this function); did you
mean ‘argv’?
 int main(int argc; char **argv) { (void) argc; (void) argv; return 0; }
                                          ^~~~
                                          argv
sscce.c:1:42: note: each undeclared identifier is reported only once for each
function it appears in

Without -Wpedantic it's even less clear what's going on.

Most users have probably got no idea what "forward parameter declarations" are
(is this extension even documented?) so maybe it would be better to assume the
user didn't mean to type a semi-colon there.

Instead of a cryptic message about an obscure extension, maybe suggest a fix-it
to replace the ';' with ','
>From gcc-bugs-return-576741-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 18:23:56 2017
Return-Path: <gcc-bugs-return-576741-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 40869 invoked by alias); 28 Sep 2017 18:23:56 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 40820 invoked by uid 48); 28 Sep 2017 18:23:52 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82354] semi-colon instead of comma in parameter list produces confusing diagnostics
Date: Thu, 28 Sep 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: 8.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-82354-4-36P7IqD6A0@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82354-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82354-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02770.txt.bz2
Content-length: 741

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-09-28
     Ever confirmed|0                           |1

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #0)
> sscce.c:1:1: warning: ISO C forbids forward parameter declarations
> [-Wpedantic]
>  int main(int argc; char **argv) { (void) argc; (void) argv; return 0; }
>  ^~~

And also, this is a very strange location for the pedwarn.
>From gcc-bugs-return-576742-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 18:34:29 2017
Return-Path: <gcc-bugs-return-576742-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 91195 invoked by alias); 28 Sep 2017 18:34: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 89229 invoked by uid 48); 28 Sep 2017 18:34:25 -0000
From: "asolokha at gmx dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82355] New: [8 Regression] ICE in outermost_loop_in_sese, at sese.c:301
Date: Thu, 28 Sep 2017 18:34:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: 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-82355-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02771.txt.bz2
Content-length: 1197

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

            Bug ID: 82355
           Summary: [8 Regression] ICE in outermost_loop_in_sese, at
                    sese.c:301
           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-alpha20170924 snapshot (r253127) ICEs when compiling the following
snippet w/ -O1 (-O2, -O3, -Ofast) -floop-nest-optimize -funswitch-loops:

int dc, at;

void
tv (int *ld, int jl)
{
  for (;;)
    {
      if (dc != 0)
        for (;;)
          {
            *ld = !!(*ld) + 1;
            for (dc = 0; dc < 3; ++dc)
              at = (jl != 0) ? *ld : 0;
          }

      while (at != 0)
        {
        }
    }
}

% gcc-8.0.0-alpha20170924 -O1 -floop-nest-optimize -funswitch-loops -c
cdenm4r6.c
during GIMPLE pass: graphite
cdenm4r6.c: In function 'tv':
cdenm4r6.c:4:1: internal compiler error: in outermost_loop_in_sese, at
sese.c:301
 tv (int *ld, int jl)
 ^~
>From gcc-bugs-return-576744-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 18:36:41 2017
Return-Path: <gcc-bugs-return-576744-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 104042 invoked by alias); 28 Sep 2017 18:36:41 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 102347 invoked by uid 48); 28 Sep 2017 18:36:36 -0000
From: "dmalcolm at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82354] semi-colon instead of comma in parameter list produces confusing diagnostics
Date: Thu, 28 Sep 2017 18:36:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: 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: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82354-4-uHYvFBMP6W@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82354-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82354-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02773.txt.bz2
Content-length: 351

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

--- Comment #2 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Note: the pertinent extension appears to be documented here:
https://gcc.gnu.org/onlinedocs/gcc-7.2.0/gcc/Variable-Length.html#index-parameter-forward-declaration

(see @cindex parameter forward declaration within extend.texi)
>From gcc-bugs-return-576743-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 18:36:34 2017
Return-Path: <gcc-bugs-return-576743-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 101962 invoked by alias); 28 Sep 2017 18:36:34 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 101877 invoked by uid 55); 28 Sep 2017 18:36:30 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82342] [8 regression] i386/pr82260-2.c fail
Date: Thu, 28 Sep 2017 18:36:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82342-4-Ko2I9m01Ru@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82342-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82342-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02772.txt.bz2
Content-length: 549

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

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Sep 28 18:35:58 2017
New Revision: 253261

URL: https://gcc.gnu.org/viewcvs?rev=253261&root=gcc&view=rev
Log:
        PR target/82342
        * gcc.target/i386/pr82260-1.c: Add -mno-bmi2 to dg-options.
        * gcc.target/i386/pr82260-2.c: Likewise.

Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.target/i386/pr82260-1.c
    trunk/gcc/testsuite/gcc.target/i386/pr82260-2.c
>From gcc-bugs-return-576745-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 18:43:04 2017
Return-Path: <gcc-bugs-return-576745-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 8849 invoked by alias); 28 Sep 2017 18:43:04 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 8751 invoked by uid 48); 28 Sep 2017 18:42:58 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/70047] Warn on inefficient function parameter passing
Date: Thu, 28 Sep 2017 18:43:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: ABI, 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
Message-ID: <bug-70047-4-NH2xZN6ZUI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70047-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70047-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02774.txt.bz2
Content-length: 1088

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

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

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

--- Comment #3 from Eric Gallager <egallager at gcc dot gnu.org> ---
I expanded the testcase:

$ cat 70047.c
void f(long a1, long a2, long a3, long a4, long a5, long a6, long a7);
void g(float b1, double b2, long double b3, long b4, long b5, long b6,
       register long b7);

struct agg {
        long f1;
        float f2;
        double f3;
        long double f4;
};

void h(struct agg c1, struct agg c2, struct agg c3, struct agg c4,
       struct agg c5, struct agg c6, struct agg c7, struct agg c8);
$ /usr/local/bin/gcc -c -Wall -Wextra -pedantic -Waggregate-return
-Wvolatile-register-var -Wabi -Wpsabi -O2 70047.c
$

...which still gives no warnings when compiling, so, confirmed. Would probably
make sense as part of -Wpsabi.
>From gcc-bugs-return-576746-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 18:50:50 2017
Return-Path: <gcc-bugs-return-576746-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 40580 invoked by alias); 28 Sep 2017 18:50: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 40515 invoked by uid 48); 28 Sep 2017 18:50:46 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/59793] Warning to suggest making trivial non-virtual method inline
Date: Thu, 28 Sep 2017 18:50:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.8.2
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: enhancement
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-59793-4-Bv7rPhiUTP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-59793-4@http.gcc.gnu.org/bugzilla/>
References: <bug-59793-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02775.txt.bz2
Content-length: 642

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2017-09-28
                 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 post an example testcase that you want the warning to warn
about?
>From gcc-bugs-return-576747-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 18:52:06 2017
Return-Path: <gcc-bugs-return-576747-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 43383 invoked by alias); 28 Sep 2017 18:52:06 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 43310 invoked by uid 48); 28 Sep 2017 18:52:02 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/58589] diagnostics: missing proper file:line on C++ compilation error
Date: Thu, 28 Sep 2017 18:52:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: enhancement
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-58589-4-Mjd3NDG88a@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-58589-4@http.gcc.gnu.org/bugzilla/>
References: <bug-58589-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02776.txt.bz2
Content-length: 706

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|2014-08-20 00:00:00         |2017-09-28
                 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 Manuel López-Ibáñez from comment #2)
> Waiting for a minimized testcase.

Changing status to actually be WAITING then.
>From gcc-bugs-return-576748-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 18:54:57 2017
Return-Path: <gcc-bugs-return-576748-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 58695 invoked by alias); 28 Sep 2017 18:54: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 55098 invoked by uid 48); 28 Sep 2017 18:54:52 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/65253] Wmemsize-comparison
Date: Thu, 28 Sep 2017 18:54:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: 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: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-65253-4-ZE1EEf9sTW@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-65253-4@http.gcc.gnu.org/bugzilla/>
References: <bug-65253-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02777.txt.bz2
Content-length: 1522

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-09-28
                 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 Manuel López-Ibáñez from comment #0)
> Clang does:
> 
> remote.c:5519:47: warning: size argument in 'strncmp' call is a
> comparison [-Wmemsize-comparison]
>               && strncmp (p, "core", strlen ("core") != 0))
>                                      ~~~~~~~~~~~~~~~~^~~~
> remote.c:5519:11: note: did you mean to compare the result of 'strncmp'
> instead?
>               && strncmp (p, "core", strlen ("core") != 0))
>                  ^                                       ~
>                                                     )
> remote.c:5519:31: note: explicitly cast the argument to size_t to
> silence this warning
>               && strncmp (p, "core", strlen ("core") != 0))
>                                      ^
>                                      (size_t)(           )
> 
> and it founds bugs in gdb:
> https://sourceware.org/ml/gdb/2015-02/msg00088.html

I'll take the gdb discussion as confirmation
>From gcc-bugs-return-576749-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 18:57:56 2017
Return-Path: <gcc-bugs-return-576749-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 79465 invoked by alias); 28 Sep 2017 18:57: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 79424 invoked by uid 48); 28 Sep 2017 18:57:52 -0000
From: "qing.zhao at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81357] Extra mov for zero extend of add
Date: Thu, 28 Sep 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: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization, ra
X-Bugzilla-Severity: normal
X-Bugzilla-Who: qing.zhao at oracle dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81357-4-KQyjG4ojBv@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81357-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81357-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02778.txt.bz2
Content-length: 1365

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

--- Comment #3 from Qing Zhao <qing.zhao at oracle dot com> ---
the zero extension "uxtw" insn is generated even without any optimiation, the
additional "mov" insn generated in -O2 is introduced by -fschedule-insns,
please see the following:

***/home/qinzhao/Install/latest/bin/gcc t.c
test1:
        sub     sp, sp, #16
        str     w0, [sp, 12]
        ldr     w0, [sp, 12]
        add     w0, w0, 1
        uxtw    x1, w0
        adrp    x0, d
        add     x0, x0, :lo12:d
        str     x1, [x0]
        ldr     w0, [sp, 12]
        add     w0, w0, 1
        add     sp, sp, 16
        ret
***/home/qinzhao/Install/latest/bin/gcc -O t.c
test1:
        add     w0, w0, 1
        uxtw    x2, w0
        adrp    x1, d
        str     x2, [x1, #:lo12:d]
        ret
***/home/qinzhao/Install/latest/bin/gcc -O -fschedule-insns t.c
test1:
        add     w1, w0, 1
        adrp    x2, d
        mov     w0, w1
        uxtw    x1, w1
        str     x1, [x2, #:lo12:d]
        ret

So, 
1. the zero extension comes from the language standard naturally. for aarch64,
due to the fact that the register W0 to X0 implicitly zero extension, the
explicitly zero extension insn can be optimized by some peephole optimization I
think.

2. will study why insn scheduler introduced the additional mov insns.
>From gcc-bugs-return-576750-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 18:58:03 2017
Return-Path: <gcc-bugs-return-576750-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 80211 invoked by alias); 28 Sep 2017 18:58:03 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 79882 invoked by uid 48); 28 Sep 2017 18:57:59 -0000
From: "eugene.zelenko at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/59793] Warning to suggest making trivial non-virtual method inline
Date: Thu, 28 Sep 2017 18:58:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.8.2
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: eugene.zelenko 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-59793-4-dQ02lLodIy@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-59793-4@http.gcc.gnu.org/bugzilla/>
References: <bug-59793-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02779.txt.bz2
Content-length: 266

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

--- Comment #2 from Eugene Zelenko <eugene.zelenko at gmail dot com> ---
Something like that:

class Class
{
private:
  int Data;

public:
  int GetData() const;
};

int Class::GetData() const {
  return Data;
}
>From gcc-bugs-return-576751-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 19:00:46 2017
Return-Path: <gcc-bugs-return-576751-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 108240 invoked by alias); 28 Sep 2017 19:00: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 106853 invoked by uid 48); 28 Sep 2017 19:00:41 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/64743] minor issue with the location of -Wlong-long
Date: Thu, 28 Sep 2017 19:00:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords: diagnostic, easyhack
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-64743-4-RSQ3cNn1kc@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64743-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64743-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02780.txt.bz2
Content-length: 649

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

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> ---
Eh, I think gcc's current behavior makes sense, the 2nd long is the one that
makes it a long long rather than just a long, since people type left to right.
When typing in order, when you've typed just the 1st long, it won't have
triggered -Wlong-long yet.
>From gcc-bugs-return-576752-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 19:01:55 2017
Return-Path: <gcc-bugs-return-576752-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 118084 invoked by alias); 28 Sep 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 118032 invoked by uid 48); 28 Sep 2017 19:01:51 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81357] Extra mov for zero extend of add
Date: Thu, 28 Sep 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: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization, ra
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: qing.zhao at oracle dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc assigned_to
Message-ID: <bug-81357-4-lTmKVYDsg1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81357-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81357-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02781.txt.bz2
Content-length: 445

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|qing.zhao at oracle dot com        |
           Assignee|unassigned at gcc dot gnu.org      |qing.zhao at oracle dot com
>From gcc-bugs-return-576754-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 19:03:29 2017
Return-Path: <gcc-bugs-return-576754-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 36423 invoked by alias); 28 Sep 2017 19:03:29 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 36382 invoked by uid 48); 28 Sep 2017 19:03:24 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/59793] Warning to suggest making trivial non-virtual method inline
Date: Thu, 28 Sep 2017 19:03:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.8.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: 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-59793-4-OCvOIsqBp9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-59793-4@http.gcc.gnu.org/bugzilla/>
References: <bug-59793-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02783.txt.bz2
Content-length: 646

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

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

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

--- Comment #3 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Eugene Zelenko from comment #2)
> Something like that:
> 
> class Class
> {
> private:
>   int Data;
> 
> public:
>   int GetData() const;
> };
> 
> int Class::GetData() const {
>   return Data;
> }

Thanks, confirmed that there's currently no warnings for this.
>From gcc-bugs-return-576753-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 19:03:07 2017
Return-Path: <gcc-bugs-return-576753-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 35644 invoked by alias); 28 Sep 2017 19:03:07 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 35565 invoked by uid 48); 28 Sep 2017 19:03:03 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/58589] diagnostics: missing proper file:line on C++ compilation error
Date: Thu, 28 Sep 2017 19:03:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.9.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: bug_status
Message-ID: <bug-58589-4-o0FvFmB6T9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-58589-4@http.gcc.gnu.org/bugzilla/>
References: <bug-58589-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02782.txt.bz2
Content-length: 1591

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

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

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

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Jan Kratochvil from comment #0)
> #include <unordered_map>
> #include <memory>
> class X {
> public:
>   int a,&b; /* the reference disables default copy constructor */

What has the copy constructor got to do with anything?

std::unique_ptr<X> never tries to copy an X

Reduced:

template<class T>
struct impl
{
  T t;

  impl& operator=(const impl& i) { t = i.t; return *this; }
};

template<class T>
struct unordered_map
{
  impl<T> m_impl;
};

struct unique_ptr {
  unique_ptr& operator=(const unique_ptr&) = delete;
};

struct Y {
  unordered_map<unique_ptr> x;
};

int main() {
  Y a;
  a = a;
}

j.cc: In instantiation of ‘impl<T>& impl<T>::operator=(const impl<T>&) [with T
= unique_ptr]’:
j.cc:10:8:   required from here
j.cc:6:38: error: use of deleted function ‘unique_ptr&
unique_ptr::operator=(const unique_ptr&)’
   impl& operator=(const impl& i) { t = i.t; return *this; }
                                    ~~^~~~~
j.cc:16:15: note: declared here
   unique_ptr& operator=(const unique_ptr&) = delete;
               ^~~~~~~~

There's nothing showing the location of the "a = a" expression that requires
the deleted Y::operator=(const Y&).
>From gcc-bugs-return-576755-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 19:13:51 2017
Return-Path: <gcc-bugs-return-576755-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 79720 invoked by alias); 28 Sep 2017 19: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 79675 invoked by uid 48); 28 Sep 2017 19:13:47 -0000
From: "wilco at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81357] Extra mov for zero extend of add
Date: Thu, 28 Sep 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: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization, ra
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wilco at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: qing.zhao at oracle dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81357-4-nIfuabSSq3@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81357-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81357-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02784.txt.bz2
Content-length: 924

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

--- Comment #4 from Wilco <wilco at gcc dot gnu.org> ---
(In reply to Qing Zhao from comment #3)
> 1. the zero extension comes from the language standard naturally. for
> aarch64, due to the fact that the register W0 to X0 implicitly zero
> extension, the explicitly zero extension insn can be optimized by some
> peephole optimization I think.
> 
> 2. will study why insn scheduler introduced the additional mov insns.

The scheduler didn't introduce an additional move. There are 2 distinct values
here, the 32-bit value fParm + 1 and the 64-bit zero-extended version of it.
Your example shows it perfectly:

        add     w1, w0, 1
        mov     w0, w1
        uxtw    x1, w1

The mov and uxtw are in fact the same instruction, however they are different
in the intermediate code. Due to being different operations the register
allocator needs 2 registers.
>From gcc-bugs-return-576756-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 19:18:27 2017
Return-Path: <gcc-bugs-return-576756-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 85425 invoked by alias); 28 Sep 2017 19:18: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 85383 invoked by uid 55); 28 Sep 2017 19:18:23 -0000
From: "kristerw at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/80600] hidden symbol `__cpu_model' is referenced by DSO
Date: Thu, 28 Sep 2017 19: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: 7.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: kristerw at gcc dot gnu.org
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: kristerw at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-80600-4-EG6O1ME5AR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80600-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80600-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02785.txt.bz2
Content-length: 890

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

--- Comment #12 from Krister Walfridsson <kristerw at gcc dot gnu.org> ---
Author: kristerw
Date: Thu Sep 28 19:17:51 2017
New Revision: 253263

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

        Backport from mainline
        2017-05-14  Krister Walfridsson  <krister.walfridsson@gmail.com>

        PR target/80600
        * config/netbsd.h (NETBSD_LIBGCC_SPEC): Always add -lgcc.

libgcc/ChangeLog:

        Backport from mainline
        2017-05-14  Krister Walfridsson  <krister.walfridsson@gmail.com>

        PR target/80600
        * config.host (*-*-netbsd*): Add t-slibgcc-libgcc to tmake_file.

Modified:
    branches/gcc-7-branch/gcc/ChangeLog
    branches/gcc-7-branch/gcc/config/netbsd.h
    branches/gcc-7-branch/libgcc/ChangeLog
    branches/gcc-7-branch/libgcc/config.host
>From gcc-bugs-return-576757-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 19:39:45 2017
Return-Path: <gcc-bugs-return-576757-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 72316 invoked by alias); 28 Sep 2017 19: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 72136 invoked by uid 48); 28 Sep 2017 19:39:40 -0000
From: "dmalcolm at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/44515] improve message for missing ";"
Date: Thu, 28 Sep 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: c
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: enhancement
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-44515-4-89G66GST6W@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-44515-4@http.gcc.gnu.org/bugzilla/>
References: <bug-44515-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02786.txt.bz2
Content-length: 563

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

--- Comment #7 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
The patch kit I proposed here:
  https://gcc.gnu.org/ml/gcc-patches/2017-09/msg01744.html
and adds a fix-it hint and improves the location, making the successor token be
a secondary location within the diagnostic:

t.c: In function ‘foo’:
t.c:4:8: error: expected ‘;’ before ‘}’ token
   bar()
        ^
        ;
t.c:7:1:
 }
 ~       

It doesn't change the wording though.
>From gcc-bugs-return-576758-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 19:40:23 2017
Return-Path: <gcc-bugs-return-576758-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 75642 invoked by alias); 28 Sep 2017 19:40:23 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 75558 invoked by uid 55); 28 Sep 2017 19:40:18 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/56973] [DR 696] crash when capturing variables in nested lambdas
Date: Thu, 28 Sep 2017 19:40:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jason at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-56973-4-C1ciCXpMeU@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-56973-4@http.gcc.gnu.org/bugzilla/>
References: <bug-56973-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02787.txt.bz2
Content-length: 1411

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

--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Thu Sep 28 19:39:45 2017
New Revision: 253266

URL: https://gcc.gnu.org/viewcvs?rev=253266&root=gcc&view=rev
Log:
        PR c++/56973, DR 696 - capture constant variables only as needed.

        * expr.c (mark_use): Split out from mark_rvalue_use and
        mark_lvalue_use.  Handle lambda capture of constant variables.
        (mark_lvalue_use_nonread): New.
        * semantics.c (process_outer_var_ref): Don't capture a constant
        variable until forced.
        * pt.c (processing_nonlambda_template): New.
        * call.c (build_this): Check it.
        * decl2.c (grok_array_decl): Call mark_rvalue_use and
        mark_lvalue_use_nonread.
        * init.c (constant_value_1): Don't call mark_rvalue_use.
        * typeck.c (build_static_cast): Handle lambda capture.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-const6.C
    trunk/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-const7.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/call.c
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/decl2.c
    trunk/gcc/cp/expr.c
    trunk/gcc/cp/init.c
    trunk/gcc/cp/pt.c
    trunk/gcc/cp/semantics.c
    trunk/gcc/cp/typeck.c
    trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-64462.C
    trunk/gcc/testsuite/g++.dg/cpp1y/lambda-generic-const4.C
>From gcc-bugs-return-576759-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 19:54:02 2017
Return-Path: <gcc-bugs-return-576759-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 21637 invoked by alias); 28 Sep 2017 19:54: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 19741 invoked by uid 55); 28 Sep 2017 19:53:59 -0000
From: "qing.zhao at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81357] Extra mov for zero extend of add
Date: Thu, 28 Sep 2017 19: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: missed-optimization, ra
X-Bugzilla-Severity: normal
X-Bugzilla-Who: qing.zhao at oracle dot com
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: qing.zhao at oracle dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81357-4-XD1qtu0FIf@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81357-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81357-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02788.txt.bz2
Content-length: 2120

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

--- Comment #5 from Qing Zhao <qing.zhao at oracle dot com> ---
Hi, wilco,

thanks for the comments.
see me reply below:

> On Sep 28, 2017, at 2:13 PM, wilco at gcc dot gnu.org <gcc-bugzilla@gcc.gnu.org> wrote:
> 
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81357
> 
> --- Comment #4 from Wilco <wilco at gcc dot gnu.org> ---
> (In reply to Qing Zhao from comment #3)
>> 1. the zero extension comes from the language standard naturally. for
>> aarch64, due to the fact that the register W0 to X0 implicitly zero
>> extension, the explicitly zero extension insn can be optimized by some
>> peephole optimization I think.
>> 
>> 2. will study why insn scheduler introduced the additional mov insns.
> 
> The scheduler didn't introduce an additional move. There are 2 distinct values
> here, the 32-bit value fParm + 1 and the 64-bit zero-extended version of it.
> Your example shows it perfectly:
> 
>        add     w1, w0, 1
>        mov     w0, w1
>        uxtw    x1, w1
> 
> The mov and uxtw are in fact the same instruction, however they are different
> in the intermediate code. Due to being different operations the register
> allocator needs 2 registers.

don’t quite understand your above. what’s your mean by “the mov and uxtw are in
fact the same instruction”?

from my understanding:

the “mov” insn that is added by -O2 is mainly for returning an unsigned int 
from the function. since by ABI, the register
w0 should hold the result that will be return. 

at the same time, the “uxtw” insn is there because of the explicitly conversion
from “unsigned int to unsigned long long”. 

If the first “add” insn keeps as “W0” as the destination (i.e. add w0, w0,1),
then the “mov” insn is NOT needed at all.

Not sure why when -fschedule-insns is ON, the destination of the add insns
becomes W1?

Qing



> 
> -- 
> You are receiving this mail because:
> You are the assignee for the bug.
>From gcc-bugs-return-576760-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 19:54:28 2017
Return-Path: <gcc-bugs-return-576760-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 33881 invoked by alias); 28 Sep 2017 19:54:28 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 31965 invoked by uid 48); 28 Sep 2017 19:54:25 -0000
From: "kristerw at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/80600] hidden symbol `__cpu_model' is referenced by DSO
Date: Thu, 28 Sep 2017 19:54:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: kristerw at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: kristerw at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-80600-4-JjbgXafVzV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80600-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80600-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02789.txt.bz2
Content-length: 505

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

Krister Walfridsson <kristerw at gcc dot gnu.org> changed:

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

--- Comment #13 from Krister Walfridsson <kristerw at gcc dot gnu.org> ---
Fixed for trunk and GCC 7.3 (GCC 6 and 5 does not have this problem).
>From gcc-bugs-return-576761-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 19:55:44 2017
Return-Path: <gcc-bugs-return-576761-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 126003 invoked by alias); 28 Sep 2017 19:55: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 123209 invoked by uid 48); 28 Sep 2017 19:55:39 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81357] Extra mov for zero extend of add
Date: Thu, 28 Sep 2017 19:55:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization, ra
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pinskia at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: qing.zhao at oracle dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81357-4-Znqo1K3uuU@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81357-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81357-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02790.txt.bz2
Content-length: 371

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

--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Qing Zhao from comment #5)
> 
> don’t quite understand your above. what’s your mean by “the mov and uxtw are
> in fact the same instruction”?

In aarch64 assembly mov and uxtw are alias of each other.
>From gcc-bugs-return-576762-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 20:04:12 2017
Return-Path: <gcc-bugs-return-576762-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 92858 invoked by alias); 28 Sep 2017 20:04:12 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 83854 invoked by uid 48); 28 Sep 2017 20:04:06 -0000
From: "kristerw at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/77480] netbsd specfile will not link against libc when building -shared (+patch)
Date: Thu, 28 Sep 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: target
X-Bugzilla-Version: 5.4.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: kristerw at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-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-77480-4-PpDVYMmtUj@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-77480-4@http.gcc.gnu.org/bugzilla/>
References: <bug-77480-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02791.txt.bz2
Content-length: 424

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

Krister Walfridsson <kristerw at gcc dot gnu.org> changed:

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

--- Comment #2 from Krister Walfridsson <kristerw at gcc dot gnu.org> ---
Fixed on trunk by r249822
>From gcc-bugs-return-576763-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 20:19:00 2017
Return-Path: <gcc-bugs-return-576763-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 110574 invoked by alias); 28 Sep 2017 20:19:00 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 100702 invoked by uid 48); 28 Sep 2017 20:18:55 -0000
From: "wdijkstr at arm dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81357] Extra mov for zero extend of add
Date: Thu, 28 Sep 2017 20:19:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization, ra
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wdijkstr at arm dot com
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: qing.zhao at oracle dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-81357-4-skEne9Kn2A@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81357-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81357-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02792.txt.bz2
Content-length: 947

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

Wilco <wdijkstr at arm dot com> changed:

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

--- Comment #7 from Wilco <wdijkstr at arm dot com> ---
(In reply to Qing Zhao from comment #5)

> Not sure why when -fschedule-insns is ON, the destination of the add insns
> becomes W1?

        add     w1, w0, 1
        mov     w0, w1
        uxtw    x1, w1

That's because the move assigns the return value which overwrites w0. However
the uxtw still needs to read the result of the addition. So the register
allocator is forced to use w1 as w0 cannot be used.

I don't think there is an easy fix for this example. The compiler believes
there are 2 distinct values so it uses 2 registers irrespectively of the order
of the mov and uxtw.
>From gcc-bugs-return-576764-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 20:30:04 2017
Return-Path: <gcc-bugs-return-576764-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 101319 invoked by alias); 28 Sep 2017 20:30: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 97626 invoked by uid 48); 28 Sep 2017 20:29:58 -0000
From: "vmakarov at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/82338] valgrind error in inherit_in_ebb
Date: Thu, 28 Sep 2017 20:30:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ra
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vmakarov at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82338-4-UogVTvUz3b@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82338-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82338-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02793.txt.bz2
Content-length: 503

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

--- Comment #2 from Vladimir Makarov <vmakarov at gcc dot gnu.org> ---
  Thank you for reporting this, especially for reducing the test case.  The bug
is not dangerous, it does not result in wrong code generation but it might
result in worse code.

  I reproduced it.  It seams the validity (obsoleteness) of data was not
checked first.  I'll make a patch and commit it tomorrow.  If I am not able to
make it on this week, I'll do it in a week.
>From gcc-bugs-return-576765-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 20:35:11 2017
Return-Path: <gcc-bugs-return-576765-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 11206 invoked by alias); 28 Sep 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 9611 invoked by uid 48); 28 Sep 2017 20:35:06 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79488] [7/8 Regression] ICE from lambda that has invalid return type
Date: Thu, 28 Sep 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.0.1
X-Bugzilla-Keywords: error-recovery
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-79488-4-a2s7sjiIof@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79488-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79488-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02794.txt.bz2
Content-length: 626

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

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

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

--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> ---
This works for me with current trunk. Given the nature of the bug, I doubt that
at this point we are going to fix it in the branch too: what do you think
Jonathan? Having committed the testcase, shall I keep it open anyway?
>From gcc-bugs-return-576766-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 21:00:31 2017
Return-Path: <gcc-bugs-return-576766-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 47827 invoked by alias); 28 Sep 2017 21:00: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 15180 invoked by uid 48); 28 Sep 2017 21:00:03 -0000
From: "j.fisher at digipen dot edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/68230] Unused function parameters not reported by -Wunused-parameter when only used recursively.
Date: Thu, 28 Sep 2017 21: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: 5.2.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: j.fisher at digipen dot edu
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-68230-4-JZRubbJqPe@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-68230-4@http.gcc.gnu.org/bugzilla/>
References: <bug-68230-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02795.txt.bz2
Content-length: 429

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

--- Comment #6 from Joshua T, Fisher <j.fisher at digipen dot edu> ---
(In reply to Joshua T, Fisher from comment #5)
> https://github.com/nvpro-pipeline/VkHLF/commit/b6646c4773e8aef49c40e8684eca1382bf2e9d50

Apologies this one doesn't apply. Just took another look and I just
misremembered, this is just a normal -Wunused-parameter, I don't think they had
it turned on.
>From gcc-bugs-return-576767-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 21:11:53 2017
Return-Path: <gcc-bugs-return-576767-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 67707 invoked by alias); 28 Sep 2017 21:11: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 65358 invoked by uid 48); 28 Sep 2017 21:11:49 -0000
From: "peter at cordes dot ca" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82356] New: auto-vectorizing pack of 16->8 has a redundant AND after a shift
Date: Thu, 28 Sep 2017 21:11: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, ssemmx
X-Bugzilla-Severity: normal
X-Bugzilla-Who: peter at cordes dot ca
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone cf_gcctarget
Message-ID: <bug-82356-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02796.txt.bz2
Content-length: 3127

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

            Bug ID: 82356
           Summary: auto-vectorizing pack of 16->8 has a redundant AND
                    after a shift
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Keywords: missed-optimization, ssemmx
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: peter at cordes dot ca
  Target Milestone: ---
            Target: x86_64-*-*, i?86-*-*

#include <stdint.h>
void pack_high8_baseline(uint8_t *__restrict__ dst, const uint16_t
*__restrict__ src, size_t bytes) {
  uint8_t *end_dst = dst + bytes;
  do{
     *dst++ = *src++ >> 8;
  } while(dst < end_dst);
}

https://godbolt.org/g/yoJZ3C
gcc -O3  auto-vectorizes to this inner loop:

.L5:
        movdqa  (%rdx,%rax,2), %xmm0
        movdqa  16(%rdx,%rax,2), %xmm1
        psrlw   $8, %xmm0
        pand    %xmm2, %xmm0             # Redundant with the shift
        psrlw   $8, %xmm1
        pand    %xmm2, %xmm1             # Redundant with the shift
        packuswb        %xmm1, %xmm0
        movups  %xmm0, (%rcx,%rax)
        addq    $16, %rax
        cmpq    %rsi, %rax
        jne     .L5

This is mostly good, but the PAND instructions are redundant, because psrlw by
8 already leaves the high byte of each 16-bit element zeroed.

The same extra AND is present when auto-vectorizing for AVX2 (but not AVX512,
where it uses a different strategy.)  Other than that, the AVX2 vectorization
strategy looks very good (packus ymm, then vpermq to fix the result).

If the input is 32B-aligned (or 64B aligned for AVX2), one of the load+shifts
can be *replaced* with an AND + unaligned load offset by -1.  This avoids a
bottleneck on shift throughput (at least with unrolling it does; without
unrolling we bottleneck on the front-end except on Ryzen).  It's even better
with AVX, because load+AND can fold into one instruction.

See https://stackoverflow.com/a/46477080/224132 for more details.

This C source produces the inner loop that I think should be very good across
K10, Bulldozer, Ryzen,  Nehalem, Sandybridge, HSW/SKL, Jaguar, Atom, and
Silvermont.  (With SSE2 or AVX.)  i.e. this should be great for tune=generic
after reaching a 32B boundary.

Not great on Core2 or K8 where non-cache-line-crossing movdqu costs more.

// take both args as uint8_t* so we can offset by 1 byte to replace a shift
with an AND
// if src is 32B-aligned, we never have cache-line splits
void pack_high8_alignhack(uint8_t *restrict dst, const uint8_t *restrict src,
size_t bytes) {
  uint8_t *end_dst = dst + bytes;
  do{
     __m128i v0 = _mm_loadu_si128((__m128i*)src);  // this load should be
aligned
     __m128i v1_offset = _mm_loadu_si128(1+(__m128i*)(src-1));
     v0 = _mm_srli_epi16(v0, 8);
     __m128i v1 = _mm_and_si128(v1_offset, _mm_set1_epi16(0x00FF));
     __m128i pack = _mm_packus_epi16(v0, v1);
     _mm_storeu_si128((__m128i*)dst, pack);
     dst += 16;
     src += 32;  // 32 bytes
  } while(dst < end_dst);
}
>From gcc-bugs-return-576768-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 21:17:29 2017
Return-Path: <gcc-bugs-return-576768-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 99635 invoked by alias); 28 Sep 2017 21:17: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 93775 invoked by uid 48); 28 Sep 2017 21:17:25 -0000
From: "manu at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/58589] diagnostics: missing proper file:line on C++ compilation error
Date: Thu, 28 Sep 2017 21:17:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: enhancement
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-58589-4-s0UCfjGyrW@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-58589-4@http.gcc.gnu.org/bugzilla/>
References: <bug-58589-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02797.txt.bz2
Content-length: 469

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

--- Comment #5 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #4)
> There's nothing showing the location of the "a = a" expression that requires
> the deleted Y::operator=(const Y&).

IMHO, the problem is the instantiation trace:

> j.cc:10:8:   required from here

does not show any useful location. It should show the location of "a = a"
>From gcc-bugs-return-576769-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 21:19:37 2017
Return-Path: <gcc-bugs-return-576769-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 76122 invoked by alias); 28 Sep 2017 21:19: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 70194 invoked by uid 55); 28 Sep 2017 21:19:33 -0000
From: "paolo at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79488] [7/8 Regression] ICE from lambda that has invalid return type
Date: Thu, 28 Sep 2017 21:19:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords: error-recovery
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79488-4-AJxCXLwbII@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79488-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79488-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02798.txt.bz2
Content-length: 508

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

--- Comment #5 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Thu Sep 28 21:18:36 2017
New Revision: 253270

URL: https://gcc.gnu.org/viewcvs?rev=253270&root=gcc&view=rev
Log:
2017-09-28  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/79488
        * g++.dg/cpp0x/lambda/lambda-ice22.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ice22.C
Modified:
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-576770-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 21:36:02 2017
Return-Path: <gcc-bugs-return-576770-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 38115 invoked by alias); 28 Sep 2017 21:36: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 36505 invoked by uid 48); 28 Sep 2017 21:35:58 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79488] [7 Regression] ICE from lambda that has invalid return type
Date: Thu, 28 Sep 2017 21:36:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords: 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: 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-79488-4-bVzeeLNsUU@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79488-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79488-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02799.txt.bz2
Content-length: 151

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

--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I see no need to keep it open.
>From gcc-bugs-return-576771-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 21:38:38 2017
Return-Path: <gcc-bugs-return-576771-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 79343 invoked by alias); 28 Sep 2017 21:38:37 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 73925 invoked by uid 48); 28 Sep 2017 21:38:33 -0000
From: "manu at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82354] semi-colon instead of comma in parameter list produces confusing diagnostics
Date: Thu, 28 Sep 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: 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: NEW
X-Bugzilla-Resolution:
X-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-82354-4-ftArUhusmp@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82354-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82354-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02800.txt.bz2
Content-length: 1767

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

Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:

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

--- Comment #3 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
For the location problem:

  if (pedantic && !current_scope->warned_forward_parm_decls)
    {
      pedwarn (input_location, OPT_Wpedantic,
               "ISO C forbids forward parameter declarations");
      current_scope->warned_forward_parm_decls = true;
    }

versus

          /* Check for forward decls that never got their actual decl.  */
          if (TREE_ASM_WRITTEN (decl))
            error_at (b->locus,
                      "parameter %q+D has just a forward declaration", decl);

by the way %+D overrides b->locus, so something is wrong above. I see quite a
few cases under c/.

At the time we warn, we don't know of this is a typo, we have to assume that
the code is correct (and perhaps give a warning). We only know that something
is wrong by the time we finish parsing all parameters. However, after the
error, we could assume that the forward declaration was an actual definition
(assume , instead of ;) to avoid the cascade of errors.

Perhaps it would be possible to delay the warning up to the point where we will
emit (or not) an error. Then, if there is an error, don't give a warning and
suggest ';'. If there is no error, give (or not) the warning and don't suggest
anything.


Besides, I still think that we should adopt the wording of clang and say:

"parameter forward declarations are a GNU extension"
>From gcc-bugs-return-576772-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 21:48:32 2017
Return-Path: <gcc-bugs-return-576772-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 60801 invoked by alias); 28 Sep 2017 21:48: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 57494 invoked by uid 48); 28 Sep 2017 21:48:28 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79488] [7 Regression] ICE from lambda that has invalid return type
Date: Thu, 28 Sep 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: 7.0.1
X-Bugzilla-Keywords: error-recovery
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: 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-79488-4-wIV4mCBLUT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79488-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79488-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02801.txt.bz2
Content-length: 491

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

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

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

--- Comment #7 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Agreed.
>From gcc-bugs-return-576773-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 21:48:33 2017
Return-Path: <gcc-bugs-return-576773-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 61285 invoked by alias); 28 Sep 2017 21:48: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 58462 invoked by uid 48); 28 Sep 2017 21:48:28 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/54367] [meta-bug] lambda expressions
Date: Thu, 28 Sep 2017 21:48:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: dep_changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.8.0
X-Bugzilla-Keywords: meta-bug
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-54367-4-rQWDagLgif@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-54367-4@http.gcc.gnu.org/bugzilla/>
References: <bug-54367-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02802.txt.bz2
Content-length: 487

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

Bug 79488 Summary: [7 Regression] ICE from lambda that has invalid return type
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79488

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
>From gcc-bugs-return-576774-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 21:49:34 2017
Return-Path: <gcc-bugs-return-576774-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 122894 invoked by alias); 28 Sep 2017 21:49: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 118970 invoked by uid 48); 28 Sep 2017 21:49:30 -0000
From: "manu at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug preprocessor/65834] give error for #if with no expression at the previous location
Date: Thu, 28 Sep 2017 21:49:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: preprocessor
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: enhancement
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-65834-4-BpYE7gobBC@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-65834-4@http.gcc.gnu.org/bugzilla/>
References: <bug-65834-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02803.txt.bz2
Content-length: 775

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

--- Comment #2 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #1)
> Maybe someone might want to put something else after TEST.  I think both are
> correct to warn.  clang error location might be more useful in some cases
> but wrong in others.  Likewise the way GCC is correct for some cases but
> wrong for others.  The biggest question is which happens more often in real
> life.  I don't have any thoughts on that one.

Note that Clang gives the same location as GCC. My suggestion is to improve
over clang to show the macro value as empty. If one adds something after TEST,
then the error (and locations) would be totally different, which is ok.
>From gcc-bugs-return-576775-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 21:51:43 2017
Return-Path: <gcc-bugs-return-576775-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 52981 invoked by alias); 28 Sep 2017 21: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 50348 invoked by uid 48); 28 Sep 2017 21:51:38 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/64339] reject unsafe options in pragma GCC optimize
Date: Thu, 28 Sep 2017 21:51:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: accepts-invalid, 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-64339-4-5eU911iLbC@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64339-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64339-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02804.txt.bz2
Content-length: 1129

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

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

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

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Manuel López-Ibáñez from comment #0)
> Some options are known to be unsafe to set via pragma GCC optimize. See:
> https://sourceware.org/ml/libc-alpha/2014-12/msg00597.html and
> https://sourceware.org/ml/libc-alpha/2014-12/msg00599.html
> 
> It would be better to add a flag to the *.opt files to mark safe options
> explicitly, such that specifying any option that is not safe produces a
> fatal error.

Taking Joseph's comments in the linked thread as confirmation.
>From gcc-bugs-return-576776-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 21:57:04 2017
Return-Path: <gcc-bugs-return-576776-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 85030 invoked by alias); 28 Sep 2017 21:57:04 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 83354 invoked by uid 48); 28 Sep 2017 21:56:59 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/65011] misleading error message for target attribute
Date: Thu, 28 Sep 2017 21:57:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: 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-65011-4-4wf0tj8A8x@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-65011-4@http.gcc.gnu.org/bugzilla/>
References: <bug-65011-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02805.txt.bz2
Content-length: 624

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

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

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

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed that gcc errors on your second example but not your first.
>From gcc-bugs-return-576778-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 22:12:21 2017
Return-Path: <gcc-bugs-return-576778-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 87989 invoked by alias); 28 Sep 2017 22:12:21 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 85760 invoked by uid 48); 28 Sep 2017 22:12:17 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/47781] warnings from custom printf format specifiers
Date: Thu, 28 Sep 2017 22:12:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 4.4.5
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: cc
Message-ID: <bug-47781-4-DYSRnlgAfX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-47781-4@http.gcc.gnu.org/bugzilla/>
References: <bug-47781-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02807.txt.bz2
Content-length: 454

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |drazen.kacar at tereo dot hr

--- Comment #17 from Eric Gallager <egallager at gcc dot gnu.org> ---
*** Bug 78183 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-576777-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 22:12:21 2017
Return-Path: <gcc-bugs-return-576777-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 87872 invoked by alias); 28 Sep 2017 22:12: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 85590 invoked by uid 48); 28 Sep 2017 22:12:16 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/78183] Silence warnings about alternate forms of custom format specifiers
Date: Thu, 28 Sep 2017 22:12:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 5.4.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: enhancement
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-78183-4-eFhWVcvL9a@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78183-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78183-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02806.txt.bz2
Content-length: 587

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

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> ---
Dup of bug 47781

*** This bug has been marked as a duplicate of bug 47781 ***
>From gcc-bugs-return-576779-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 22:14:58 2017
Return-Path: <gcc-bugs-return-576779-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 91996 invoked by alias); 28 Sep 2017 22:14: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 90172 invoked by uid 48); 28 Sep 2017 22:14:54 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/78502] Analyze 'final'/'override' even for uninstantiated class templates
Date: Thu, 28 Sep 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: c++
X-Bugzilla-Version: 6.2.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: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-78502-4-zIgp016lkW@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78502-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78502-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02808.txt.bz2
Content-length: 614

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-09-28
                 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 errors out and gcc doesn't even warn.
>From gcc-bugs-return-576780-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 22:25:00 2017
Return-Path: <gcc-bugs-return-576780-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 20329 invoked by alias); 28 Sep 2017 22:25: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 11146 invoked by uid 48); 28 Sep 2017 22:24:56 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug preprocessor/79346] -Wundef should not warn for standard macros
Date: Thu, 28 Sep 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: preprocessor
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-79346-4-T6yGGYOELk@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79346-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79346-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02809.txt.bz2
Content-length: 698

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

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

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

--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed, although it's pretty easy to work around, just write:

#if defined(__STDC_VERSION__) && __STDC_VERSION__ < 199901L
#endif

instead.
>From gcc-bugs-return-576781-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 22:33:30 2017
Return-Path: <gcc-bugs-return-576781-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 113872 invoked by alias); 28 Sep 2017 22:33:30 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 107163 invoked by uid 55); 28 Sep 2017 22:33:25 -0000
From: "qing.zhao at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81357] Extra mov for zero extend of add
Date: Thu, 28 Sep 2017 22:33:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization, ra
X-Bugzilla-Severity: normal
X-Bugzilla-Who: qing.zhao at oracle dot com
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: qing.zhao at oracle dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81357-4-itPZkbrzGn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81357-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81357-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02810.txt.bz2
Content-length: 622

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

--- Comment #8 from Qing Zhao <qing.zhao at oracle dot com> ---
> 
> I don't think there is an easy fix for this example. The compiler believes
> there are 2 distinct values so it uses 2 registers irrespectively of the order
> of the mov and uxtw.

then, why when there is NO -fschedule-insns, i.e, when compiled with -O, the
assembly
does not have the additional “mov” insn:
***/home/qinzhao/Install/latest/bin/gcc -O t.c
test1:
        add     w0, w0, 1
        uxtw    x2, w0
        adrp    x1, d
        str     x2, [x1, #:lo12:d]
        ret
>From gcc-bugs-return-576782-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 22:38:04 2017
Return-Path: <gcc-bugs-return-576782-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 107628 invoked by alias); 28 Sep 2017 22:38:03 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 101358 invoked by uid 48); 28 Sep 2017 22:37:59 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81357] Extra mov for zero extend of add
Date: Thu, 28 Sep 2017 22:38:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization, ra
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pinskia at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: qing.zhao at oracle dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81357-4-cD3vOKNoVO@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81357-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81357-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02811.txt.bz2
Content-length: 920

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

--- Comment #9 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Qing Zhao from comment #8)
> > 
> > I don't think there is an easy fix for this example. The compiler believes
> > there are 2 distinct values so it uses 2 registers irrespectively of the order
> > of the mov and uxtw.
> 
> then, why when there is NO -fschedule-insns, i.e, when compiled with -O, the
> assembly
> does not have the additional “mov” insn:
> ***/home/qinzhao/Install/latest/bin/gcc -O t.c
> test1:
> 	add	w0, w0, 1
> 	uxtw	x2, w0
> 	adrp	x1, d
> 	str	x2, [x1, #:lo12:d]
> 	ret

But there is an extra zero extend there instead.  Again "uxtw x2, w0" and "mov
w2, w0" for aarch64 are the same exact instruction (same encoding even; just
different aliases for the same instruction); used as uxtw to show it was an
explicit zero extend in the RTL.
>From gcc-bugs-return-576783-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 23:08:33 2017
Return-Path: <gcc-bugs-return-576783-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 33187 invoked by alias); 28 Sep 2017 23:08:32 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 15722 invoked by uid 48); 28 Sep 2017 23:08:28 -0000
From: "mkuvyrkov at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/43725] Poor instructions selection, scheduling and registers allocation for ARM NEON intrinsics
Date: Thu, 28 Sep 2017 23:08:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 4.5.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: mkuvyrkov at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: 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-43725-4-MjLk2u6xfc@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-43725-4@http.gcc.gnu.org/bugzilla/>
References: <bug-43725-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02812.txt.bz2
Content-length: 354

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

Maxim Kuvyrkov <mkuvyrkov at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |UNCONFIRMED
     Ever confirmed|1                           |0
>From gcc-bugs-return-576784-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 23:29:03 2017
Return-Path: <gcc-bugs-return-576784-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 60019 invoked by alias); 28 Sep 2017 23: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 57453 invoked by uid 48); 28 Sep 2017 23:28:58 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug preprocessor/49928] Only workaround for "-Wundef" is "defined(Macro) && Macro", but it is undefined behavior?
Date: Thu, 28 Sep 2017 23:29:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: preprocessor
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-49928-4-TXeaSSOitz@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-49928-4@http.gcc.gnu.org/bugzilla/>
References: <bug-49928-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02813.txt.bz2
Content-length: 1347

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

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Johannes Schaub from comment #0)
> It appears that to inhibit a warning about using an undefined macro
> identifier, one has to employ the following work-around
> 
>     #define FOO BAR
>     #if FOO // warns about 'BAR'
> 
> Instead:
> 
>     #define FOO defined BAR && BAR 
>     #if FOO

I don't think a new GCC-specific builtin just to avoid an optional warning is a
good idea.

It seems to me that a better workaround that doesn't involve undefined
behaviour, and is much simpler to understand, would be to simply ensure that
BAR is always defined:

#define BAR 0
#define FOO BAR

If WebKit wants to be able to compile cleanly with -Wundef then they should
ensure all macros are defined, not create nasty hacks using undefined
behaviour.

So e.g.

// define everything to 0 initially
#define WTF_PLATFORM_CHROMIUM 0
#define WTF_PLATFORM_QT 0
#define WTF_PLATFORM_MAC 0

#if defined(BUILDING_CHROMIUM__)
# undef WTF_PLATFORM_CHROMIUM
# define WTF_PLATFORM_CHROMIUM 1
#elif ...


Alternatively, it would be nice to use:

#pragma GCC diagnostic ignored "-Wundef"

to suppress the warnings in code bases that are (by design) not compatible with
-Wundef ... unfortunately that doesn't work (PR 53431).
>From gcc-bugs-return-576785-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 23:36:24 2017
Return-Path: <gcc-bugs-return-576785-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 55839 invoked by alias); 28 Sep 2017 23: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 53670 invoked by uid 48); 28 Sep 2017 23:36:20 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/47781] warnings from custom printf format specifiers
Date: Thu, 28 Sep 2017 23: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.4.5
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-47781-4-VoUeszgQq6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-47781-4@http.gcc.gnu.org/bugzilla/>
References: <bug-47781-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02814.txt.bz2
Content-length: 1270

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

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

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

--- Comment #18 from Martin Sebor <msebor at gcc dot gnu.org> ---
The Linux kernel also has a bunch of printf format extensions that GCC doesn't
know anything about:
https://www.kernel.org/doc/Documentation/printk-formats.txt.  The extensions
take the form of a suffix to the %p directive and take a pointer argument so
the GCC format checker treats them all as a plain old %p but the sprintf
optimization pass punts when it sees a %p because it doesn't know how much
output it might produce (largely because of the Linux kernel extensions, but
partly also because each OS has its own slightly different format even for
plain %p and it was thought to be simpler to punt than to maintain a database
of formats for all supported systems).  It would be nice if there were an easy
way to describe these extensions not just for the benefit of the format checker
but also so that the sprintf pass could do its own thing (i.e., check for
buffer overflow).
>From gcc-bugs-return-576786-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 23:42:51 2017
Return-Path: <gcc-bugs-return-576786-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 40189 invoked by alias); 28 Sep 2017 23:42: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 37807 invoked by uid 48); 28 Sep 2017 23:42:47 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug preprocessor/49928] Only workaround for "-Wundef" is "defined(Macro) && Macro", but it is undefined behavior?
Date: Thu, 28 Sep 2017 23:42:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: preprocessor
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-49928-4-HBRHUPd3SS@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-49928-4@http.gcc.gnu.org/bugzilla/>
References: <bug-49928-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02815.txt.bz2
Content-length: 937

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

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Or to put it another way, the premise of this bug:

   Only workaround for "-Wundef" is "defined(Macro) && Macro"

is false. There are other workarounds.

Another one is to get rid of the "clever" PLATFORM(QT) macros and just write
the tests out in full:

#if (defined(WTF_PLATFORM_MAC) && WTF_PLATFORM_MAC) \
  || (defined(WTF_PLATFORM_QT) && WTF_PLATFORM_QT \
      && defined(WTF_USE_QTKIT) && WTF_USE_QTKIT)


Another one is to use the fact the macro is defined as the condition, and not
have a two-part condition (defined *and* non-zero):

#if defined(WTF_PLATFORM_MAC) \
  || (defined(WTF_PLATFORM_QT) && defined(WTF_USE_QTKIT))


The problem is the idiom used in the WebKit code, and adding a new builtin is
not the right solution to that problem. A new builtin wouldn't help for older
compilers anyway.
>From gcc-bugs-return-576788-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 23:57:31 2017
Return-Path: <gcc-bugs-return-576788-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 122409 invoked by alias); 28 Sep 2017 23:57:31 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 120319 invoked by uid 48); 28 Sep 2017 23:57:27 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug preprocessor/79750] -Wimplicit-fallthrough= comment detection gets confused by #if
Date: Thu, 28 Sep 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: preprocessor
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-79750-4-h8HsfTCWks@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79750-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79750-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02817.txt.bz2
Content-length: 587

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

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> ---
Dup of bug 77817

*** This bug has been marked as a duplicate of bug 77817 ***
>From gcc-bugs-return-576789-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 23:57:31 2017
Return-Path: <gcc-bugs-return-576789-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 122649 invoked by alias); 28 Sep 2017 23:57:31 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 120663 invoked by uid 48); 28 Sep 2017 23:57:28 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/77817] -Wimplicit-fallthrough: cpp directive renders FALLTHRU comment ineffective
Date: Thu, 28 Sep 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: 7.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: cc
Message-ID: <bug-77817-4-GXNemSjbMS@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-77817-4@http.gcc.gnu.org/bugzilla/>
References: <bug-77817-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02818.txt.bz2
Content-length: 455

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sgunderson at bigfoot dot com

--- Comment #14 from Eric Gallager <egallager at gcc dot gnu.org> ---
*** Bug 79750 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-576787-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 23:57:19 2017
Return-Path: <gcc-bugs-return-576787-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 117993 invoked by alias); 28 Sep 2017 23:57: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 116059 invoked by uid 48); 28 Sep 2017 23:57:16 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/68230] Unused function parameters not reported by -Wunused-parameter when only used recursively.
Date: Thu, 28 Sep 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: 5.2.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-68230-4-WRs5uAXVS1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-68230-4@http.gcc.gnu.org/bugzilla/>
References: <bug-68230-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02816.txt.bz2
Content-length: 459

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

--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Joshua T, Fisher from comment #5)
> and my blog where I first encountered this in a closed source codebase:
> 
> http://www.nullterminatedstrings.com/c++/recursive-warning

I'm a bit more persuaded having read this. If it points out you forgot to use
it (for anything except the recursion) that could help find real bugs.
>From gcc-bugs-return-576791-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 23:59:51 2017
Return-Path: <gcc-bugs-return-576791-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 117032 invoked by alias); 28 Sep 2017 23: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 115186 invoked by uid 48); 28 Sep 2017 23:59:48 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug preprocessor/78497] compiling with -save-temps adds -Wimplicit-fallthrough warnings
Date: Thu, 28 Sep 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: preprocessor
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-78497-4-stg1aerLgI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78497-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78497-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02820.txt.bz2
Content-length: 445

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

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

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

--- Comment #4 from Eric Gallager <egallager at gcc dot gnu.org> ---
*** Bug 81582 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-576790-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 28 23:59:51 2017
Return-Path: <gcc-bugs-return-576790-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 116855 invoked by alias); 28 Sep 2017 23: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 114925 invoked by uid 48); 28 Sep 2017 23:59:47 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/81582] -Wimplicit-fallthrough= wrong warning with -save-temps
Date: Thu, 28 Sep 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: other
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: diagnostic, rejects-valid
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-81582-4-jAHawPTW5a@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81582-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81582-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02819.txt.bz2
Content-length: 588

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

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

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

--- Comment #10 from Eric Gallager <egallager at gcc dot gnu.org> ---
Dup of bug 78497

*** This bug has been marked as a duplicate of bug 78497 ***
>From gcc-bugs-return-576792-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 00:02:08 2017
Return-Path: <gcc-bugs-return-576792-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 112942 invoked by alias); 29 Sep 2017 00:02: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 110808 invoked by uid 48); 29 Sep 2017 00:02:04 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug translation/79618] prevent missing space in multiline string literals
Date: Fri, 29 Sep 2017 00:02:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: translation
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: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: 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-79618-4-7tscFaYcCd@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79618-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79618-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02821.txt.bz2
Content-length: 638

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-09-29
                 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 David Malcolm from comment #2)
> Good idea.
> 

So, confirmed then.
>From gcc-bugs-return-576793-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 00:06:36 2017
Return-Path: <gcc-bugs-return-576793-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 90641 invoked by alias); 29 Sep 2017 00: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 88562 invoked by uid 48); 29 Sep 2017 00:06:32 -0000
From: "marc.mutz at kdab dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/77817] -Wimplicit-fallthrough: cpp directive renders FALLTHRU comment ineffective
Date: Fri, 29 Sep 2017 00: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
X-Bugzilla-Severity: minor
X-Bugzilla-Who: marc.mutz at kdab dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-77817-4-Z6YJWxLbPc@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-77817-4@http.gcc.gnu.org/bugzilla/>
References: <bug-77817-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02822.txt.bz2
Content-length: 876

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

--- Comment #15 from Marc Mutz <marc.mutz at kdab dot com> ---
(In reply to Jakub Jelinek from comment #13)
> (In reply to Marc Mutz from comment #12)
> > Is replacing a matching comment with __attribute__(fallthrough)) so
> > complicated as to make this a wontfix?
> 
> It is not really possible.
> __attribute__((fallthrough)) has precise rules on where it can appear, while
> /* FALLTHRU */ comments, being comments, can appear anywhere.  Especially
> with -Wimplicit-fallthrough=1 when all comments are considered fallthru
> comments...

I don't buy this. You don't need to use the 'official' attribute. You can
invent an internal one, say __attribute__((__replaced_fallthrough_comment)),
which does not have the limitations of [[fallthrough]]. It's just a way to
preserve a comment over the preprocessor stage.
>From gcc-bugs-return-576794-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 00:10:01 2017
Return-Path: <gcc-bugs-return-576794-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 37219 invoked by alias); 29 Sep 2017 00:10:01 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 35302 invoked by uid 48); 29 Sep 2017 00:09:53 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/80026] Regression: passing unresolved function pointer to variadic function template yields "too many arguments" error
Date: Fri, 29 Sep 2017 00:10:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0.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 cf_known_to_work everconfirmed cf_known_to_fail
Message-ID: <bug-80026-4-u4z0LRpxRx@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80026-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80026-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02823.txt.bz2
Content-length: 1721

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-09-29
                 CC|                            |egallager at gcc dot gnu.org
      Known to work|                            |4.4.7
     Ever confirmed|0                           |1
      Known to fail|                            |4.0.1, 4.2.1, 4.6.4, 7.0,
                   |                            |8.0

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed that the message is as you say with current gcc:

$ /usr/local/bin/g++ -c -Wall -Wextra -pedantic 80026.cc
80026.cc: In function ‘int main()’:
80026.cc:8:6: error: too many arguments to function ‘void f(S ...) [with S =
{}]’
  f(&g);
      ^
80026.cc:5:6: note: declared here
 void f(S...){}
      ^
$

With a really old gcc such as 4.2.1 the message is also bad:

$ /usr/bin/g++-4.2 -c -Wall -Wextra -pedantic 80026.cc
80026.cc:4: error: expected identifier before ‘...’ token
80026.cc:4: error: expected ‘>’ before ‘...’ token
80026.cc:5: error: variable or field ‘f’ declared void
80026.cc:5: error: ‘S’ was not declared in this scope
80026.cc: In function ‘int main()’:
80026.cc:8: error: ‘f’ was not declared in this scope
$

...so I'm not sure when exactly the message started being the "good" one seen
with 4.4.7.
>From gcc-bugs-return-576795-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 00:14:12 2017
Return-Path: <gcc-bugs-return-576795-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 6257 invoked by alias); 29 Sep 2017 00:14: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 130873 invoked by uid 48); 29 Sep 2017 00:14:08 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug preprocessor/80070] -Wmisleading-indentation disabled on -E (or when using distcc)
Date: Fri, 29 Sep 2017 00:14:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: preprocessor
X-Bugzilla-Version: 6.3.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-80070-4-SHLQc9idp6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80070-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80070-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02824.txt.bz2
Content-length: 709

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

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 David Malcolm from comment #1)
> (I have a feeling there's a dup about this somewhere)

I'm gonna say it's a dup of bug 71637

*** This bug has been marked as a duplicate of bug 71637 ***
>From gcc-bugs-return-576796-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 00:14:12 2017
Return-Path: <gcc-bugs-return-576796-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 6520 invoked by alias); 29 Sep 2017 00:14: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 1405 invoked by uid 48); 29 Sep 2017 00:14:09 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/71637] -Wmisleading-indentation only triggered when using integrated cpp
Date: Fri, 29 Sep 2017 00:14:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 6.1.1
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-71637-4-krsQ0CXdPN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-71637-4@http.gcc.gnu.org/bugzilla/>
References: <bug-71637-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02825.txt.bz2
Content-length: 449

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jan.smets at nokia dot com

--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
*** Bug 80070 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-576797-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 00:17:01 2017
Return-Path: <gcc-bugs-return-576797-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 27654 invoked by alias); 29 Sep 2017 00: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 25511 invoked by uid 48); 29 Sep 2017 00:16:57 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug translation/80188] calls.c: reason argument to maybe_complain_about_tail_call must be marked for translation
Date: Fri, 29 Sep 2017 00:17: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, easyhack
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: keywords bug_status cf_reconfirmed_on cc everconfirmed bug_severity
Message-ID: <bug-80188-4-q5d1Z4UcuH@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80188-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80188-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02826.txt.bz2
Content-length: 730

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |easyhack
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-09-29
                 CC|                            |egallager at gcc dot gnu.org
     Ever confirmed|0                           |1
           Severity|normal                      |trivial

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed that calls.c still contains the code in question.
>From gcc-bugs-return-576798-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 00:19:43 2017
Return-Path: <gcc-bugs-return-576798-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 35117 invoked by alias); 29 Sep 2017 00:19: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 32744 invoked by uid 48); 29 Sep 2017 00:19:39 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug driver/80271] Support environment variable CLICOLOR_FORCE to enable -fdiagnostics-color
Date: Fri, 29 Sep 2017 00:19:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: driver
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: diagnostic
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-80271-4-lkke1hdy0m@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80271-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80271-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02827.txt.bz2
Content-length: 547

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

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> ---
Seems like the trend in gcc lately has been against adding support for new
environment variables... leaving for someone else to confirm or dis-confirm...
>From gcc-bugs-return-576799-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 00:22:08 2017
Return-Path: <gcc-bugs-return-576799-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 41117 invoked by alias); 29 Sep 2017 00:22:08 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 34516 invoked by uid 48); 29 Sep 2017 00:22:03 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/80026] Regression: passing unresolved function pointer to variadic function template yields "too many arguments" error
Date: Fri, 29 Sep 2017 00:22:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cf_known_to_fail
Message-ID: <bug-80026-4-1JkohW9xrV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80026-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80026-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02828.txt.bz2
Content-length: 552

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|4.0.1, 4.2.1                |

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Eric Gallager from comment #1)
> With a really old gcc such as 4.2.1 the message is also bad:

Because 4.2 doesn't support variadic templates, so it sees it as a basic syntax
error.
>From gcc-bugs-return-576801-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 00:24:39 2017
Return-Path: <gcc-bugs-return-576801-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 53962 invoked by alias); 29 Sep 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 50421 invoked by uid 48); 29 Sep 2017 00:24:35 -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: Fri, 29 Sep 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: 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: cc
Message-ID: <bug-80151-4-CkhaaZ1kJe@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-09/txt/msg02830.txt.bz2
Content-length: 448

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

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

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

--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
*** Bug 79292 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-576800-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 00:24:37 2017
Return-Path: <gcc-bugs-return-576800-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 52660 invoked by alias); 29 Sep 2017 00:24:36 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 22755 invoked by uid 48); 29 Sep 2017 00:24:15 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79292] address of string constant
Date: Fri, 29 Sep 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: 7.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: enhancement
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-79292-4-53QXloe88b@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79292-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79292-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02829.txt.bz2
Content-length: 645

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

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> ---
Dup of bug 80151 which, while newer, has a suggested name for the warning.

*** This bug has been marked as a duplicate of bug 80151 ***
>From gcc-bugs-return-576802-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 00:27:02 2017
Return-Path: <gcc-bugs-return-576802-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 1967 invoked by alias); 29 Sep 2017 00:27:02 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 126965 invoked by uid 48); 29 Sep 2017 00:26:58 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79817] GCC does not recognize [[deprecated]] attribute for namespace
Date: Fri, 29 Sep 2017 00:27:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: 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-79817-4-Ct11WXWCyP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79817-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79817-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02831.txt.bz2
Content-length: 566

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-09-29
                 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-576803-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 00:30:40 2017
Return-Path: <gcc-bugs-return-576803-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 3531 invoked by alias); 29 Sep 2017 00:30: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 3223 invoked by uid 48); 29 Sep 2017 00:30:34 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/80511] [8 Regression] gcc.dg/Wstrict-overflow-18.c
Date: Fri, 29 Sep 2017 00: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: diagnostic, xfail
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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-80511-4-mUifVwDDHJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80511-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80511-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02832.txt.bz2
Content-length: 1027

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-09-29
                 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 Marc Glisse from comment #0)
> I will soon commit a patch that breaks (and xfails)
> gcc.dg/Wstrict-overflow-18.c, see
> https://gcc.gnu.org/ml/gcc-patches/2017-04/msg00986.html. As asked by
> Martin, this PR is here to track this regression.
> 
> Most likely this will be solved by Richard (or someone else) killing
> -Wstrict-overflow.

Confirmed, although my preferred fix would be to keep and improve
-Wstrict-overflow instead of killing it completely.
>From gcc-bugs-return-576804-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 00:31:21 2017
Return-Path: <gcc-bugs-return-576804-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 5075 invoked by alias); 29 Sep 2017 00: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 4475 invoked by uid 55); 29 Sep 2017 00:31:13 -0000
From: "ian at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/67165] please enable libbacktrace to work with compressed debug sections
Date: Fri, 29 Sep 2017 00:31: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: 5.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: ian at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-67165-4-zAXvj7kWPU@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67165-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67165-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02833.txt.bz2
Content-length: 2687

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

--- Comment #3 from ian at gcc dot gnu.org <ian at gcc dot gnu.org> ---
Author: ian
Date: Fri Sep 29 00:30:35 2017
New Revision: 253275

URL: https://gcc.gnu.org/viewcvs?rev=253275&root=gcc&view=rev
Log:
        PR other/67165
        * elf.c (__builtin_prefetch): Define if not __GNUC__.
        (unlikely): Define.
        (SHF_UNCOMPRESSED, ELFCOMPRESS_ZLIB): Define.
        (b_elf_chdr): Define type.
        (enum debug_section): Add ZDEBUG_xxx values.
        (debug_section_names): Add names for new sections.
        (struct debug_section_info): Add compressed field.
        (elf_zlib_failed, elf_zlib_fetch): New static functions.
        (HUFFMAN_TABLE_SIZE, HUFFMAN_VALUE_MASK): Define.
        (HUFFMAN_BITS_SHIFT, HUFFMAN_BITS_MASK): Define.
        (HUFFMAN_SECONDARY_SHIFT): Define.
        (ZDEBUG_TABLE_SIZE): Define.
        (ZDEBUG_TABLE_CODELEN_OFFSET, ZDEBUG_TABLE_WORK_OFFSET): Define.
        (final_next_secondary): New static variable if
        BACKTRACE_GENERATE_FIXED_HUFFMAN_TABLE.
        (elf_zlib_inflate_table): New static function.
        (BACKTRACE_GENERATE_FIXED_HUFFMAN_TABLE): If define, define main
        function to produce fixed Huffman table.
        (elf_zlib_default_table): New static variable.
        (elf_zlib_inflate): New static function.
        (elf_zlib_verify_checksum): Likewise.
        (elf_zlib_inflate_and_verify): Likewise.
        (elf_uncompress_zdebug): Likewise.
        (elf_uncompress_chdr): Likewise.
        (backtrace_uncompress_zdebug): New extern function.
        (elf_add): Look for .zdebug sections and SHF_COMPRESSED debug
        sections, and uncompress them.
        * internal.h (backtrace_compress_zdebug): Declare.
        * ztest.c: New file.
        * configure.ac: Check for -lz and check whether the linker
        supports --compress-debug-sections.
        * Makefile.am (ztest_SOURCES): New variable.
        (ztest_CFLAGS, ztest_LDADD): New variables.
        (check_PROGRAMS): Add ztest.
        (ctestg_SOURCES): New variable.
        (ctestg_CFLAGS, ctestg_LDFLAGS, ctestg_LDADD): New variables.
        (ctesta_SOURCES): New variable.
        (ctesta_CFLAGS, ctesta_LDFLAGS, ctesta_LDADD): New variables.
        (check_PROGRAMS): Add ctestg and ctesta.
        * configure, config.h.in, Makefile.in: Rebuild.

Added:
    trunk/libbacktrace/ztest.c
Modified:
    trunk/libbacktrace/ChangeLog
    trunk/libbacktrace/Makefile.am
    trunk/libbacktrace/Makefile.in
    trunk/libbacktrace/config.h.in
    trunk/libbacktrace/configure
    trunk/libbacktrace/configure.ac
    trunk/libbacktrace/elf.c
    trunk/libbacktrace/internal.h
>From gcc-bugs-return-576805-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 00:33:11 2017
Return-Path: <gcc-bugs-return-576805-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 15551 invoked by alias); 29 Sep 2017 00:33:11 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 13603 invoked by uid 48); 29 Sep 2017 00:33:07 -0000
From: "ian at airs dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/67165] please enable libbacktrace to work with compressed debug sections
Date: Fri, 29 Sep 2017 00:33: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: 5.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: ian at airs 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-67165-4-2B83CGX3zI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67165-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67165-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02834.txt.bz2
Content-length: 425

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

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

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

--- Comment #4 from Ian Lance Taylor <ian at airs dot com> ---
Implemented.
>From gcc-bugs-return-576806-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 00:37:36 2017
Return-Path: <gcc-bugs-return-576806-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 127169 invoked by alias); 29 Sep 2017 00:37:36 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 127091 invoked by uid 48); 29 Sep 2017 00:37:32 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/52763] Warning if compare between enum and non-enum type
Date: Fri, 29 Sep 2017 00: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.3
X-Bugzilla-Keywords: diagnostic
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 see_also
Message-ID: <bug-52763-4-776s4vuaND@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-52763-4@http.gcc.gnu.org/bugzilla/>
References: <bug-52763-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02835.txt.bz2
Content-length: 564

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |egallager at gcc dot gnu.org
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=78736

--- Comment #9 from Eric Gallager <egallager at gcc dot gnu.org> ---
Related to bug 78736
>From gcc-bugs-return-576807-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 00:40:20 2017
Return-Path: <gcc-bugs-return-576807-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 129413 invoked by alias); 29 Sep 2017 00:40: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 129354 invoked by uid 48); 29 Sep 2017 00:40:16 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/80789] Better error for passing lambda with capture as function pointer
Date: Fri, 29 Sep 2017 00:40:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: 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 bug_severity
Message-ID: <bug-80789-4-HhcoySIiCe@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80789-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80789-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02836.txt.bz2
Content-length: 672

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-09-29
                 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> ---
Confirmed that the error message is what you say it is.
>From gcc-bugs-return-576808-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 00:44:29 2017
Return-Path: <gcc-bugs-return-576808-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 124692 invoked by alias); 29 Sep 2017 00: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 124642 invoked by uid 48); 29 Sep 2017 00:44:25 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/81980] Spurious -Wmissing-format-attribute warning in 32-bit mode
Date: Fri, 29 Sep 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.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-81980-4-U9gVxHgTQl@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81980-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81980-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02837.txt.bz2
Content-length: 566

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-09-29
                 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-576809-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 02:30:38 2017
Return-Path: <gcc-bugs-return-576809-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 13888 invoked by alias); 29 Sep 2017 02:30: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 13712 invoked by uid 48); 29 Sep 2017 02:30:28 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/82103] spurious stringop-overflow warning
Date: Fri, 29 Sep 2017 02:30:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: 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-82103-4-QCdd4u9xpY@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82103-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82103-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02838.txt.bz2
Content-length: 901

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-09-29
                 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 Arnd Bergmann from comment #0)
> On a current snapshot (tested with r251683), I get a warning that seems
> unhelpful and probably should not be there.
> 
> This happened in exactly one file from the Linux kernel so far, on any
> 32-bit target

Confirmed that I also get the warning; it also happens on i386 (32-bit, as you
said)
>From gcc-bugs-return-576810-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 02:34:33 2017
Return-Path: <gcc-bugs-return-576810-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 86148 invoked by alias); 29 Sep 2017 02:34:33 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 77622 invoked by uid 48); 29 Sep 2017 02:34:28 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82283] Wrong warning with -Wmissing-field-initializers
Date: Fri, 29 Sep 2017 02: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.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-82283-4-vtqnVDLbbe@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82283-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82283-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02839.txt.bz2
Content-length: 622

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

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

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

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed that I get the same warning for data1 but not for data2.
>From gcc-bugs-return-576811-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 02:36:59 2017
Return-Path: <gcc-bugs-return-576811-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 47791 invoked by alias); 29 Sep 2017 02:36:59 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 47727 invoked by uid 48); 29 Sep 2017 02:36:55 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82295] Two errors produced with private/protected deleted methods
Date: Fri, 29 Sep 2017 02: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: 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-82295-4-eOkrHqegrO@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82295-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82295-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02840.txt.bz2
Content-length: 589

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

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

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

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed that I get both errors.
>From gcc-bugs-return-576812-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 02:40:21 2017
Return-Path: <gcc-bugs-return-576812-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 51066 invoked by alias); 29 Sep 2017 02:40:21 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 50979 invoked by uid 48); 29 Sep 2017 02:40:17 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/58689] Enhance returns_nonnull
Date: Fri, 29 Sep 2017 02:40:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords: diagnostic, missed-optimization
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-58689-4-CrNdzm5YPB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-58689-4@http.gcc.gnu.org/bugzilla/>
References: <bug-58689-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02841.txt.bz2
Content-length: 631

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

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

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

--- Comment #8 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed that -Wsuggest-attribute=returns_nonnull would be nice to have.
>From gcc-bugs-return-576813-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 02:41:03 2017
Return-Path: <gcc-bugs-return-576813-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 52171 invoked by alias); 29 Sep 2017 02:41: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 52063 invoked by uid 55); 29 Sep 2017 02:40:59 -0000
From: "postmaster@openbossa-org.bounceio.net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/58689] Enhance returns_nonnull
Date: Fri, 29 Sep 2017 02:41:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords: diagnostic, missed-optimization
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: postmaster@openbossa-org.bounceio.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-58689-4-LUnUiDV1ji@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-58689-4@http.gcc.gnu.org/bugzilla/>
References: <bug-58689-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02842.txt.bz2
Content-length: 5739

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

--- Comment #9 from postmaster@openbossa-org.bounceio.net ---
   Your email was bounced...
   -------------------------

   ... because something went wrong between you and your recipient.
   Bummer!


   What to do next?
   ----------------

   Well, your specific problem was a *5.1.2 * error.

   Which means you should: Check the "openbossa.org" part of
   "eduardo.abinader@openbossa.org" for misspellings or missing letters.
   If you find an error, correct it in your contacts list or address book
   for next time.

   Or further: It is possible that the domain is temporarily inactive. If
   the spelling looks correct, contact your mail provider and if
   necessary, contact your recipient another way (e.g., phone or text
   message).

   Get more help on 5.1.2 errors here![1]

   Thanks, have a lovely day.

   Yours truly, betterbounces.net[2]

   Rate this email: Helpful[3] :) or... Not Helpful[4] :(

   Advertisement | Prefer no ads?[5]

   Learn more about RevenueStripe... [6]

   [7]

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

   [IMAGE] [IMAGE] [IMAGE] [IMAGE]

   © 2017 betterbounces.net, All rights reserved. Privacy[8]

   [IMAGE] [IMAGE] [IMAGE] [IMAGE] [IMAGE]

   1.
https://a.b-io.me/c/Y1lM9w9S1Kcyhmff9PUym3lzb4DFXoKjbQxPz_NW_WrQaWlkIsfqBNRgrwhzFkMcrwIXvcetvsYWJ_UO3DHOQed9OINurZwrgOmguQxdWigOfr4r8VgwA.Y7khSGqjKpB0hexbO8zzifUKKKjVb0.opsonRY6Ky5dyC560RQkF51r0i2tp95k0dMw9RD4ed6A41gkCqbhBCHFJBDtK.80kzVqqsKJe382PUQ6qAORAjlUhUHm.igTxML5TUtqX1mpQk2CV_OjuI6GxMivZiDFU.4HJeL5IIBmnfzgg0f5UJMfh9mnmmqE6oU7tOxX6A3L3sRW09rVQOnP.Uti3XzDsQRi92uxd6w4E9ogf1q..zvXqwLTR3QUAk_1D5f8BNpdyC560RQkF51r0i2tp95k0dMw9RD4ed6GYKls.oEbv.HBr6C6TKfNhyvdjHNTkIopYnJH5GnY99E3H5G1Qyu_alcKJkHo2n5nJx61f.icYuj3w_ONQBpbA--
   2.
https://a.b-io.me/c/Y1lM9w9S1Kcyhmff9PUym3lzb4DFXoKjbQxPz_NW_WrQaWlkIsfqBNRgrwhzFkMcrwIXvcetvsYWJ_UO3DHOQed9OINurZwrgOmguQxdWigOfr4r8VgwA.Y7khSGqjKpB0hexbO8zzifUKKKjVb0.opsonRY6Ky5dyC560RQkF51r0i2tp95k0dMw9RD4ed6A41gkCqbhBA9u77HxhaLWWuzxU24c.6PSvPW4_8hzbG3AoU3Z2mJ8MY851JGPURbWxWDghqtbyhCAuvLcI3WN3Ca.zo1NwqjQppKoAALG6veqtNQKAsHNgHaaloFpkpt.Afj_gd5XJRN5dVCWHfer_BV6j.QMCVeh_jxc_I0WeA-
   3.
https://a.b-io.me/c/Y1lM9w9S1Kcyhmff9PUym3lzb4DFXoKjbQxPz_NW_WrQaWlkIsfqBNRgrwhzFkMcrwIXvcetvsYWJ_UO3DHOQed9OINurZwrgOmguQxdWigOfr4r8VgwA.Y7khSGqjKpB0hexbO8zzifUKKKjVb0.opsonRY6Ky5dyC560RQkF51r0i2tp95k0dMw9RD4ed6A41gkCqbhBCHFJBDtK.80oNvPvZIUMVGNx7TRWNTJ6hjaFLt8nuAp7h28yBOwk0HAYpHicD4j46HBcg55ibKFuwEvTs0IlXymMWx5pWX0OQPexInewGhQScQYLRDKIPtByT8a__oyyK1H630KHBM75Z5mp0FU.m8ccZUOLRtzKAKNcxgbpC49DF.K_iHE4RwTSVvdmLIBNY7YexqWgPQgytJT9.x.rSqvjRkPT_hUogiR1af3c8qoI0TgWxPRtJKoBd7ao2jHXJY4cBoT7EYdV1LgdAL9V1B5kE_ec.Ubi2W9AVkWfxnd3Ke3BiT6f4z
   4.
https://a.b-io.me/c/Y1lM9w9S1Kcyhmff9PUym3lzb4DFXoKjbQxPz_NW_WrQaWlkIsfqBNRgrwhzFkMcrwIXvcetvsYWJ_UO3DHOQed9OINurZwrgOmguQxdWigOfr4r8VgwA.Y7khSGqjKpB0hexbO8zzifUKKKjVb0.opsonRY6Ky5dyC560RQkF51r0i2tp95k0dMw9RD4ed6A41gkCqbhBCHFJBDtK.80oNvPvZIUMVGNx7TRWNTJ6hjaFLt8nuAp7h28yBOwk0HAYpHicD4j46HBcg55ibKFuwEvTs0IlXymMWx5pWX0OQPexInewGhQScQYLRDKIPtByT8a__oyyK1H630KHBM7.0n5.d.l6aG6Wl7SbaPi9XJrnRYl1RKb8TCc9HmXDcXGkaMPkuMy3SADoRWZqA56BF0EtiS3ceF7LUQG6FJk2W5PfL4MrvkPhBSFZOXn0muTDJaMc_t_ngcr3YxzU5CKKWJyR_Rp2PfRNx_RtUMrvmpXCiZB6Np_ZycetX.4nGLo98PjjUAaWw-
   5.
https://a.b-io.me/c/Y1lM9w9S1Kcyhmff9PUym3lzb4DFXoKjbQxPz_NW_WrQaWlkIsfqBNRgrwhzFkMcrwIXvcetvsYWJ_UO3DHOQed9OINurZwrgOmguQxdWigOfr4r8VgwA.Y7khSGqjKpB0hexbO8zzifUKKKjVb0.opsonRY6Ky5dyC560RQkF51r0i2tp95k0dMw9RD4ed6A41gkCqbhBDd9_35PHtGj5Sx1C.jN8WAg9E1tBhyTYT7c7Qa5SS3MGCzrO3e5BuoNYW13wmSUZHwBeE0T0EWuW.yWq.nhtZE_xFTij9Vjn0SV.3DePyVCUYYrvpW8fMinP0vazLw0vWf_nNJlvMJsQ_BApbaFyFHQEjRvYWPbJa8LDc8bMC3wqb8SjRAIQBXGAXZync0J5FXyOWlwyD2Rms6tQKpecFNSuXgJCLFfKWNoIb0GYIlTdT_Uvk1_yEsBx0dUN3onf5UaNHy06ZA478Xefk3SN8ovGKMNxGig7g1YXJtTFFFZhVUDxQOJGheH0xKvDlspZUSHjjN0VFBhDmYUG3FjSe6YXnra6CJ3PSKFT8MLAwIrGoPqYqXeYqEvwqDVXDQYaMRMCXL_rPPGbAERzfAxWmbc5.5vSO3O7GoniophLYbclqCdYG4L02sJa7KqtEqnX3FlMsGc5v_qR6Ntt5DcBo4Q_Ff1Hlr7qC5AubVwp4npLVx_SJUN89AxsQKPNnb3.3oKGEMt5lYx6EVYZ24p6WFmMWx5pWX0OQPexInewGhQScQYLRDKIPtByT8a__oyyL.aJj3ejOZVbTOGBpQIUGH
   6.
https://a.b-io.me/c/Y1lM9w9S1Kcyhmff9PUym3lzb4DFXoKjbQxPz_NW_WrQaWlkIsfqBNRgrwhzFkMcrwIXvcetvsYWJ_UO3DHOQed9OINurZwrgOmguQxdWigOfr4r8VgwA.Y7khSGqjKpB0hexbO8zzifUKKKjVb0.opsonRY6Ky5dyC560RQkF51r0i2tp95k0dMw9RD4ed6A41gkCqbhBA8mT76ajNsnsOauVjjCcuml4X5YwBlEl6dZ2V3Jl_wI45JYRx0t6UYBR0ENZ5qnbouMcRzT53Dn6is10DW0hMVrEM7wn1jeUKqFO7TsV_gN_AXh4X3RWvKkimG3fNu_Gro_vK9UUPi9iMLK1pKcgqhzOqpIknCK20zXV5AQtYukfRWzw2aATcxjROIM7cpT5XvDR4eOuL3_3A4CONqberBrWMtoC_TfVigF3tqjaMdcljhwGhPsRh1XUuB0Av1XUHmQT55z9RuLZb0BWRZ.Gd3cp7cGJPp.jM-
   7.
https://a.b-io.me/c/Y1lM9w9S1Kcyhmff9PUym3lzb4DFXoKjbQxPz_NW_WrQaWlkIsfqBNRgrwhzFkMcrwIXvcetvsYWJ_UO3DHOQed9OINurZwrgOmguQxdWigOfr4r8VgwA.Y7khSGqjKpB0hexbO8zzifUKKKjVb0.opsonRY6Ky5dyC560RQkF51r0i2tp95k0dMw9RD4ed6A41gkCqbhBB.9wEYfwW4oqfvBdsu39ZZqZ.svNkMV9_vUwGB642HbzOT63GBD7CPAHo_N8.IM6u07t0612GCls_ejWKU_Tiqhn6IJRrCY1DWfW10_3V_np_UM9f6.9VXMDabFjHnSbdo3DF9kAS.kjC2RXdMF.Li51wLwmxn4wmp9HmBSD11ESv9OcT7CjT0fPOJTYbDRrhDZ02FzcHuxB6Ntt5DcBo4Q_Ff1Hlr7qC5AubVwp4npLVx_SJUN89AxsQKPNnb3.3oKGEMt5lYx6EVYZ24p6WFmMWx5pWX0OQPexInewGhQScQYLRDKIPtByT8a__oyyL.aJj3ejOZVbTOGBpQIUGH
   8.
https://a.b-io.me/c/Y1lM9w9S1Kcyhmff9PUym3lzb4DFXoKjbQxPz_NW_WrQaWlkIsfqBNRgrwhzFkMcrwIXvcetvsYWJ_UO3DHOQed9OINurZwrgOmguQxdWigOfr4r8VgwA.Y7khSGqjKpB0hexbO8zzifUKKKjVb0.opsonRY6Ky5dyC560RQkF51r0i2tp95k0dMw9RD4ed6A41gkCqbhBCHFJBDtK.80kzVqqsKJe382PUQ6qAORAj5S0NpB2Zitp2jeqHchIHmHo223kNwGjhD4V.UeWvuoLkC5tXCniektXH5IlQ3z0DGxAo82dvf.egoYQy3mVjHoRVhnbinpYWYxbHmlZfQ5A97Eid7AaFBJxBgtEMog_0HJPxr76jLIv9omPd6M5lVtM4YGlAhQYc-
>From gcc-bugs-return-576814-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 02:42:00 2017
Return-Path: <gcc-bugs-return-576814-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 53356 invoked by alias); 29 Sep 2017 02:42:00 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 53252 invoked by uid 48); 29 Sep 2017 02:41:56 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82299] -Wuseless-cast errors on typed enums used in member data initializers in c++1z
Date: Fri, 29 Sep 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 everconfirmed
Message-ID: <bug-82299-4-AaTPQauDcp@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82299-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82299-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02843.txt.bz2
Content-length: 566

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-09-29
                 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-576815-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 02:46:32 2017
Return-Path: <gcc-bugs-return-576815-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 80573 invoked by alias); 29 Sep 2017 02:46:32 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 80450 invoked by uid 55); 29 Sep 2017 02:46:26 -0000
From: "postmaster@openbossa-org.bounceio.net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/58689] Enhance returns_nonnull
Date: Fri, 29 Sep 2017 02: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: 4.9.0
X-Bugzilla-Keywords: diagnostic, missed-optimization
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: postmaster@openbossa-org.bounceio.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-58689-4-mkmYYw68aa@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-58689-4@http.gcc.gnu.org/bugzilla/>
References: <bug-58689-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02844.txt.bz2
Content-length: 9029

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

--- Comment #10 from postmaster@openbossa-org.bounceio.net ---
   [IMAGE]

   There was a problem delivering your email to:


   eduardo.abinader@openbossa.org


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

   WHAT HAPPENED?

   The domain name of the email address is not valid.

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

   WHAT CAN YOU DO?

   Check the "openbossa.org" part of the email address for misspellings
   or missing letters. (If you find an error, you might need to correct
   it in your contacts list or address book too.)

   If necessary, contact your recipient another way (e.g., phone or text
   message) to confirm their email address.

   Find out more information about this bounce message.[1]

   Learn more about RevenueStripe... [2]

   [3]

   [IMAGE] [IMAGE] [IMAGE] [IMAGE] [IMAGE]
   Advertisement | Prefer no ads?[4]

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

   WHO ARE WE?

   BetterBounces.net works on behalf of various Internet properties to
   give you better information about why your email wasn't delivered. You
   can learn more about us here[5]. You can learn about our privacy
   policies here[6].

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

   YOU MIGHT LIKE

   [7]

   [8]

   [9]

   Learn more about RevenueStripe...[10]

   RATE THIS EMAIL

   Helpful[11] Not Helpful[12]


   © 2017 betterbounces.net, All rights reserved. Get more help[13]

   [IMAGE] [IMAGE] [IMAGE] [IMAGE] [IMAGE]

   1.
https://a.b-io.me/c/Y1lM9w9S1KeX7SWXPn4dzgOzHoT8aQ.gcVzksUNNFlHQaWlkIsfqBNRgrwhzFkMcrwIXvcetvsYWJ_UO3DHOQed9OINurZwrgOmguQxdWig8Hh1mgQFaUDbwmnFI4wq2HWTN_jaXUWK5aYgcgEa4o4psonRY6Ky5dyC560RQkF51r0i2tp95k0dMw9RD4ed6A41gkCqbhBCHFJBDtK.80kzVqqsKJe382PUQ6qAORAjlUhUHm.igTxML5TUtqX1mpQk2CV_OjuI6GxMivZiDFU.4HJeL5IIBmnfzgg0f5UJMfh9mnmmqE6oU7tOxX6A3L3sRW09rVQOnP.Uti3XzDsQRi92uxd6wZ.2iUsaEg3XlIWVbqmKHsbYrU.dViNedLD7OK9stgDyCxeRW.imOyZ1kr60z0PkS6s5uVi4kH.Wpkjy0B_0IESmo6kVkG_.mEc4D56AY5ct3mi6fpRbj8CYlSx3G5SsIjxlGpiQXfa32kp5jb7_o_w--
   2.
https://a.b-io.me/c/Y1lM9w9S1KeX7SWXPn4dzgOzHoT8aQ.gcVzksUNNFlHQaWlkIsfqBNRgrwhzFkMcrwIXvcetvsYWJ_UO3DHOQed9OINurZwrgOmguQxdWig8Hh1mgQFaUDbwmnFI4wq2HWTN_jaXUWK5aYgcgEa4o4psonRY6Ky5dyC560RQkF51r0i2tp95k0dMw9RD4ed6A41gkCqbhBABCKJWR4jzx_p9ARy6VUeDvexDbHgwosOdZ2V3Jl_wI45JYRx0t6UYBR0ENZ5qnbouMcRzT53Dn6is10DW0hMVrEM7wn1jeUKqFO7TsV_gN_AXh4X3RWvKkimG3fNu_Gro_vK9UUPi9iMLK1pKcgqhzOqpIknCK20zXV5AQtYukfRWzw2aATcxjROIM7cpT5XvDR4eOuL3_3A4CONqberBtCQC3H.ZhLbPfFPKs.DXGqEVYZ24p6WFcqjtN.doyi4CjopibpdkJoaXZ0W3a3MXU89xQcmb.1StYHScgOO1X7TOGBpQIUGH
   3.
https://a.b-io.me/c/Y1lM9w9S1KeX7SWXPn4dzgOzHoT8aQ.gcVzksUNNFlHQaWlkIsfqBNRgrwhzFkMcrwIXvcetvsYWJ_UO3DHOQed9OINurZwrgOmguQxdWig8Hh1mgQFaUDbwmnFI4wq2HWTN_jaXUWK5aYgcgEa4o4psonRY6Ky5dyC560RQkF51r0i2tp95k0dMw9RD4ed6A41gkCqbhBCKeYsVbq9UJ0UDv9gkw4Smzk7gkNQHBOfMgp2mhkY6NABUYaV_lmB7IMSNjy301Kr8qB03r1R_Co1oX8bpQsp5oatd0hR1DtIwdprkEj4Pt0idCEKrNPlH3ksaYChexlv7gLgNQdP820mG47M.jdRxh0DrOZ.9RO7NQyN4kqRgwfjd8jGKr7gXK_l8AYmyjOD9y3bGXyv0NjNdXkBC1i6R9FbPDZoBNzGNE4gztylPle8NHh464vf7cDgI42pt6sG0JALcf9mEts98U8qz8NcaoRVhnbinpYVyqO0392jKLgKOimJul2QmhpdnRbdrcxdTz3FByZv.VK1gdJyA47VftM4YGlAhQYc-
   4.
https://a.b-io.me/c/Y1lM9w9S1KeX7SWXPn4dzgOzHoT8aQ.gcVzksUNNFlHQaWlkIsfqBNRgrwhzFkMcrwIXvcetvsYWJ_UO3DHOQed9OINurZwrgOmguQxdWig8Hh1mgQFaUDbwmnFI4wq2HWTN_jaXUWK5aYgcgEa4o4psonRY6Ky5dyC560RQkF51r0i2tp95k0dMw9RD4ed6A41gkCqbhBDd9_35PHtGj5Sx1C.jN8WAg9E1tBhyTYT7c7Qa5SS3MFiaIku24jutDuyvd.Yg.RJcTKqysLYIB7jp5FHa8hJpc0DoKf3z_FASV.3DePyVCUYYrvpW8fMinP0vazLw0vWf_nNJlvMJsQ_BApbaFyFHQEjRvYWPbJa8LDc8bMC3wjeYk4wKVRfT3cwY.FGu6xrig_idmZZM6CNuTm1.9UeHI3pO8JMDJ7r_1s0KZ4w7p9T_Uvk1_yEsBx0dUN3onf5UaNHy06ZA478Xefk3SN8ovGKMNxGig7g1YXJtTFFFZhVUDxQOJGheH0xKvDlspZUSHjjN0VFBhDmYUG3FjSe6YXnra6CJ3PSKFT8MLAwIrGoPqYqXeYqEFREJqECWisFGjQLxQoFABdO54BfLg4ZLtqrdGWaWi_vIPj9OVBeoScki9uHPIjVC7V20uOAJ_WMIk1khaTPObB6Ntt5DcBo4Q_Ff1Hlr7qC5AubVwp4npLVx_SJUN89AxsQKPNnb3.3oKGEMt5lYx6EVYZ24p6WFcqjtN.doyi4CjopibpdkJoaXZ0W3a3MXU89xQcmb.1StYHScgOO1X7TOGBpQIUGH
   5.
https://a.b-io.me/c/Y1lM9w9S1KeX7SWXPn4dzgOzHoT8aQ.gcVzksUNNFlHQaWlkIsfqBNRgrwhzFkMcrwIXvcetvsYWJ_UO3DHOQed9OINurZwrgOmguQxdWig8Hh1mgQFaUDbwmnFI4wq2HWTN_jaXUWK5aYgcgEa4o4psonRY6Ky5dyC560RQkF51r0i2tp95k0dMw9RD4ed6A41gkCqbhBAkraTsNgrJEs_Cd5cK5ANeSsidzJ36INnEwnPR5lw3FxpGjD5LjMt0gA6EVmagOegRdBLYkt3Hhey1EBuhSZNlgxW2ImC2dw4pxVW75Wy0JuqtLVkgNL3Zulb7bayU2AE6fkfVo0ME8HVXYISMqnYR1mKoWLYLCsA-
   6.
https://a.b-io.me/c/Y1lM9w9S1KeX7SWXPn4dzgOzHoT8aQ.gcVzksUNNFlHQaWlkIsfqBNRgrwhzFkMcrwIXvcetvsYWJ_UO3DHOQed9OINurZwrgOmguQxdWig8Hh1mgQFaUDbwmnFI4wq2HWTN_jaXUWK5aYgcgEa4o4psonRY6Ky5dyC560RQkF51r0i2tp95k0dMw9RD4ed6A41gkCqbhBCHFJBDtK.80kzVqqsKJe382PUQ6qAORAj5S0NpB2Zitp2jeqHchIHmHo223kNwGjhD4V.UeWvuoLkC5tXCniektXH5IlQ3z0DGxAo82dvf.egoYQy3mVjHoRVhnbinpYVyqO0392jKLgKOimJul2QmhpdnRbdrcxdTz3FByZv.VK1gdJyA47VftM4YGlAhQYc-
   7.
https://a.b-io.me/c/Y1lM9w9S1KeX7SWXPn4dzgOzHoT8aQ.gcVzksUNNFlHQaWlkIsfqBNRgrwhzFkMcrwIXvcetvsYWJ_UO3DHOQed9OINurZwrgOmguQxdWig8Hh1mgQFaUDbwmnFI4wq2HWTN_jaXUWK5aYgcgEa4o4psonRY6Ky5dyC560RQkF51r0i2tp95k0dMw9RD4ed6A41gkCqbhBB.9wEYfwW4oqfvBdsu39ZZqZ.svNkMV9_vUwGB642HbzOT63GBD7CPAHo_N8.IM6u07t0612GCls_ejWKU_Tiqhn6IJRrCY1DWfW10_3V_np_UM9f6.9VXMDabFjHnSbfMrWUmt1q1__rV5fFGJoPf51wLwmxn4wmp9HmBSD11ESv9OcT7CjT0fPOJTYbDRri2kw_bT8KRsx6Ntt5DcBo4Q_Ff1Hlr7qC5AubVwp4npLVx_SJUN89AxsQKPNnb3.3oKGEMt5lYx6EVYZ24p6WFcqjtN.doyi4CjopibpdkJoaXZ0W3a3MXU89xQcmb.1StYHScgOO1X7TOGBpQIUGH
   8.
https://a.b-io.me/c/Y1lM9w9S1KeX7SWXPn4dzgOzHoT8aQ.gcVzksUNNFlHQaWlkIsfqBNRgrwhzFkMcrwIXvcetvsYWJ_UO3DHOQed9OINurZwrgOmguQxdWig8Hh1mgQFaUDbwmnFI4wq2HWTN_jaXUWK5aYgcgEa4o4psonRY6Ky5dyC560RQkF51r0i2tp95k0dMw9RD4ed6A41gkCqbhBB.9wEYfwW4oqfvBdsu39ZZqZ.svNkMV9_vUwGB642HbzOT63GBD7CPAHo_N8.IM6u07t0612GCls_ejWKU_Tiqhn6IJRrCY1DWfW10_3V_np_UM9f6.9VXMDabFjHnSbfMrWUmt1q1__rV5fFGJoPf51wLwmxn4wmp9HmBSD11EeoZvpRJJzydfPOJTYbDRri2kw_bT8KRsx6Ntt5DcBo4Q_Ff1Hlr7qC5AubVwp4npLVx_SJUN89AxsQKPNnb3.3oKGEMt5lYx6EVYZ24p6WFcqjtN.doyi4CjopibpdkJoaXZ0W3a3MXU89xQcmb.1StYHScgOO1X7TOGBpQIUGH
   9.
https://a.b-io.me/c/Y1lM9w9S1KeX7SWXPn4dzgOzHoT8aQ.gcVzksUNNFlHQaWlkIsfqBNRgrwhzFkMcrwIXvcetvsYWJ_UO3DHOQed9OINurZwrgOmguQxdWig8Hh1mgQFaUDbwmnFI4wq2HWTN_jaXUWK5aYgcgEa4o4psonRY6Ky5dyC560RQkF51r0i2tp95k0dMw9RD4ed6A41gkCqbhBB.9wEYfwW4oqfvBdsu39ZZqZ.svNkMV9_vUwGB642HbzOT63GBD7CPAHo_N8.IM6u07t0612GCls_ejWKU_Tiqhn6IJRrCY1DWfW10_3V_np_UM9f6.9VXMDabFjHnSbfMrWUmt1q1__rV5fFGJoPf51wLwmxn4wmp9HmBSD11ETwrqGzoEl2CfPOJTYbDRri2kw_bT8KRsx6Ntt5DcBo4Q_Ff1Hlr7qC5AubVwp4npLVx_SJUN89AxsQKPNnb3.3oKGEMt5lYx6EVYZ24p6WFcqjtN.doyi4CjopibpdkJoaXZ0W3a3MXU89xQcmb.1StYHScgOO1X7TOGBpQIUGH
   10.
https://a.b-io.me/c/Y1lM9w9S1KeX7SWXPn4dzgOzHoT8aQ.gcVzksUNNFlHQaWlkIsfqBNRgrwhzFkMcrwIXvcetvsYWJ_UO3DHOQed9OINurZwrgOmguQxdWig8Hh1mgQFaUDbwmnFI4wq2HWTN_jaXUWK5aYgcgEa4o4psonRY6Ky5dyC560RQkF51r0i2tp95k0dMw9RD4ed6A41gkCqbhBA8mT76ajNsnsOauVjjCcuml4X5YwBlEl6dZ2V3Jl_wI45JYRx0t6UYBR0ENZ5qnbouMcRzT53Dn6is10DW0hMVrEM7wn1jeUKqFO7TsV_gN2DrfivPk8aRC9ElvxLoWOkJkRWAlm070kfmnO1AHmS0W5ibRc4B9O03LnC4yHEAcc9IhrWnm6PTj3vgnMFFcniA6aC5DF1aKL.gbI8DD3jltqgddgBCkJIJKNwVHB2os8FQZKpnEeHUfEgjXa3mAbLRxjmX6EB1.Q4playZ7gIFLkHb3Deos.A-
   11.
https://a.b-io.me/c/Y1lM9w9S1KeX7SWXPn4dzgOzHoT8aQ.gcVzksUNNFlHQaWlkIsfqBNRgrwhzFkMcrwIXvcetvsYWJ_UO3DHOQed9OINurZwrgOmguQxdWig8Hh1mgQFaUDbwmnFI4wq2HWTN_jaXUWK5aYgcgEa4o4psonRY6Ky5dyC560RQkF51r0i2tp95k0dMw9RD4ed6A41gkCqbhBCHFJBDtK.80oNvPvZIUMVGNx7TRWNTJ6hjaFLt8nuAp7h28yBOwk0HBpBPZWCUrlWYJV6qMaoEX.yembkLFP6RGUHYg6B1gLWuMQmSHxjHtH7nDhSQUgbIQMx0zjTlCdTzT_d868QSy42qmrY_RHzSB557ju4fusAK0DFMIQW1TkD9PqjCFeyMya50WJdUSm.EwnPR5lw3FxpGjD5LjMt0gA6EVmagOegRdBLYkt3Hhey1EBuhSZNluT3y_DK75D4QUhWTl59JrkwyWjHPrfp4.Ryz6SMVTWPpdZ3Gkx6BZNuETvt6HWcLNwmG607m.MliFIDFy1pGuaPfD441AGls
   12.
https://a.b-io.me/c/Y1lM9w9S1KeX7SWXPn4dzgOzHoT8aQ.gcVzksUNNFlHQaWlkIsfqBNRgrwhzFkMcrwIXvcetvsYWJ_UO3DHOQed9OINurZwrgOmguQxdWig8Hh1mgQFaUDbwmnFI4wq2HWTN_jaXUWK5aYgcgEa4o4psonRY6Ky5dyC560RQkF51r0i2tp95k0dMw9RD4ed6A41gkCqbhBCHFJBDtK.80oNvPvZIUMVGNx7TRWNTJ6hjaFLt8nuAp7h28yBOwk0HBpBPZWCUrlWYJV6qMaoEX.yembkLFP6RGUHYg6B1gLWuMQmSHxjHtH7nDhSQUgbIQMx0zjTlCdTzT_d868QSy42qmrY_RHzSB557ju4fusAK0DFMIQW1Tm8q9oClN7VIHHoSo9GQnb55c192oPDoZjcucLjIcQBxz0iGtaebo9OPe_CcwUVyeIDpoLkMXVoov_BsjwMPeOUfkB29RiYjbzJ2vBRYyUwdQppKoAALG6uaFOfjCOIPO.9qvC7rf9LAJtipyYJnO8o9OPniWc94prJcbnpKi007h_jxc_I0WeA-
   13.
https://a.b-io.me/c/Y1lM9w9S1KeX7SWXPn4dzgOzHoT8aQ.gcVzksUNNFlHQaWlkIsfqBNRgrwhzFkMcrwIXvcetvsYWJ_UO3DHOQed9OINurZwrgOmguQxdWig8Hh1mgQFaUDbwmnFI4wq2HWTN_jaXUWK5aYgcgEa4o4psonRY6Ky5dyC560RQkF51r0i2tp95k0dMw9RD4ed6A41gkCqbhBCHFJBDtK.80kzVqqsKJe382PUQ6qAORAjlUhUHm.igT5QpHDqYRoO2YEj6a3kxnWK.9A5VUcIh1FDakwFCqYYYczwjpB8bnAa0u1Ol_0Atvx1WvlbrYI80WP7jMlOkjXGIiAcMq51Tbv6AjUZ8Ktc5XrZWG23DUOMejbbeQ3AaOEPhX9R5a_6guQLm1cKeJ6S1cfkiVDfPQMbECjzZ29.96ChhDLeZWMdskfCP4ptBIc3UulET1g8PoRVhnbinpYVyqO0392jKLgKOimJul2QmhpdnRbdrcxdTz3FByZv.VK1gdJyA47VftM4YGlAhQYc-
>From gcc-bugs-return-576816-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 02:46:33 2017
Return-Path: <gcc-bugs-return-576816-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 80677 invoked by alias); 29 Sep 2017 02:46: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 80503 invoked by uid 55); 29 Sep 2017 02:46:29 -0000
From: "postmaster@openbossa-org.bounceio.net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/58689] Enhance returns_nonnull
Date: Fri, 29 Sep 2017 02: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: 4.9.0
X-Bugzilla-Keywords: diagnostic, missed-optimization
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: postmaster@openbossa-org.bounceio.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: attachments.created
Message-ID: <bug-58689-4-tZRsgJZqQF@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-58689-4@http.gcc.gnu.org/bugzilla/>
References: <bug-58689-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02845.txt.bz2
Content-length: 240

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

--- Comment #11 from postmaster@openbossa-org.bounceio.net ---
Created attachment 42258
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42258&action=edit
attachment-80437-1.eml
>From gcc-bugs-return-576817-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 03:04:12 2017
Return-Path: <gcc-bugs-return-576817-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 121422 invoked by alias); 29 Sep 2017 03:04:12 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 121367 invoked by uid 48); 29 Sep 2017 03:04:09 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82323] circular ifunc attribute on a function definition silently accepted
Date: Fri, 29 Sep 2017 03: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: accepts-invalid, 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: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status
Message-ID: <bug-82323-4-zjmP5KZiL2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82323-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82323-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02846.txt.bz2
Content-length: 299

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
>From gcc-bugs-return-576818-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 06:19:47 2017
Return-Path: <gcc-bugs-return-576818-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 75454 invoked by alias); 29 Sep 2017 06:19:47 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 75400 invoked by uid 48); 29 Sep 2017 06:19:42 -0000
From: "trippels at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82357] New: [8 Regression] bogus error: cannot bind bitfield
Date: Fri, 29 Sep 2017 06:19:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.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-82357-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02847.txt.bz2
Content-length: 798

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

            Bug ID: 82357
           Summary: [8 Regression] bogus error: cannot bind bitfield
           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: ---

% < api.ii
template <typename> struct A {
  A() { x |= 0; }
  int x : 8;
};

 % g++ -c api.ii
api.ii: In constructor ‘A< <template-parameter-1-1> >::A()’:
api.ii:2:14: error: cannot bind bitfield ‘((A< <template-parameter-1-1>
>*)this)->A< <template-parameter-1-1> >::x’ to ‘int&’
   A() { x |= 0; }
              ^
>From gcc-bugs-return-576819-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 06:24:49 2017
Return-Path: <gcc-bugs-return-576819-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 87778 invoked by alias); 29 Sep 2017 06:24: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 84823 invoked by uid 48); 29 Sep 2017 06:24:45 -0000
From: "trippels at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82357] [8 Regression] bogus error: cannot bind bitfield
Date: Fri, 29 Sep 2017 06:24:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: trippels at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-82357-4-YelpXn565l@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82357-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82357-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02848.txt.bz2
Content-length: 809

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

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

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

--- Comment #1 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Started with r253266:

commit 4cedc476c94a41551d965bc57fbbe0186983c3c4
Author: jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Date:   Thu Sep 28 19:39:45 2017 +0000

            PR c++/56973, DR 696 - capture constant variables only as needed.
>From gcc-bugs-return-576820-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 06:27:28 2017
Return-Path: <gcc-bugs-return-576820-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 60938 invoked by alias); 29 Sep 2017 06:27:27 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 46328 invoked by uid 48); 29 Sep 2017 06:27:23 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82299] -Wuseless-cast errors on typed enums used in member data initializers in c++1z
Date: Fri, 29 Sep 2017 06:27:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-82299-4-2DQdF1zcOR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82299-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82299-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02849.txt.bz2
Content-length: 1560

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

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

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

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Started with r240498 apparently, although it doesn't look relevant:

            * ipa-inline-analysis.c (find_foldable_builtin_expect): Use
            gimple_call_internal_p.
            * ipa-split.c (find_return_bb): Likewise.
            (execute_split_functions): Likewise.
            * omp-low.c (dump_oacc_loop_part): Likewise.
            (oacc_loop_xform_head_tail): Likewise.
            * predict.c (predict_loops): Likewise.
            * sanopt.c (pass_sanopt::execute): Likewise.
            * tree-cfg.c (get_abnormal_succ_dispatcher): Likewise.
            * tree-parloops.c (oacc_entry_exit_ok_1): Likewise.
            * tree-stdarg.c (gimple_call_ifn_va_arg_p): Remove function.
            (expand_ifn_va_arg_1): Use gimple_call_internal_p.
            (expand_ifn_va_arg): Likewise.
            * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
            (optimize_mask_stores): Likewise.
            * tree-vect-stmts.c (vect_simd_lane_linear): Likewise.
            (vect_transform_stmt): Likewise.
            * tree-vectorizer.c (vect_loop_vectorized_call): Likewise.
            * tsan.c (instrument_memory_accesses): Likewise.
>From gcc-bugs-return-576821-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 07:13:51 2017
Return-Path: <gcc-bugs-return-576821-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 22453 invoked by alias); 29 Sep 2017 07:13:50 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 22380 invoked by uid 48); 29 Sep 2017 07:13:47 -0000
From: "juergen.reuter at desy dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82092] gcc fails to link genmodes on darwin (cfiStartsArray[i] != cfiStartsArray[i-1])
Date: Fri, 29 Sep 2017 07: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: build
X-Bugzilla-Severity: normal
X-Bugzilla-Who: juergen.reuter at desy dot de
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82092-4-7Lo3n9BBAW@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82092-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82092-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02850.txt.bz2
Content-length: 278

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

--- Comment #5 from Jürgen Reuter <juergen.reuter at desy dot de> ---
Interestingly, I get the problem only with Xcode 9.0 and MAC OS X Sierra Darwin
16.6, but not with Xcode 9.0 and Mac OS X High Sierra Darwin 16.7.
>From gcc-bugs-return-576822-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 07:20:47 2017
Return-Path: <gcc-bugs-return-576822-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 37933 invoked by alias); 29 Sep 2017 07:20: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 37810 invoked by uid 55); 29 Sep 2017 07:20:41 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82339] Inefficient movabs instruction
Date: Fri, 29 Sep 2017 07: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: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82339-4-nZogzZe1O4@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82339-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82339-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02851.txt.bz2
Content-length: 470

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

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Sep 29 07:20:09 2017
New Revision: 253279

URL: https://gcc.gnu.org/viewcvs?rev=253279&root=gcc&view=rev
Log:
        PR target/82339
        * config/i386/i386.md (*movdi_internal peephole2): New -Os peephole
        for movabsq $(i32 << shift), r64.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/i386/i386.md
>From gcc-bugs-return-576823-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 07:36:13 2017
Return-Path: <gcc-bugs-return-576823-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 73519 invoked by alias); 29 Sep 2017 07:36: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 73447 invoked by uid 55); 29 Sep 2017 07:36:08 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82340] volatile ignored in compound literal
Date: Fri, 29 Sep 2017 07:36:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82340-4-YEDPq2bNiX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82340-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82340-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02852.txt.bz2
Content-length: 617

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

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Sep 29 07:35:37 2017
New Revision: 253280

URL: https://gcc.gnu.org/viewcvs?rev=253280&root=gcc&view=rev
Log:
        PR c/82340
        * c-decl.c (build_compound_literal): Use c_apply_type_quals_to_decl
        instead of trying to set just TREE_READONLY manually.

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

Added:
    trunk/gcc/testsuite/gcc.dg/tree-ssa/pr82340.c
Modified:
    trunk/gcc/c/ChangeLog
    trunk/gcc/c/c-decl.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-576824-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 07:59:54 2017
Return-Path: <gcc-bugs-return-576824-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 482 invoked by alias); 29 Sep 2017 07:59:54 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 401 invoked by uid 48); 29 Sep 2017 07:59:50 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/82172] Destruction of basic_string in basic_stringbuf::overflow with _GLIBCXX_USE_CXX11_ABI=0, -flto, and C++17 mode results in invalid delete
Date: Fri, 29 Sep 2017 07:59:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: lto
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: INVALID
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-82172-4-LRDjioF3z3@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82172-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82172-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02853.txt.bz2
Content-length: 897

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

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

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

--- Comment #22 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to Gubbins from comment #21)
> (In reply to Martin Liška from comment #20)
> > Your failure happens even w/o LTO, am I right?
> > But yes, the problem looks very similar to what happens for ld.bfd.
> 
> You are right.
> 
> Does anyone know how I would raise this with someone who can fix it on the
> Darwin side? Or could it be worked around by gcc?

Linker should provide precise information to GCC.
The bug is fixed in binutils, I'm closing this.
>From gcc-bugs-return-576825-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 08:01:34 2017
Return-Path: <gcc-bugs-return-576825-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 2779 invoked by alias); 29 Sep 2017 08:01:34 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 2273 invoked by uid 48); 29 Sep 2017 08:01:00 -0000
From: "jhasse at bixense dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug driver/80271] Support environment variable CLICOLOR_FORCE to enable -fdiagnostics-color
Date: Fri, 29 Sep 2017 08:01:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: driver
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: jhasse at bixense 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-80271-4-Ivwwj2SXup@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80271-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80271-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02854.txt.bz2
Content-length: 446

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

--- Comment #2 from Jan Niklas Hasse <jhasse at bixense dot com> ---
I guess that's because one doesn't want the build output to depend on an
environment variable (most build systems won't rebuild on env variable
changes)?

-fdiagnostics-color doesn't affect the build output, therefore it would be a
perfect fit for an env variable. Currently adding it causes an unnecessary full
rebuild.
>From gcc-bugs-return-576826-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 08:23:24 2017
Return-Path: <gcc-bugs-return-576826-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 35536 invoked by alias); 29 Sep 2017 08:23: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 35435 invoked by uid 48); 29 Sep 2017 08:23:20 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/82353] [8 Regression] runtime ubsan crash
Date: Fri, 29 Sep 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: sanitizer
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 target_milestone short_desc everconfirmed
Message-ID: <bug-82353-4-2xLLS1MfsN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82353-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82353-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02855.txt.bz2
Content-length: 674

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-09-29
   Target Milestone|---                         |8.0
            Summary|runtime ubsan crash         |[8 Regression] runtime
                   |                            |ubsan crash
     Ever confirmed|0                           |1

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed.
>From gcc-bugs-return-576827-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 09:03:01 2017
Return-Path: <gcc-bugs-return-576827-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 33493 invoked by alias); 29 Sep 2017 09:03: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 19301 invoked by uid 48); 29 Sep 2017 09:02:51 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/82352] link error 'defined in discarded section'
Date: Fri, 29 Sep 2017 09:03:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: other
X-Bugzilla-Version: 7.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-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-82352-4-T7PF6WE6Gt@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82352-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82352-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02856.txt.bz2
Content-length: 1525

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

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

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

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Created attachment 42259
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42259&action=edit
Reduced single compilation unit test-case

Confirmed, following ICEs in GCC (with -fchecking):

g++-7 pr82352-2.cpp -O2 -c -fchecking
pr82352-2.cpp:42:7: warning: direct base ‘B’ inaccessible in ‘o’ due to
ambiguity
 class o : B, n
       ^
pr82352-2.cpp:51:1: error: comdat-local function called by void h::i() outside
its comdat
 }
 ^
_ZN1fI1oE1dEv.part.0/38 (void f<e>::d() [with e = o]) @0x149a95bd5450
  Type: function definition analyzed
  Visibility: comdat_group:_ZN1fI1oE1dEv artificial
  Same comdat group as: _ZN1fI1oE1dEv/26
  References: _ZTI1a/24 (addr)
  Referring: 
  Availability: local
  First run: 1
  Function flags: body local icf_merged split_part unlikely_executed
  Called by: _ZN1h1iEv.part.1/39 (1.00 per call) (can throw external)
_ZN1fI1oE1dEv/26 (can throw external) 
  Calls: __cxa_allocate_exception/31 (1.00 per call) __cxa_throw/32 (1.00 per
call) (can throw external) 
pr82352-2.cpp:51: confused by earlier errors, bailing out

Caused by my commit r246848.
>From gcc-bugs-return-576828-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 09:05:02 2017
Return-Path: <gcc-bugs-return-576828-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 29729 invoked by alias); 29 Sep 2017 09: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 17521 invoked by uid 48); 29 Sep 2017 09:04:58 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/82352] [7/8 Regression] comdat-local function called by void h::i() outside its comdat
Date: Fri, 29 Sep 2017 09:05:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: other
X-Bugzilla-Version: 7.2.1
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on assigned_to target_milestone short_desc everconfirmed
Message-ID: <bug-82352-4-bARuNbSg5q@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82352-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82352-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02857.txt.bz2
Content-length: 891

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2017-09-29
           Assignee|unassigned at gcc dot gnu.org      |marxin at gcc dot gnu.org
   Target Milestone|---                         |7.3
            Summary|link error 'defined in      |[7/8 Regression]
                   |discarded section'          |comdat-local function
                   |                            |called by void h::i()
                   |                            |outside its comdat
     Ever confirmed|0                           |1
>From gcc-bugs-return-576829-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 09:06:28 2017
Return-Path: <gcc-bugs-return-576829-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 87675 invoked by alias); 29 Sep 2017 09:06: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 77242 invoked by uid 48); 29 Sep 2017 09:06:24 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/82338] valgrind error in inherit_in_ebb
Date: Fri, 29 Sep 2017 09:06:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ra
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-82338-4-jzbx3xduFr@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82338-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82338-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02858.txt.bz2
Content-length: 481

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-09-29
                 CC|                            |marxin at gcc dot gnu.org
     Ever confirmed|0                           |1
>From gcc-bugs-return-576830-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 09:10:23 2017
Return-Path: <gcc-bugs-return-576830-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 64253 invoked by alias); 29 Sep 2017 09:10: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 63924 invoked by uid 48); 29 Sep 2017 09:10:17 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82355] [8 Regression] ICE in outermost_loop_in_sese, at sese.c:301
Date: Fri, 29 Sep 2017 09:10:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc target_milestone everconfirmed
Message-ID: <bug-82355-4-qMj0KDqsZu@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82355-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82355-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02859.txt.bz2
Content-length: 715

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-09-29
                 CC|                            |marxin at gcc dot gnu.org,
                   |                            |rguenth at gcc dot gnu.org
   Target Milestone|---                         |8.0
     Ever confirmed|0                           |1

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, started with r252906.
>From gcc-bugs-return-576831-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 09:19:30 2017
Return-Path: <gcc-bugs-return-576831-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 78918 invoked by alias); 29 Sep 2017 09:19:30 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 77963 invoked by uid 48); 29 Sep 2017 09:19:26 -0000
From: "trippels at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82357] [8 Regression] bogus error: cannot bind bitfield
Date: Fri, 29 Sep 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: 8.0
X-Bugzilla-Keywords: rejects-valid
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 target_milestone
Message-ID: <bug-82357-4-TrGVqXdXwE@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82357-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82357-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02860.txt.bz2
Content-length: 362

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid
   Target Milestone|---                         |8.0
>From gcc-bugs-return-576832-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 09:27:39 2017
Return-Path: <gcc-bugs-return-576832-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 98131 invoked by alias); 29 Sep 2017 09:27: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 93448 invoked by uid 48); 29 Sep 2017 09:27:35 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82344] [8 Regression] SPEC CPU2006 435.gromacs ~10% performance regression with trunk@250855
Date: Fri, 29 Sep 2017 09:27:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: target_milestone
Message-ID: <bug-82344-4-nPItDLQQis@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82344-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82344-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02861.txt.bz2
Content-length: 293

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |8.0
>From gcc-bugs-return-576833-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 09:36:25 2017
Return-Path: <gcc-bugs-return-576833-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 64167 invoked by alias); 29 Sep 2017 09:36: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 50881 invoked by uid 48); 29 Sep 2017 09:36:16 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/82356] auto-vectorizing pack of 16->8 has a redundant AND after a shift
Date: Fri, 29 Sep 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: rtl-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization, ssemmx
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on component everconfirmed
Message-ID: <bug-82356-4-pIjn9pULLp@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82356-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82356-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02862.txt.bz2
Content-length: 1899

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-09-29
          Component|tree-optimization           |rtl-optimization
     Ever confirmed|0                           |1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
The vectorizer itself just emits

  <bb 13> [81.00%]:
  # ivtmp.30_143 = PHI <0(12), ivtmp.30_144(13)>
  # ivtmp.35_145 = PHI <0(12), ivtmp.35_146(13)>
  vect__1.15_75 = MEM[base: vectp_src.14_71, index: ivtmp.35_145, step: 2,
offset: 0B];
  vect__1.16_77 = MEM[base: vectp_src.14_71, index: ivtmp.35_145, step: 2,
offset: 16B];
  vect__2.17_78 = vect__1.15_75 >> 8;
  vect__2.17_79 = vect__1.16_77 >> 8;
  vect__3.18_80 = VEC_PACK_TRUNC_EXPR <vect__2.17_78, vect__2.17_79>;
  MEM[base: vectp_dst.20_81, index: ivtmp.35_145, offset: 0B] = vect__3.18_80;
  ivtmp.30_144 = ivtmp.30_143 + 1;
  ivtmp.35_146 = ivtmp.35_145 + 16;
  if (bnd.9_65 > ivtmp.30_144)
    goto <bb 13>; [83.34%]

it seems the ands come from VEC_PAC_TRUNC_EXPR expansion somehow.

(insn 150 149 151 (set (reg:V8HI 219)
        (and:V8HI (reg:V8HI 221)
            (reg:V8HI 214 [ vect__2.17 ]))) "t.c":5 -1
     (nil))

(insn 151 150 152 (set (reg:V8HI 220)
        (and:V8HI (reg:V8HI 221)
            (reg:V8HI 216 [ vect__2.17 ]))) "t.c":5 -1
     (nil))

(insn 152 151 153 (set (reg:V16QI 218 [ vect__3.18 ])
        (vec_concat:V16QI (us_truncate:V8QI (reg:V8HI 219))
            (us_truncate:V8QI (reg:V8HI 220)))) "t.c":5 -1
     (nil))

and combine / simplify-rtx are not able to remove them again (no wonders,
simplify-rtx is notoriously unaware of vectors).
>From gcc-bugs-return-576834-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 09:38:46 2017
Return-Path: <gcc-bugs-return-576834-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 54699 invoked by alias); 29 Sep 2017 09: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 48498 invoked by uid 55); 29 Sep 2017 09:38:40 -0000
From: "kristerw at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/39570] cabs and cabsf are named differently on NetBSD 5
Date: Fri, 29 Sep 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: target
X-Bugzilla-Version: 4.3.3
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: kristerw at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-39570-4-WyCkgajUH0@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-39570-4@http.gcc.gnu.org/bugzilla/>
References: <bug-39570-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02863.txt.bz2
Content-length: 1081

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

--- Comment #14 from Krister Walfridsson <kristerw at gcc dot gnu.org> ---
Author: kristerw
Date: Fri Sep 29 09:38:08 2017
New Revision: 253283

URL: https://gcc.gnu.org/viewcvs?rev=253283&root=gcc&view=rev
Log:
2017-09-29  Krister Walfridsson  <krister.walfridsson@gmail.com>

        Backport from mainline
        2017-09-26  Krister Walfridsson  <krister.walfridsson@gmail.com>

        PR target/39570
        * gcc/config/netbsd-protos.h: New file.
        * gcc/config/netbsd.c: New file.
        * gcc/config/netbsd.h (SUBTARGET_INIT_BUILTINS): Define.
        * gcc/config/t-netbsd: New file.
        * gcc/config.gcc (tm_p_file): Add netbsd-protos.h.
        (tmake_file) Add t-netbsd.
        (extra_objs) Add netbsd.o.

Added:
    branches/gcc-7-branch/gcc/config/netbsd-protos.h
    branches/gcc-7-branch/gcc/config/netbsd.c
    branches/gcc-7-branch/gcc/config/t-netbsd
Modified:
    branches/gcc-7-branch/gcc/ChangeLog
    branches/gcc-7-branch/gcc/config.gcc
    branches/gcc-7-branch/gcc/config/netbsd.h
>From gcc-bugs-return-576835-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 09:43:09 2017
Return-Path: <gcc-bugs-return-576835-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 61797 invoked by alias); 29 Sep 2017 09:43:09 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 55737 invoked by uid 48); 29 Sep 2017 09:43:05 -0000
From: "andrey.y.guskov at intel dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82358] New: [8 regression] i386/stack-check-11.c fail
Date: Fri, 29 Sep 2017 09: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: andrey.y.guskov at intel dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-82358-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02864.txt.bz2
Content-length: 763

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

            Bug ID: 82358
           Summary: [8 regression] i386/stack-check-11.c fail
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: andrey.y.guskov at intel dot com
  Target Milestone: ---

r252999 triggers this fail:

FAIL: gcc.target/i386/stack-check-11.c scan-assembler-times subq 4

Option set:
-with-system-zlib --with-demangler-in-ld --with-fpmath=sse --enable-shared
--enable-host-shared --enable-clocale=gnu --enable-cloog-backend=isl
--enable-languages=c,c++,fortran,jit,lto -with-arch=slm --with-cpu=slm
>From gcc-bugs-return-576836-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 10:03:24 2017
Return-Path: <gcc-bugs-return-576836-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 106354 invoked by alias); 29 Sep 2017 10:03:23 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 102393 invoked by uid 48); 29 Sep 2017 10:03:16 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82355] [8 Regression] ICE in outermost_loop_in_sese, at sese.c:301
Date: Fri, 29 Sep 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: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to
Message-ID: <bug-82355-4-kA2SRei1iw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82355-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82355-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02865.txt.bz2
Content-length: 1248

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

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

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

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
I somehow knew you'd come up with infinite loop testcases ;)

This is because of

static inline bool
bb_in_region (const_basic_block bb, const_basic_block entry, const_basic_block
exit)
{
  return dominated_by_p (CDI_DOMINATORS, bb, entry)
         && !(dominated_by_p (CDI_DOMINATORS, bb, exit)
              && !dominated_by_p (CDI_DOMINATORS, entry, exit));
}

and when the exit of the SESE region is the latch edge then indeed the loop
doesn't belong to the region.  An infinite loop doesn't have an exit after
all ...

I'm not quite sure we shouldn't make it have an exit by means of a fake edge
but that would probably fix the ICE.

The reason for the strange region is merge_sese being overly "clever".

I have a patch in testing that avoids asking outermost_loop_in_sese for this
case.
>From gcc-bugs-return-576837-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 11:16:52 2017
Return-Path: <gcc-bugs-return-576837-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 107311 invoked by alias); 29 Sep 2017 11:16: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 105570 invoked by uid 48); 29 Sep 2017 11:16:49 -0000
From: "aschepler at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug preprocessor/64965] __FILE__ doesn't work if the filename contains newline
Date: Fri, 29 Sep 2017 11:16:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: preprocessor
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: minor
X-Bugzilla-Who: aschepler 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-64965-4-1DxwuUvRc1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64965-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64965-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02866.txt.bz2
Content-length: 408

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

Andrew Schepler <aschepler at gmail dot com> changed:

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

--- Comment #4 from Andrew Schepler <aschepler at gmail dot com> ---
Duplicated by 66317.
>From gcc-bugs-return-576838-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 11:20:59 2017
Return-Path: <gcc-bugs-return-576838-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 69878 invoked by alias); 29 Sep 2017 11: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 60897 invoked by uid 48); 29 Sep 2017 11:20:54 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/82172] Destruction of basic_string in basic_stringbuf::overflow with _GLIBCXX_USE_CXX11_ABI=0, -flto, and C++17 mode results in invalid delete
Date: Fri, 29 Sep 2017 11:20: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.2.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: MOVED
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: resolution
Message-ID: <bug-82172-4-F2N7Mr9rZX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82172-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82172-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02867.txt.bz2
Content-length: 471

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|INVALID                     |MOVED

--- Comment #23 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I think MOVED is more appropriate, as it's handled at
https://sourceware.org/bugzilla/show_bug.cgi?id=22220
>From gcc-bugs-return-576839-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 11:29:24 2017
Return-Path: <gcc-bugs-return-576839-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 106137 invoked by alias); 29 Sep 2017 11:29: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 102691 invoked by uid 48); 29 Sep 2017 11:29:20 -0000
From: "aschepler at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug preprocessor/82359] New: #line does not allow C++14 quotes in number
Date: Fri, 29 Sep 2017 11:29:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: preprocessor
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: aschepler 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-82359-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02868.txt.bz2
Content-length: 1142

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

            Bug ID: 82359
           Summary: #line does not allow C++14 quotes in number
           Product: gcc
           Version: 7.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: preprocessor
          Assignee: unassigned at gcc dot gnu.org
          Reporter: aschepler at gmail dot com
  Target Milestone: ---

In C++14 and later, any integer literal may contain single quote characters
(aka apostrophe, ASCII 0x27).  But the #line preprocessing directive does not
allow it.

For example,
#line 1'000
results in:
error: "1'000" after #line is not a positive integer

The relevant grammar is found in [cpp], [cpp.line], and [lex.fcon]:

control-line:
    ...
    # line pp-tokens new-line
    ...

digit-sequence:
    digit
    digit-sequence '_opt digit

where a line directive after macro substitution must have one of the two forms

    # line digit-sequence new-line
    # line digit-sequence " s-char-sequence_opt " new-line

The #if directive seems to have no problems with quote characters in numbers,
though.
>From gcc-bugs-return-576840-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 11:33:55 2017
Return-Path: <gcc-bugs-return-576840-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 95057 invoked by alias); 29 Sep 2017 11:33:55 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 93002 invoked by uid 48); 29 Sep 2017 11:33:51 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug preprocessor/66317] Preprocessor chokes on __FILE__ containing a newline
Date: Fri, 29 Sep 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: preprocessor
X-Bugzilla-Version: 5.1.0
X-Bugzilla-Keywords: ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: DUPLICATE
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-66317-4-uQV402B0BV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66317-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66317-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02869.txt.bz2
Content-length: 488

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

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

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

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
.

*** This bug has been marked as a duplicate of bug 64965 ***
>From gcc-bugs-return-576841-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 11:33:55 2017
Return-Path: <gcc-bugs-return-576841-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 95272 invoked by alias); 29 Sep 2017 11:33:55 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 93273 invoked by uid 48); 29 Sep 2017 11:33:51 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug preprocessor/64965] __FILE__ doesn't work if the filename contains newline
Date: Fri, 29 Sep 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: preprocessor
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: minor
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-64965-4-4vJZcOju0X@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64965-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64965-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02870.txt.bz2
Content-length: 452

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Keith.S.Thompson at gmail dot com

--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
*** Bug 66317 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-576842-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 11:34:32 2017
Return-Path: <gcc-bugs-return-576842-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 111524 invoked by alias); 29 Sep 2017 11: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 109777 invoked by uid 48); 29 Sep 2017 11:34:28 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug preprocessor/64965] __FILE__ doesn't work if the filename contains newline
Date: Fri, 29 Sep 2017 11:34:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: preprocessor
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: minor
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-64965-4-FXlcDIKpzW@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64965-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64965-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02871.txt.bz2
Content-length: 818

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

--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Andrew, if you write PR 66317 or Bug 66317 (or variations like Bug
preprocessor/66317) then Bugzilla automatically makes it a hyperlink :-)

Reproducer from that bug:

Test case (a 2 line source file named "filename_bug.c"):
#line 1 "new\nline.c"
const char filename[] = __FILE__;

Output of "cpp filename_bug.c" (there is no newline on the last line of
output):
# 1 "filename_bug.c"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "/usr/include/stdc-predef.h" 1 3 4
# 1 "<command-line>" 2
# 1 "filename_bug.c"
# 1 "new
line.c"
new
line.c:1:1: warning: missing terminating " character
new
line.c:1:25: internal compiler error: invalid built-in macro "__FILE__"
...

Also https://bugs.debian.org/838874
>From gcc-bugs-return-576843-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 11:36:02 2017
Return-Path: <gcc-bugs-return-576843-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 45477 invoked by alias); 29 Sep 2017 11:36: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 38110 invoked by uid 48); 29 Sep 2017 11:35:58 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug preprocessor/64965] __FILE__ doesn't work if the filename contains newline
Date: Fri, 29 Sep 2017 11:36:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: preprocessor
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: minor
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-64965-4-hHCXHCYfPb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64965-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64965-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02872.txt.bz2
Content-length: 724

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-09-29
     Ever confirmed|0                           |1

--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Rasmus Villemoes from comment #1)
> Created attachment 34693 [details]
> Make __FILE__ work for filenames containing newline

Please post this patch to gcc-patches@gcc.gnu.org for review - thanks!

https://gcc.gnu.org/contribute.html#patches
>From gcc-bugs-return-576844-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 11:48:52 2017
Return-Path: <gcc-bugs-return-576844-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 9998 invoked by alias); 29 Sep 2017 11:48:52 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 4132 invoked by uid 48); 29 Sep 2017 11:48:48 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/82353] [8 Regression] runtime ubsan crash
Date: Fri, 29 Sep 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: sanitizer
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: 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 cc
Message-ID: <bug-82353-4-2s1dhgDrI9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82353-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82353-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02873.txt.bz2
Content-length: 4557

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1
                 CC|                            |vmakarov at gcc dot gnu.org

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Confirmed, but it is actually a RTL optimization bug, not a problem with the
sanitization.
We have:
(insn 202 201 203 29 (set (reg:DI 98 [ _12 ])
        (symbol_ref:DI ("tf_2_struct_obj_2") [flags 0x40] <var_decl
0x7f6c98ff7480 tf_2_struct_obj_2>)) "pr82353-2.C":19 -1
     (nil))
(insn 203 202 204 29 (parallel [
            (set (reg:DI 143 [ _60 ])
                (plus:DI (reg:DI 98 [ _12 ])
                    (const_int 16 [0x10])))
            (clobber (reg:CC 17 flags))
        ]) "pr82353-2.C":19 -1
     (nil))
(insn 204 203 205 29 (set (reg:CC 17 flags)
        (compare:CC (reg:DI 98 [ _12 ])
            (const_int -16 [0xfffffffffffffff0]))) "pr82353-2.C":19 -1
     (nil))
(jump_insn 205 204 206 29 (set (pc)
        (if_then_else (ltu (reg:CC 17 flags)
                (const_int 0 [0]))
            (label_ref 212)
            (pc))) "pr82353-2.C":19 -1
     (int_list:REG_BR_PROB 39986 (nil))
 -> 212)
...
(code_label 212 211 213 31 22 (nil) [1 uses])
(note 213 212 214 31 [bb 31] NOTE_INSN_BASIC_BLOCK)
(insn 214 213 215 31 (set (mem/c:SI (symbol_ref:DI ("tf_2_var_233") [flags
0x40] <var_decl 0x7f6c98ff72d0 tf_2_var_233>) [9 tf_2_var_233+0 S4 A32])
        (reg:SI 92 [ _6 ])) "pr82353-2.C":19 -1
     (nil))
(insn 215 214 216 31 (set (reg:DI 114 [ _29 ])
        (symbol_ref:DI ("tf_2_struct_obj_2") [flags 0x40] <var_decl
0x7f6c98ff7480 tf_2_struct_obj_2>)) "pr82353-2.C":20 -1
     (nil))
(insn 216 215 217 31 (parallel [
            (set (reg:DI 118 [ _33 ])
                (plus:DI (reg:DI 114 [ _29 ])
                    (const_int 16 [0x10])))
            (clobber (reg:CC 17 flags))
        ]) "pr82353-2.C":20 -1
     (nil))
(insn 217 216 218 31 (set (reg:CC 17 flags)
        (compare:CC (reg:DI 114 [ _29 ])
            (const_int -16 [0xfffffffffffffff0]))) "pr82353-2.C":20 -1
     (nil))
(jump_insn 218 217 219 31 (set (pc)
        (if_then_else (ltu (reg:CC 17 flags)
                (const_int 0 [0]))
            (label_ref 225)
            (pc))) "pr82353-2.C":20 -1
     (int_list:REG_BR_PROB 39986 (nil))
 -> 225)

at expansion time (the reason for that is that sanopt pass doesn't perform the
optimization of redundant pointer overflow checks yet (Martin, do you have it
still on your todo list or shall I have a look?)).
Then fwprop1 figures out that insn 215 and 216 are redundant and removes them.
Then cse2 figures out the insn 217 is redundant and removes it.
This is still valid, there is a comparison that sets flags, then conditional
jump to code_label 212 (fallthrough into __ubsan_pointer_overflow_abort call),
there the store in insn 214 followed by a conditional jump which uses the still
computed flags, though of course if we were smarter we could have changed it
into unconditional jump at that point.
*.ira still looks correct, but then something in LRA isn't aware that the flags
register is live on the edge from bb29 to bb31 and inside of bb31 until
jump_insn 218, and rematerializes? there pseudo 92 which is stored in insn 214
and we end up with invalid:
(code_label 212 211 213 33 22 (nil) [1 uses])
(note 213 212 470 33 [bb 33] NOTE_INSN_BASIC_BLOCK)
(insn 470 213 466 33 (parallel [
            (set (reg:SI 0 ax [orig:92 _6 ] [92])
                (mult:SI (reg:SI 40 r11 [orig:91 _5 ] [91])
                    (const_int 89 [0x59])))
            (clobber (reg:CC 17 flags))
        ]) "pr82353-2.C":19 328 {*mulsi3_1}
     (nil))
(note 466 470 214 33 NOTE_INSN_DELETED)
(insn 214 466 218 33 (set (mem/c:SI (symbol_ref:DI ("tf_2_var_233") [flags
0x40] <var_decl 0x7f6c98ff72d0 tf_2_var_233>) [9 tf_2_var_233+0 S4 A32])
        (reg:SI 0 ax [orig:92 _6 ] [92])) "pr82353-2.C":19 82 {*movsi_internal}
     (nil))
(jump_insn 218 214 219 33 (set (pc)
        (if_then_else (ltu (reg:CC 17 flags)
                (const_int 0 [0]))
            (label_ref 225)
            (pc))) "pr82353-2.C":20 632 {*jcc_1}
     (int_list:REG_BR_PROB 39986 (nil))
 -> 225)
where the multiplication clobbers the flags and then we use them in insn 218.

Vlad, can you please have a look?  I'll still try to see if we can have a
single file testcase here.
>From gcc-bugs-return-576845-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 11:50:15 2017
Return-Path: <gcc-bugs-return-576845-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 55929 invoked by alias); 29 Sep 2017 11: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 51696 invoked by uid 48); 29 Sep 2017 11:50:11 -0000
From: "dcb314 at hotmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82360] New: tree check fail in get_inner_reference, at expr.c:6996
Date: Fri, 29 Sep 2017 11:50:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dcb314 at hotmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created
Message-ID: <bug-82360-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02874.txt.bz2
Content-length: 1067

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

            Bug ID: 82360
           Summary: tree check fail in get_inner_reference, at expr.c:6996
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

Created attachment 42260
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42260&action=edit
gzipped C++ source code

The attached c++ code, when compiled by today's trunk gcc, does this:

/usr/include/boost/smart_ptr/weak_ptr.hpp:109:82: internal compiler error: tree 
check: expected tree that contains ‘decl common’ structure, have
‘identifier_nod
e’ in get_inner_reference, at expr.c:6996
     BOOST_NOEXCEPT : px( r.px ), pn( static_cast< boost::detail::weak_count && 
>( r.pn ) )

The problem seems to exist between versions 253249 and 253276.

I'll have a go at reducing the code.
>From gcc-bugs-return-576846-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 11:52:54 2017
Return-Path: <gcc-bugs-return-576846-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 91562 invoked by alias); 29 Sep 2017 11: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 86777 invoked by uid 48); 29 Sep 2017 11:52:51 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/82353] [8 Regression] runtime ubsan crash
Date: Fri, 29 Sep 2017 11:52:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: sanitizer
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: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82353-4-xp3E1aN9FC@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82353-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82353-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02875.txt.bz2
Content-length: 438

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

--- Comment #4 from Martin Liška <marxin at gcc dot gnu.org> ---
> at expansion time (the reason for that is that sanopt pass doesn't perform
> the optimization of redundant pointer overflow checks yet (Martin, do you
> have it still on your todo list or shall I have a look?)).

Yes I have, just finishing switch expansion and will return to that hopefully
next week.

Martin
>From gcc-bugs-return-576847-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 12:04:21 2017
Return-Path: <gcc-bugs-return-576847-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 64473 invoked by alias); 29 Sep 2017 12:04: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 60799 invoked by uid 48); 29 Sep 2017 12:04:14 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug preprocessor/82359] #line does not allow C++14 quotes in number
Date: Fri, 29 Sep 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: preprocessor
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82359-4-r3oZTqcCLm@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82359-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82359-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02876.txt.bz2
Content-length: 372

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

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Andrew Schepler from comment #0)
> In C++14 and later, any integer literal may contain single quote characters
> (aka apostrophe, ASCII 0x27).

That's a standard defect (and has already been raised as such on the committee
reflector).
>From gcc-bugs-return-576848-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 12:05:29 2017
Return-Path: <gcc-bugs-return-576848-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 98768 invoked by alias); 29 Sep 2017 12:05:29 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 96801 invoked by uid 48); 29 Sep 2017 12:05:26 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug preprocessor/82359] #line does not allow C++14 quotes in number
Date: Fri, 29 Sep 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: preprocessor
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82359-4-SdwOvYVDFN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82359-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82359-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02877.txt.bz2
Content-length: 286

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

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Oops, that wasn't very clear. Digit-separators are not a defect (although that
depends who you ask). But the fact that the #line directive allows them is a
defect.
>From gcc-bugs-return-576849-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 12:25:57 2017
Return-Path: <gcc-bugs-return-576849-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 127610 invoked by alias); 29 Sep 2017 12:25: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 125926 invoked by uid 48); 29 Sep 2017 12:25:53 -0000
From: "antoshkka at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82361] New: Useless "mov eax, eax" in generated code
Date: Fri, 29 Sep 2017 12:25: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: 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-82361-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02878.txt.bz2
Content-length: 938

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

            Bug ID: 82361
           Summary: Useless "mov eax, eax" in generated code
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: antoshkka at gmail dot com
  Target Milestone: ---

Following function

struct ret_t {
    unsigned quot, rem;
};

ret_t my_div(unsigned a, unsigned b) {
    return {a / b, a % b};
}


Produces suboptimal assembly:

my_div(unsigned int, unsigned int):
  mov eax, edi
  xor edx, edx
  div esi
  sal rdx, 32
  mov eax, eax  # <======
  or rax, rdx
  ret

Clang produces an assembly without "mov eax, eax" instead:

my_div(unsigned int, unsigned int): # @my_div(unsigned int, unsigned int)
  xor edx, edx
  mov eax, edi
  div esi
  shl rdx, 32
  or rax, rdx
  ret
>From gcc-bugs-return-576850-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 12:29:33 2017
Return-Path: <gcc-bugs-return-576850-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 55493 invoked by alias); 29 Sep 2017 12:29: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 48114 invoked by uid 48); 29 Sep 2017 12:29:30 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/68754] Explicitly defaulted constexpr assignment operator fails to compile
Date: Fri, 29 Sep 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: c++
X-Bugzilla-Version: 5.3.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: paolo.carlini at oracle dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to
Message-ID: <bug-68754-4-cyT891aijn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-68754-4@http.gcc.gnu.org/bugzilla/>
References: <bug-68754-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02879.txt.bz2
Content-length: 482

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |paolo.carlini at oracle dot com

--- Comment #5 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Looking into it.
>From gcc-bugs-return-576851-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 12:30:44 2017
Return-Path: <gcc-bugs-return-576851-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 42638 invoked by alias); 29 Sep 2017 12:30: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 39834 invoked by uid 48); 29 Sep 2017 12:30:39 -0000
From: "dcb314 at hotmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82360] tree check fail in get_inner_reference, at expr.c:6996
Date: Fri, 29 Sep 2017 12:30:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dcb314 at hotmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82360-4-PLDzD1lGj9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82360-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82360-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02880.txt.bz2
Content-length: 297

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

--- Comment #1 from David Binderman <dcb314 at hotmail dot com> ---

I don't think this is still C++ code, but it 
does seem to provoke the error:

class a {
} template <b> class c {          c(c &&e) : (static_cast a && e.d;          a
d
>From gcc-bugs-return-576852-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 12:47:19 2017
Return-Path: <gcc-bugs-return-576852-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 35617 invoked by alias); 29 Sep 2017 12:47:19 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 28643 invoked by uid 48); 29 Sep 2017 12:47:14 -0000
From: "doko at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/82327] [7 Regression] ICE in equal_mem_array_ref_p, at tree-ssa-scopedtables.c:429 (i686-linux-gnu)
Date: Fri, 29 Sep 2017 12:47: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.2.1
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: blocker
X-Bugzilla-Who: doko at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82327-4-HpstVFiz0z@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82327-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82327-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02881.txt.bz2
Content-length: 1912

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

--- Comment #5 from Matthias Klose <doko at gcc dot gnu.org> ---
still searching ...

/usr/lib/gcc/i686-linux-gnu/7/include/stddef.h:20440:11: internal compiler
error: in equal_mem_array_ref_p, at tree-ssa-scopedtables.c:429
0x8858876 equal_mem_array_ref_p
        ../../src/gcc/tree-ssa-scopedtables.c:429
0x8858876 hashable_expr_equal_p
        ../../src/gcc/tree-ssa-scopedtables.c:466
0x8858876 expr_elt_hasher::equal(expr_hash_elt* const&, expr_hash_elt* const&)
        ../../src/gcc/tree-ssa-scopedtables.c:916
0x885983d hash_table<expr_elt_hasher,
xcallocator>::find_slot_with_hash(expr_hash_elt* const&, unsigned int,
insert_option)
        ../../src/gcc/hash-table.h:889
0x88591a8 hash_table<expr_elt_hasher, xcallocator>::find_slot(expr_hash_elt*
const&, insert_option)
        ../../src/gcc/hash-table.h:414
0x88591a8 avail_exprs_stack::lookup_avail_expr(gimple*, bool, bool)
        ../../src/gcc/tree-ssa-scopedtables.c:156
0x887d01a record_temporary_equivalences_from_stmts_at_dest
        ../../src/gcc/tree-ssa-threadedge.c:336
0x887d6ee thread_through_normal_block
        ../../src/gcc/tree-ssa-threadedge.c:994
0x887f0ac thread_across_edge
        ../../src/gcc/tree-ssa-threadedge.c:1229
0x887f49b thread_outgoing_edges(basic_block_def*, gcond*, const_and_copies*,
avail_exprs_stack*, tree_node* (*)(gimple*, gimple*, avail_exprs_stack*,
basic_block_def*))
        ../../src/gcc/tree-ssa-threadedge.c:1289
0x87d2cf8 dom_opt_dom_walker::after_dom_children(basic_block_def*)
        ../../src/gcc/tree-ssa-dom.c:1206
0x8ce5d6b dom_walker::walk(basic_block_def*)
        ../../src/gcc/domwalk.c:307
0x87d52d3 execute
        ../../src/gcc/tree-ssa-dom.c:459
Please submit a full bug report,
with preprocessed source if appropriate.

these are distro packages, and apparently only seen with a toolchain defaulting
to hardening defaults.
>From gcc-bugs-return-576853-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 13:10:24 2017
Return-Path: <gcc-bugs-return-576853-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 64339 invoked by alias); 29 Sep 2017 13:10: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 62287 invoked by uid 48); 29 Sep 2017 13:10:20 -0000
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82361] Useless "mov eax, eax" in generated code
Date: Fri, 29 Sep 2017 13:10:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hjl.tools at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-82361-4-8xm0YB9Utf@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82361-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82361-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02882.txt.bz2
Content-length: 846

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

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

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

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
The ree pass skips

(insn 31 30 10 2 (parallel [
            (set (reg:SI 0 ax [95])
                (udiv:SI (reg/v:SI 0 ax [orig:93 a ] [93])
                    (reg/v:SI 4 si [orig:94 b ] [94])))
            (set (reg:SI 1 dx [96])
                (umod:SI (reg/v:SI 0 ax [orig:93 a ] [93])
                    (reg/v:SI 4 si [orig:94 b ] [94])))
            (use (reg:SI 1 dx [96]))
            (clobber (reg:CC 17 flags))
        ]) 374 {*udivmodsi4_noext}
     (nil))
>From gcc-bugs-return-576854-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 13:16:12 2017
Return-Path: <gcc-bugs-return-576854-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 125441 invoked by alias); 29 Sep 2017 13:16:12 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 123026 invoked by uid 55); 29 Sep 2017 13:16:08 -0000
From: "dominiq at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/25071] dummy argument larger than actual argument
Date: Fri, 29 Sep 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: fortran
X-Bugzilla-Version: 4.1.0
X-Bugzilla-Keywords: accepts-invalid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: dominiq at lps dot ens.fr
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-25071-4-U8FPQpLVMj@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-25071-4@http.gcc.gnu.org/bugzilla/>
References: <bug-25071-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02883.txt.bz2
Content-length: 595

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

--- Comment #26 from dominiq at gcc dot gnu.org ---
Author: dominiq
Date: Fri Sep 29 13:15:26 2017
New Revision: 253286

URL: https://gcc.gnu.org/viewcvs?rev=253286&root=gcc&view=rev
Log:
2017-09-29  Dominique d'Humieres  <dominiq@lps.ens.fr>

        PR fortran/25071
        * interface.c (compare_actual_formal): Change warnings to errors
        when "Actual argument contains too few elements for dummy
        argument", unless -std=legacy is used.


Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/interface.c
>From gcc-bugs-return-576856-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 13:20:01 2017
Return-Path: <gcc-bugs-return-576856-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 78783 invoked by alias); 29 Sep 2017 13:20: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 74758 invoked by uid 55); 29 Sep 2017 13:19:56 -0000
From: "dominiq at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/25071] dummy argument larger than actual argument
Date: Fri, 29 Sep 2017 13:20:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 4.1.0
X-Bugzilla-Keywords: accepts-invalid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: dominiq at lps dot ens.fr
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-25071-4-IxxsCAFAda@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-25071-4@http.gcc.gnu.org/bugzilla/>
References: <bug-25071-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02885.txt.bz2
Content-length: 1595

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

--- Comment #27 from dominiq at gcc dot gnu.org ---
Author: dominiq
Date: Fri Sep 29 13:19:21 2017
New Revision: 253287

URL: https://gcc.gnu.org/viewcvs?rev=253287&root=gcc&view=rev
Log:
2017-09-29  Dominique d'Humieres  <dominiq@lps.ens.fr>

        PR fortran/25071
        * gfortran.dg/argument_checking_3.f90: Change warnings to errors.
        * gfortran.dg/argument_checking_4.f90: Likewise.
        * gfortran.dg/argument_checking_5.f90: Likewise.
        * gfortran.dg/argument_checking_6.f90: Likewise.
        * gfortran.dg/argument_checking_10.f90: Likewise.
        * gfortran.dg/argument_checking_13.f90: Likewise.
        * gfortran.dg/argument_checking_15.f90: Likewise.
        * gfortran.dg/argument_checking_18.f90: Likewise.
        * gfortran.dg/gomp/udr8.f90: Likewise.
        * gfortran.dg/warn_argument_mismatch_1.f90: Add -std=legacy to
        the dg-options.


Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gfortran.dg/argument_checking_10.f90
    trunk/gcc/testsuite/gfortran.dg/argument_checking_13.f90
    trunk/gcc/testsuite/gfortran.dg/argument_checking_15.f90
    trunk/gcc/testsuite/gfortran.dg/argument_checking_18.f90
    trunk/gcc/testsuite/gfortran.dg/argument_checking_3.f90
    trunk/gcc/testsuite/gfortran.dg/argument_checking_4.f90
    trunk/gcc/testsuite/gfortran.dg/argument_checking_5.f90
    trunk/gcc/testsuite/gfortran.dg/argument_checking_6.f90
    trunk/gcc/testsuite/gfortran.dg/gomp/udr8.f90
    trunk/gcc/testsuite/gfortran.dg/warn_argument_mismatch_1.f90
>From gcc-bugs-return-576855-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 13:20:00 2017
Return-Path: <gcc-bugs-return-576855-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 78409 invoked by alias); 29 Sep 2017 13:20: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 71820 invoked by uid 48); 29 Sep 2017 13:19:54 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82299] -Wuseless-cast errors on typed enums used in member data initializers in c++1z
Date: Fri, 29 Sep 2017 13:20:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-82299-4-bXlbnMDS6R@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82299-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82299-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02884.txt.bz2
Content-length: 761

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

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

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

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
It was actually r240449

            Implement P0138R2, C++17 construction rules for enum class values
            * cp-tree.h (is_direct_enum_init): Declare.
            * decl.c (is_direct_enum_init): New function.
            (reshape_init): Use it.
            * typeck.c (convert_for_assignment): Likewise.

            * g++.dg/cpp1z/direct-enum-init1.C: New test.
>From gcc-bugs-return-576857-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 13:30:05 2017
Return-Path: <gcc-bugs-return-576857-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 100065 invoked by alias); 29 Sep 2017 13:30:05 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 97034 invoked by uid 48); 29 Sep 2017 13:29:59 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/25071] dummy argument larger than actual argument
Date: Fri, 29 Sep 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: fortran
X-Bugzilla-Version: 4.1.0
X-Bugzilla-Keywords: accepts-invalid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: dominiq at lps dot ens.fr
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-25071-4-LZuLRVcEio@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-25071-4@http.gcc.gnu.org/bugzilla/>
References: <bug-25071-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02886.txt.bz2
Content-length: 442

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

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

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

--- Comment #28 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Closing.
>From gcc-bugs-return-576858-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 13:32:11 2017
Return-Path: <gcc-bugs-return-576858-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 41809 invoked by alias); 29 Sep 2017 13:32:11 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 35758 invoked by uid 48); 29 Sep 2017 13:32:07 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82299] -Wuseless-cast errors on typed enums used in member data initializers in c++1z
Date: Fri, 29 Sep 2017 13:32:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to attachments.created
Message-ID: <bug-82299-4-Ag1UCKxF1l@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82299-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82299-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02887.txt.bz2
Content-length: 578

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

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

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

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 42261
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42261&action=edit
gcc8-pr82299.patch

Untested fix.
>From gcc-bugs-return-576859-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 14:07:56 2017
Return-Path: <gcc-bugs-return-576859-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 21095 invoked by alias); 29 Sep 2017 14: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 15859 invoked by uid 48); 29 Sep 2017 14:07:52 -0000
From: "ian at airs dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug go/82348] make[4]: Circular runtime.lo <- bytes.gox dependency dropped.
Date: Fri, 29 Sep 2017 14:07:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: 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-82348-4-lI4KKjXxc9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82348-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82348-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02888.txt.bz2
Content-length: 595

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

--- Comment #1 from Ian Lance Taylor <ian at airs dot com> ---
There is no internal/cpu.gox file in GCC 7, so something strange is going on. 
On current mainline internal/cpu exists, but the Makefile does not build it. 
You must have modified the libgo sources in some way.

> I would like to ask, whether gcc-compiled/gcc/gccgo is the final go compiler or it is previous generated compiler from bootstrapping.

I'm not sure I understand the question, but by the time libgo is being built,
gccgo is the final Go compiler driver.
>From gcc-bugs-return-576860-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 14:11:06 2017
Return-Path: <gcc-bugs-return-576860-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 60321 invoked by alias); 29 Sep 2017 14:11: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 54523 invoked by uid 48); 29 Sep 2017 14:10:57 -0000
From: "alexander.nesterovskiy at intel dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82362] New: [8 Regression] SPEC CPU2006 436.cactusADM ~7% performance deviation with trunk@251713
Date: Fri, 29 Sep 2017 14:11: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: alexander.nesterovskiy 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-82362-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02889.txt.bz2
Content-length: 2909

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

            Bug ID: 82362
           Summary: [8 Regression] SPEC CPU2006 436.cactusADM ~7%
                    performance deviation with trunk@251713
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: alexander.nesterovskiy at intel dot com
  Target Milestone: ---

r251713 brings reasonable improvement to alloca. However there is a side effect
of this patch - 436.cactusADM performance became unstable when compiled with
    -Ofast -march=core-avx2 -mfpmath=sse -funroll-loops
The impact is more noticeable when compiled with auto-parallelization
    -ftree-parallelize-loops=N

Comparing performance for particular 7-runs
(relative to median performance of r251711):
r251711: 92,8%   92,9%   93,0%   106,7%  107,0%  107,0%  107,2%
r251713: 99,5%   99,6%   99,8%   100,0%  100,3%  100,6%  100,6%

r251711 is prettty stable, while r251713 is +7% faster on some runs and -7%
slower on other.

There are few dynamic arrays in the body of Bench_StaggeredLeapfrog2 sub in
StaggeredLeapfrog2.fppized.f.
When compiled with "-fstack-arrays" (default for "-Ofast") arrays are allocated
by alloca.
Allocated memory size is rounded-up to 16-bytes in r251713 with code like "size
= (size + 15) & -16".
In prior revisions it differs in just one byte: "size = (size + 22) & -16"
Which actually may just waste extra 16 bytes for each array depending on
initial "size" value.

Actual r251713 code, built with
    gfortran -S -masm=intel -o StaggeredLeapfrog2.fppized_r251713.s
    -O3 -fstack-arrays -march=core-avx2 -mfpmath=sse -funroll-loops
    -ftree-parallelize-loops=8 StaggeredLeapfrog2.fppized.f
------------
lea rax, [15+r13*8]             ; size = <...> + 15
shr rax, 4                      ; zero-out
sal rax, 4                      ;     lower 4 bits
sub rsp, rax
mov QWORD PTR [rbp-4984], rsp   ; Array 1
sub rsp, rax
mov QWORD PTR [rbp-4448], rsp   ; Array 2
sub rsp, rax 
mov QWORD PTR [rbp-4784], rsp   ; Array 3 ... and so on
------------

Aligning rsp to cache line size (on each allocation or even once in the
beginning) brings performance to stable high values:
------------
lea rax, [15+r13*8] 
shr rax, 4
sal rax, 4
shr rsp, 6                      ; Align rsp to
shl rsp, 6                      ;     64-byte border
sub rsp, rax
mov QWORD PTR [rbp-4984], rsp
sub rsp, rax
mov QWORD PTR [rbp-4448], rsp
sub rsp, rax 
mov QWORD PTR [rbp-4784], rsp
------------

64-byte aligned version performance
compared to the same median performance of r251711:
106,7%  107,0%  107,0%  107,1%  107,1%  107,2%  107,4%

Maybe what is necessary here is some kind of option to force array aligning for
gfortran (like "-align array64byte" for ifort) ?
>From gcc-bugs-return-576861-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 14:13:31 2017
Return-Path: <gcc-bugs-return-576861-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 58999 invoked by alias); 29 Sep 2017 14:13: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 56929 invoked by uid 48); 29 Sep 2017 14:13:27 -0000
From: "dcb314 at hotmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82360] tree check fail in get_inner_reference, at expr.c:6996
Date: Fri, 29 Sep 2017 14:13:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dcb314 at hotmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82360-4-qJ61aMrPfh@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82360-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82360-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02890.txt.bz2
Content-length: 274

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

--- Comment #2 from David Binderman <dcb314 at hotmail dot com> ---

Here is a possibly better example, that is legal C++ code:

class a {};
template <class> class b {
  b(b &&c) : d(static_cast<a &&>(c.d)) {}
  a d;
};
>From gcc-bugs-return-576862-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 14:25:49 2017
Return-Path: <gcc-bugs-return-576862-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 72566 invoked by alias); 29 Sep 2017 14:25: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 72515 invoked by uid 48); 29 Sep 2017 14:25:44 -0000
From: "ian at airs dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug go/82348] make[4]: Circular runtime.lo <- bytes.gox dependency dropped.
Date: Fri, 29 Sep 2017 14:25:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: 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: INVALID
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ian at airs dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-82348-4-hpOcVQArS3@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82348-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82348-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02891.txt.bz2
Content-length: 1716

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

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

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

--- Comment #2 from Ian Lance Taylor <ian at airs dot com> ---
OK, now I remember that you are doing some kind of complicated mix of the GCC 7
compiler and the mainline libgo, for reasons that I don't understand.

With respect, bugzilla is not the right place to report problems while doing
that.  Bugzilla is for bugs in the ordinary unmodified releases and mainline
compiler.  If you are moving things around, and something breaks, you are
responsible for figuring out whether you broke it or whether it was always
broken.  And if you file a report in Bugzilla anyhow, please always explain
exactly what you changed.  It's impossible for us to fix problems in sources
that have been modified in ways that we don't know about.

My time, like the time of all GCC developers, is very limited.  The time I
spend investigating bug reports in modified sources is time that I am not doing
useful work.  Please 1) use a release; or 2) use unmodified mainline; or 3)
figure out these problems yourself, perhaps using a mailing list, such as
gcc-help@gcc.gnu.org or gofrontend-dev@googlegroups.com.  If you use a mailing
list, please explain exactly what you are doing and why.  I can't promise that
anyone will help, but, in any case, please don't use bugzilla.

I'm sorry I can't be more helpful about this, but it's just not a productive
use of my limited time.
>From gcc-bugs-return-576863-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 14:28:40 2017
Return-Path: <gcc-bugs-return-576863-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 78483 invoked by alias); 29 Sep 2017 14:28: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 78430 invoked by uid 48); 29 Sep 2017 14:28:37 -0000
From: "ian at airs dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug go/82208] exec_linux.go:197:27: error: reference to undefined name 'SYS_UNSHARE'
Date: Fri, 29 Sep 2017 14:28:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: 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: INVALID
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ian at airs dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-82208-4-SAIdAorIpf@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82208-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82208-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02892.txt.bz2
Content-length: 560

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

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

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

--- Comment #3 from Ian Lance Taylor <ian at airs dot com> ---
There is no reference to SYS_UNSHARE in libgo.  As best as I can tell, you are
using gccgo to compile the gc syscall package.  That can't work.
>From gcc-bugs-return-576864-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 14:42:15 2017
Return-Path: <gcc-bugs-return-576864-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 97743 invoked by alias); 29 Sep 2017 14:42:15 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 95600 invoked by uid 48); 29 Sep 2017 14:42:10 -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, 29 Sep 2017 14:42:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: 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-UZRzb3W7bQ@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-09/txt/msg02893.txt.bz2
Content-length: 338

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

--- Comment #17 from Peter Bergner <bergner at gcc dot gnu.org> ---
(In reply to Peter Bergner from comment #16)
> I have a patch that I am testing that fixes both new problems.

Patch for these two problems submitted here:

  https://gcc.gnu.org/ml/gcc-patches/2017-09/msg01924.html
>From gcc-bugs-return-576865-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 14:52:04 2017
Return-Path: <gcc-bugs-return-576865-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 64819 invoked by alias); 29 Sep 2017 14:52:04 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 64771 invoked by uid 48); 29 Sep 2017 14:52:00 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82361] Useless "mov eax, eax" in generated code
Date: Fri, 29 Sep 2017 14:52:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc attachments.created
Message-ID: <bug-82361-4-9ldPEbtgsH@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82361-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82361-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02894.txt.bz2
Content-length: 837

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

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

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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 42262
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42262&action=edit
gcc8-pr82361-wip.patch

REE pass skips all instructions with multiple sets, but e.g. combiner doesn't.
With the following WIP patch the unnecessary zero extension is gone, similarly
for
unsigned long long foo (unsigned a, unsigned b) { return a / b; }
But I think a couple more are needed to also deal with signed division and the
various optimizations.
>From gcc-bugs-return-576866-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 14:55:52 2017
Return-Path: <gcc-bugs-return-576866-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 104757 invoked by alias); 29 Sep 2017 14:55:51 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 104700 invoked by uid 55); 29 Sep 2017 14:55:46 -0000
From: "wschmidt at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82337] [5/6/7/8 Regression] ICE: SSA corruption at tree-ssa-coalesce.c:1010
Date: Fri, 29 Sep 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: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wschmidt at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: wschmidt at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82337-4-wvoAT3QFGT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82337-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82337-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02895.txt.bz2
Content-length: 955

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

--- Comment #11 from Bill Schmidt <wschmidt at gcc dot gnu.org> ---
Author: wschmidt
Date: Fri Sep 29 14:55:14 2017
New Revision: 253293

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

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

        PR tree-optimization/82337
        * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
        phi definition if the PHI result appears in an abnormal PHI.
        (find_basis_for_base_expr): Don't record a basis if the LHS of the
        basis appears in an abnormal PHI.

[gcc]

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

        PR tree-optimization/82337
        * gcc.c-torture/compile/pr82337.c: New file.


Added:
    trunk/gcc/testsuite/gcc.c-torture/compile/pr82337.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/gimple-ssa-strength-reduction.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-576867-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 14:56:31 2017
Return-Path: <gcc-bugs-return-576867-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 105974 invoked by alias); 29 Sep 2017 14:56:31 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 105892 invoked by uid 48); 29 Sep 2017 14:56:25 -0000
From: "wschmidt at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82337] [5/6/7/8 Regression] ICE: SSA corruption at tree-ssa-coalesce.c:1010
Date: Fri, 29 Sep 2017 14:56:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wschmidt at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: wschmidt at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82337-4-HYZaUbF4r5@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82337-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82337-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02896.txt.bz2
Content-length: 195

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

--- Comment #12 from Bill Schmidt <wschmidt at gcc dot gnu.org> ---
Fixed in trunk so far.  Backports to follow after a few days of burn-in.
>From gcc-bugs-return-576868-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 15:19:54 2017
Return-Path: <gcc-bugs-return-576868-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 46634 invoked by alias); 29 Sep 2017 15:19: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 46601 invoked by uid 48); 29 Sep 2017 15:19:51 -0000
From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82362] [8 Regression] SPEC CPU2006 436.cactusADM ~7% performance deviation with trunk@251713
Date: Fri, 29 Sep 2017 15:19:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tkoenig at gcc dot gnu.org
X-Bugzilla-Status: 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-82362-4-anzGcvQpCl@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82362-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82362-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02897.txt.bz2
Content-length: 292

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

Thomas Koenig <tkoenig at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |8.0
>From gcc-bugs-return-576869-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 17:16:07 2017
Return-Path: <gcc-bugs-return-576869-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 92413 invoked by alias); 29 Sep 2017 17:16:07 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 92335 invoked by uid 55); 29 Sep 2017 17:16:02 -0000
From: "vmakarov at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/82338] valgrind error in inherit_in_ebb
Date: Fri, 29 Sep 2017 17:16:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ra
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vmakarov at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82338-4-4Y7TC9WHAI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82338-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82338-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02898.txt.bz2
Content-length: 494

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

--- Comment #3 from Vladimir Makarov <vmakarov at gcc dot gnu.org> ---
Author: vmakarov
Date: Fri Sep 29 17:15:24 2017
New Revision: 253299

URL: https://gcc.gnu.org/viewcvs?rev=253299&root=gcc&view=rev
Log:
2017-09-29  Vladimir Makarov  <vmakarov@redhat.com>

        PR rtl-optimization/82338
        * lra-constraints.c (inherit_in_ebb): Check usage_insns check.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/lra-constraints.c
>From gcc-bugs-return-576870-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 17:40:34 2017
Return-Path: <gcc-bugs-return-576870-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 15948 invoked by alias); 29 Sep 2017 17:40: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 15837 invoked by uid 55); 29 Sep 2017 17:40:29 -0000
From: "vmakarov at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81481] [7/8 Regression] Spills %xmm to stack in glibc strspn SSE 4.2 variant
Date: Fri, 29 Sep 2017 17:40:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization, ra
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vmakarov at gcc dot gnu.org
X-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-81481-4-eWyKIEItzL@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81481-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81481-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02899.txt.bz2
Content-length: 722

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

--- Comment #5 from Vladimir Makarov <vmakarov at gcc dot gnu.org> ---
Author: vmakarov
Date: Fri Sep 29 17:39:58 2017
New Revision: 253300

URL: https://gcc.gnu.org/viewcvs?rev=253300&root=gcc&view=rev
Log:
2017-09-29  Vladimir Makarov  <vmakarov@redhat.com>

        PR target/81481
        * ira-costs.c (scan_one_insn): Don't take into account PIC equiv
        with a symbol for LRA.

2017-09-29  Vladimir Makarov  <vmakarov@redhat.com>

        PR target/81481
        * gcc.target/i386/pr81481.c: New.


Added:
    trunk/gcc/testsuite/gcc.target/i386/pr81481.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/ira-costs.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-576871-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 17:44:54 2017
Return-Path: <gcc-bugs-return-576871-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 30969 invoked by alias); 29 Sep 2017 17:44:54 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 28702 invoked by uid 48); 29 Sep 2017 17:44:50 -0000
From: "su at cs dot ucdavis.edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82363] New: wrong code at -O1, -O2 and -O3 on x86_64-linux-gnu
Date: Fri, 29 Sep 2017 17:44:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: su at cs dot ucdavis.edu
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-82363-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02900.txt.bz2
Content-length: 1542

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

            Bug ID: 82363
           Summary: wrong code at -O1, -O2 and -O3 on x86_64-linux-gnu
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: su at cs dot ucdavis.edu
  Target Milestone: ---

This seems to be a recent regression. 

$ gcctk -v
Using built-in specs.
COLLECT_GCC=gcctk
COLLECT_LTO_WRAPPER=/home/su/software/tmp/gcc/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/8.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc-source-trunk/configure --enable-languages=c,c++,lto
--prefix=/home/su/software/tmp/gcc/gcc-trunk --disable-bootstrap
Thread model: posix
gcc version 8.0.0 20170929 (experimental) [trunk revision 253283] (GCC)
$
$ gcc-7.2.0 -O1 small.c; ./a.out
1
$ gcctk -O0 small.c; ./a.out
1
$
$ gcctk -O1 small.c; ./a.out
0
$


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


int printf (const char *, ...);

struct A
{ 
  int b;
  int c;
  int d;
};

struct E
{ 
  int f;
  int g:18;
  struct A h;
};

struct I
{ 
  int b;
  int j;
  struct E k;
};

int l, *m = &l;

struct A n;
struct I o;

int main ()
{ 
  while (1)
    { 
      struct I q = { 0, 0, {0, 0, {1, 1, 1}}}, p = q, r = p, *s = &q;
      if (p.k.h.c)
        o = p;
      *m = r.k.h.d;
      n = (*s).k.h;
      break;
    }
  printf ("%d\n", l);
  return 0;
}
>From gcc-bugs-return-576872-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 18:14:47 2017
Return-Path: <gcc-bugs-return-576872-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 27896 invoked by alias); 29 Sep 2017 18:14:47 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 27620 invoked by uid 48); 29 Sep 2017 18:14:43 -0000
From: "mfe at live dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug go/82348] make[4]: Circular runtime.lo <- bytes.gox dependency dropped.
Date: Fri, 29 Sep 2017 18:14:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: go
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mfe at live dot de
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: INVALID
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ian at airs dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82348-4-D8ShW66ef4@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82348-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82348-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02901.txt.bz2
Content-length: 838

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

--- Comment #3 from martin <mfe at live dot de> ---
As suggested (in another bugreport) I built gcc from the gcc-trunk source
without any local modification. 

I compiled gcc from the following revision:

>gcc-trunk# svn info
>Path: .
>URL: svn://gcc.gnu.org/svn/gcc/trunk
>Repository Root: svn://gcc.gnu.org/svn/gcc
>Repository UUID: 138bc75d-0d04-0410-961f-82ee72b054a4
>Revision: 253004
>Node Kind: directory
>Schedule: normal
>Last Changed Author: jakub
>Last Changed Rev: 253004
>Last Changed Date: 2017-09-20 11:04:22 +0200 (Wed, 20 Sep 2017)

I also can ensure that I did not modify any local files of the gcc source
files, which I checked with `svn status`, or any other generated gcc build
files. 
Anyway, I understand your concerns, and I will proceed as you described.
>From gcc-bugs-return-576873-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 18:30:50 2017
Return-Path: <gcc-bugs-return-576873-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 62594 invoked by alias); 29 Sep 2017 18:30: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 62537 invoked by uid 48); 29 Sep 2017 18:30:46 -0000
From: "ian at airs dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug go/82348] make[4]: Circular runtime.lo <- bytes.gox dependency dropped.
Date: Fri, 29 Sep 2017 18:30:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: 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: INVALID
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ian at airs dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82348-4-FJhpt8T54Y@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82348-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82348-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02902.txt.bz2
Content-length: 303

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

--- Comment #4 from Ian Lance Taylor <ian at airs dot com> ---
My apologies for jumping to conclusions.

If you are building from trunk there should not be any references to
internal/cpu.gox.  What does your TARGET/libgo/math.lo.dep file look like?
>From gcc-bugs-return-576874-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 18:33:26 2017
Return-Path: <gcc-bugs-return-576874-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 88501 invoked by alias); 29 Sep 2017 18: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 88286 invoked by uid 48); 29 Sep 2017 18:33:22 -0000
From: "bunk at stusta dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82364] New: [7 Regression] Enormous memory usage when building on 32bit i386 with >= -O1
Date: Fri, 29 Sep 2017 18:33:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: bunk at stusta 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-82364-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02903.txt.bz2
Content-length: 2036

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

            Bug ID: 82364
           Summary: [7 Regression] Enormous memory usage when building on
                    32bit i386 with >= -O1
           Product: gcc
           Version: 7.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: bunk at stusta dot de
  Target Milestone: ---

Created attachment 42263
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42263&action=edit
piglit-util-gl-enum-gen.i

piglit fails to build on 32bit i386 in Debian unstable, the problem is:

$ /usr/bin/time -f "%M" gcc-6 piglit-util-gl-enum-gen.i -c -O0
40364
$ /usr/bin/time -f "%M" gcc-6 piglit-util-gl-enum-gen.i -c -O1
54460
$ /usr/bin/time -f "%M" gcc-6 piglit-util-gl-enum-gen.i -c -O2
79688
$ /usr/bin/time -f "%M" gcc-6 piglit-util-gl-enum-gen.i -c -O3
79904
$ /usr/bin/time -f "%M" gcc-7 piglit-util-gl-enum-gen.i -c -O0
41732
$ /usr/bin/time -f "%M" gcc-7 piglit-util-gl-enum-gen.i -c -O1
679260
$ /usr/bin/time -f "%M" gcc-7 piglit-util-gl-enum-gen.i -c -O2

cc1: out of memory allocating 396567608 bytes after a total of 3083091968 bytes
Command exited with non-zero status 1
3476008
$ /usr/bin/time -f "%M" /usr/lib/gcc-snapshot/bin/gcc piglit-util-gl-enum-gen.i
-c -O0
42044
$ /usr/bin/time -f "%M" /usr/lib/gcc-snapshot/bin/gcc piglit-util-gl-enum-gen.i
-c -O1
51152
$ /usr/bin/time -f "%M" /usr/lib/gcc-snapshot/bin/gcc piglit-util-gl-enum-gen.i
-c -O2
83636
$ /usr/bin/time -f "%M" /usr/lib/gcc-snapshot/bin/gcc piglit-util-gl-enum-gen.i
-c -O3
83668
$ gcc-6 --version
gcc-6 (Debian 6.4.0-7) 6.4.0 20170920
...
$ gcc-7 --version
gcc-7 (Debian 7.2.0-7) 7.2.0
...
$ /usr/lib/gcc-snapshot/bin/gcc --version
gcc (Debian 20170923-1) 8.0.0 20170923 (experimental) [trunk revision 253114]
...
$ 

7.2.0-7 is based on SVN 20170923 (r253114) from the gcc-7-branch.

Building on 64bit amd64 with -m32 has a normal memory usage (98 MB).
>From gcc-bugs-return-576875-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 18:48:45 2017
Return-Path: <gcc-bugs-return-576875-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 1968 invoked by alias); 29 Sep 2017 18:48:45 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 1483 invoked by uid 48); 29 Sep 2017 18:48:34 -0000
From: "ian at airs dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug go/82131] FAIL: TestCgoCallbackGC in gotools testsuite; segfaults in morestack.S:529
Date: Fri, 29 Sep 2017 18:48:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: 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-82131-4-5P9xM0bK7p@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82131-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82131-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02904.txt.bz2
Content-length: 420

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

--- Comment #2 from Ian Lance Taylor <ian at airs dot com> ---
I have not been able to create this.

Are you using GNU ld or the gold linker?  I've tried both and for me it works
either way, but it might help to know.


Can you find out why it is getting a segmentation violation on the call
instruction?  Is the problem that the stack pointer has become invalid?
>From gcc-bugs-return-576876-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 19:16:39 2017
Return-Path: <gcc-bugs-return-576876-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 63387 invoked by alias); 29 Sep 2017 19: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 63262 invoked by uid 48); 29 Sep 2017 19:16:35 -0000
From: "clyon at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/82365] New: excessive stack usage with norreturn attribute
Date: Fri, 29 Sep 2017 19:16: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: clyon at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created
Message-ID: <bug-82365-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02905.txt.bz2
Content-length: 1649

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

            Bug ID: 82365
           Summary: excessive stack usage with norreturn attribute
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: clyon at gcc dot gnu.org
  Target Milestone: ---

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

We have noticed that gcc fails to reuse stack locations in presence of noreturn
attribute in the call graph.

Basically, the attached testcase has
case 1: { struct XXX localvar; bla1; break; }
case 2: { struct XXX localvar; bla2; break; }
case 3: { struct XXX localvar; bal3; break; }

With noreturn attribute:

aarch64-linux-gnu-gcc -Wall -O2 -S bz-3265.c --param asan-stack=1
-Wframe-larger-than=1 
bz-3265.c: In function ‘em28xx_dvb_init’:
bz-3265.c:99:1: warning: the frame size of 480 bytes is larger than 1 bytes
[-Wframe-larger-than=]


Without noreturn attribute:
aarch64-linux-gnu-gcc -Wall -O2 -S bz-3265.c --param asan-stack=1
-Wframe-larger-than=1 -DNONORETURN
bz-3265.c: In function ‘em28xx_dvb_init’:
bz-3265.c:99:1: warning: the frame size of 128 bytes is larger than 1 bytes
[-Wframe-larger-than=]


The code fragment is extracted from the linux kernel where this causes more
problems with using -fsanitize=kernel-address, where this causes excessive
stack usage.

I used an aarch64 compiler here, but Arnd observed similar problems on x86_64
too.
>From gcc-bugs-return-576877-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 19:28:28 2017
Return-Path: <gcc-bugs-return-576877-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 71432 invoked by alias); 29 Sep 2017 19:28:28 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 69342 invoked by uid 48); 29 Sep 2017 19:28:20 -0000
From: "spamdrop at fodvo dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/82366] New: std::regex constructor called from shared library throws std::bad_cast
Date: Fri, 29 Sep 2017 19:28: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: spamdrop at fodvo dot org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created
Message-ID: <bug-82366-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02906.txt.bz2
Content-length: 19579

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

            Bug ID: 82366
           Summary: std::regex constructor called from shared library
                    throws std::bad_cast
           Product: gcc
           Version: 7.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: spamdrop at fodvo dot org
  Target Milestone: ---

Created attachment 42265
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42265&action=edit
Included source code to the callback function, the .ii file

I am writing a callback function in C++ that will be called from Oracle
GoldenGate via the User Exit Function API; hence I don't have the source to the
calling program.  The code is linked in as a share lib .so module.

My code (ggpost.cpp) in the attachment is about as simple a shared lib I can
create, all it does is create the following lines:

std::string test = "${foobar}";
std::smatch m;
std::regex e ("\\$\\{[a-zA-Z_]+[a-zA-Z0-9_]*}");
bool foo = std::regex_search(test, m, e);
std::cerr << "Foo = " << foo << endl;

When the code is compiled against 7.1.0, and run from Oracle GG, is creates the
following :
terminate called after throwing an instance of 'std::bad_cast'
  what():  std::bad_cast
Aborted (core dumped)

However, if I compile the same code in gcc 4.9.2, it works fine.  Also I have
attempted to construct my own calling program and I cannot duplicate the
problem with either compiler.

I have gathered as much detail as I can, but because it required OGG to
duplicate the full problem, I'm handicapped providing all the information
requested in the submission form.

CUsrText is my attempt to create a local parent program to duplicate the
problem, I include it, but it doesn't show the problem.

Below is the detailed writeup, and an attachment is included with the code I
can provide.
-------------------------------------
Compile machine
uname -r
2.6.32-642.15.1.el6.x86_64


gcc --version
gcc (GCC) 7.1.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.



configure lines:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.64.  Invocation command line was

  $ ../gcc-7.1.0/configure --prefix=/dvl/odb/tools/gcc-7.1.0/

## --------- ##
## Platform. ##
## --------- ##

hostname = evdla176.delta.com
uname -m = x86_64
uname -r = 2.6.32-642.15.1.el6.x86_64
uname -s = Linux
uname -v = #1 SMP Mon Feb 20 02:26:38 EST 2017



Build of libggpost.so:
make
 g++ -save-temps -fPIC -g -ggdb -Wall -Wextra -fno-strict-aliasing -fwrapv
-fno-aggressive-loop-optimizations -Wnon-virtual-dtor -ggdb
-D_POSIX_PTHREAD_SEMANTICS -D_FILE_OFFSET_BITS=64 -DTIXML_USE_STL -D_LINUX_
-fpermissive  -std=c++11   -I/. -I/usr/include/ -I/../../include
-I/home/b/bfoddy/odb5/dev/cc/snapshots/a26811_snap_linux.4/vobs/soc/include -c
ggpost.cpp -o ggpost.o 
evdla176:/home/b/bfoddy/odb5/dev/cc/snapshots/a26811_snap_linux.4/vobs/soc/ODB/goldengate
> g++  -fPIC -save-temps ggpost.o -o libggpost.so -shared

evdla176:/home/b/bfoddy/odb5/dev/cc/snapshots/a26811_snap_linux.4/vobs/soc/ODB/goldengate
> ll *.i*
-rw-r--r-- 1 545165 dtdev 1653968 Sep 29 18:04 ggpost.ii


ll libggpost.so
-rwxr-xr-x 1 545165 dtdev 1956286 Sep 29 18:05 libggpost.so

evdla176:/home/b/bfoddy/odb5/dev/cc/snapshots/a26811_snap_linux.4/vobs/soc/ODB/goldengate
> ldd libggpost.so
        linux-vdso.so.1 =>  (0x00007ffd4eff0000)
        libstdc++.so.6 => /dvl/odb/tools/gcc-7.1.0/lib64/libstdc++.so.6
(0x00007f4e72248000)
        libm.so.6 => /lib64/libm.so.6 (0x00007f4e71faf000)
        libgcc_s.so.1 => /dvl/odb/tools/gcc-7.1.0/lib64/libgcc_s.so.1
(0x00007f4e71d99000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f4e71a05000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f4e7287f000)

If I use my CUsrExitText program, no problem.       
./CUsrExitText 
Start , open DL
Open success.
Calling lib
Foo = 1

Now copy libggpost.so to runtime machine where Oracle GG installed.

from runtime machine:
uname -r
2.6.32-431.el6.x86_64


[omsd@evdla078 JMS_Adapter]$ ldd libggpost.so 
        linux-vdso.so.1 =>  (0x00007fff855ff000)
        libstdc++.so.6 => /dvl/oms6/gcc-7.1.0/lib64/libstdc++.so.6
(0x00007fc4dc023000)
        libm.so.6 => /lib64/libm.so.6 (0x00007fc4dbd8e000)
        libgcc_s.so.1 => /dvl/oms6/gcc-7.1.0/lib64/libgcc_s.so.1
(0x00007fc4dbb78000)
        libc.so.6 => /lib64/libc.so.6 (0x00007fc4db7e4000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fc4dc65a000)


Now run the Oracle GG Extract program, which is configured to open libggpost.so
and call the function CUSEREXIT with EXIT_CALL_START as its first argument.

 ./extract PARAMFILE ./dirprm/foddyue.prm 

***********************************************************************
                       Oracle GoldenGate Capture
 Version 12.2.0.1.160419 OGGCORE_12.2.0.1.0OGGBP_PLATFORMS_160430.1401
    Linux, x64, 64bit (optimized), Generic on Apr 30 2016 17:32:41

Copyright (C) 1995, 2016, Oracle and/or its affiliates. All rights reserved.


                    Starting at 2017-09-29 18:23:38
***********************************************************************

Operating System Version:
Linux
Version #1 SMP Sun Nov 10 22:19:54 EST 2013, Release 2.6.32-431.el6.x86_64
Node: evdla078.delta.com
Machine: x86_64
                         soft limit   hard limit
Address Space Size   :    unlimited    unlimited
Heap Size            :    unlimited    unlimited
File Size            :    unlimited    unlimited
CPU Time             :    unlimited    unlimited

Process id: 17780

Description: 

***********************************************************************
**            Running with the following parameters                  **
***********************************************************************

2017-09-29 18:23:38  INFO    OGG-03059  Operating system character set
identified as UTF-8.

2017-09-29 18:23:38  INFO    OGG-02695  ANSI SQL parameter syntax is used for
parameter parsing.
Extract foddyue
GETENV(LD_LIBRARY_PATH)
LD_LIBRARY_PATH =
:/dvl/oms6/OracleGG/JMS_Adapter:/dvl/oms6/OracleGG/JDK/jdk1.8.0_144//jre/lib/amd64/server:/dvl/oms6/gcc-7.1.0/lib64:/opt/mqm/lib64
SourceDefs dirdef/jmsrep.def
CUserExit libggpost.so CUSEREXIT PassThru IncludeUpdateBefores

2017-09-29 18:23:38  INFO    OGG-04523  ./extract running with user exit
library libggpost.so,  compatiblity level (4) is not current, using
compatiblity level (1).

2017-09-29 18:23:38  INFO    OGG-04526  ./extract running with user exit
library libggpost.so. Current session character set is operating system default
character set.
GetUpdateBefores
Table ODB_PRIMARY.*;

2017-09-29 18:23:38  INFO    OGG-01851  filecaching started: thread ID:
139767519692544.

2017-09-29 18:23:38  INFO    OGG-01815  Virtual Memory Facilities for: COM
    anon alloc: mmap(MAP_ANON)  anon free: munmap
    file alloc: mmap(MAP_SHARED)  file free: munmap
    target directories:
    /dvl/oms6/OracleGG/JMS_Adapter/dirtmp.

CACHEMGR virtual memory values (may have been adjusted)
CACHEPAGEOUTSIZE (default):               8M
PROCESS VM AVAIL FROM OS (min):         128G
CACHESIZEMAX (strict force to disk):     96G
CACHEVMPAGEOUTMAX:                       64M
terminate called after throwing an instance of 'std::bad_cast'
  what():  std::bad_cast
Aborted (core dumped)

Since a core was created, I'm including the gdb stacktrace.

gdb extract core.17780
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-60.el6_4.1)
Copyright (C) 2010 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-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /dvl/oms6/OracleGG/JMS_Adapter/extract...done.
[New Thread 17780]
[New Thread 17784]
[New Thread 17783]
[New Thread 17781]
[New Thread 17782]
[New Thread 17785]
Missing separate debuginfo for 
Try: yum --disablerepo='*' --enablerepo='*-debug*' install
/usr/lib/debug/.build-id/81/a81be2e44c93640adedb62adc93a47f4a09dd1
Reading symbols from /lib64/librt.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib64/librt.so.1
Reading symbols from /lib64/libdl.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib64/libdl.so.2
Reading symbols from /dvl/oms6/OracleGG/JMS_Adapter/libggparam.so...done.
Loaded symbols for /dvl/oms6/OracleGG/JMS_Adapter/libggparam.so
Reading symbols from /dvl/oms6/OracleGG/JMS_Adapter/libgglog.so...done.
Loaded symbols for /dvl/oms6/OracleGG/JMS_Adapter/libgglog.so
Reading symbols from /dvl/oms6/OracleGG/JMS_Adapter/libggrepo.so...done.
Loaded symbols for /dvl/oms6/OracleGG/JMS_Adapter/libggrepo.so
Reading symbols from /dvl/oms6/OracleGG/JMS_Adapter/libdb-6.1.so...(no
debugging symbols found)...done.
Loaded symbols for /dvl/oms6/OracleGG/JMS_Adapter/libdb-6.1.so
Reading symbols from /dvl/oms6/OracleGG/JMS_Adapter/libggperf.so...done.
Loaded symbols for /dvl/oms6/OracleGG/JMS_Adapter/libggperf.so
Reading symbols from /dvl/oms6/OracleGG/JMS_Adapter/libicui18n.so.48...(no
debugging symbols found)...done.
Loaded symbols for /dvl/oms6/OracleGG/JMS_Adapter/libicui18n.so.48
Reading symbols from /dvl/oms6/OracleGG/JMS_Adapter/libicuuc.so.48...(no
debugging symbols found)...done.
Loaded symbols for /dvl/oms6/OracleGG/JMS_Adapter/libicuuc.so.48
Reading symbols from /dvl/oms6/OracleGG/JMS_Adapter/libicudata.so.48...(no
debugging symbols found)...done.
Loaded symbols for /dvl/oms6/OracleGG/JMS_Adapter/libicudata.so.48
Reading symbols from /dvl/oms6/OracleGG/JMS_Adapter/libxerces-c.so.28...(no
debugging symbols found)...done.
Loaded symbols for /dvl/oms6/OracleGG/JMS_Adapter/libxerces-c.so.28
Reading symbols from /lib64/libpthread.so.0...(no debugging symbols
found)...done.
[Thread debugging using libthread_db enabled]
Loaded symbols for /lib64/libpthread.so.0
Reading symbols from /dvl/oms6/OracleGG/JMS_Adapter/libantlr3c.so...(no
debugging symbols found)...done.
Loaded symbols for /dvl/oms6/OracleGG/JMS_Adapter/libantlr3c.so
Reading symbols from /dvl/oms6/OracleGG/JMS_Adapter/libggnnzitp.so...done.
Loaded symbols for /dvl/oms6/OracleGG/JMS_Adapter/libggnnzitp.so
Reading symbols from /lib64/libm.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib64/libm.so.6
Reading symbols from /lib64/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib64/libc.so.6
Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols
found)...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Reading symbols from /dvl/oms6/gcc-7.1.0/lib64/libstdc++.so.6...done.
Loaded symbols for /dvl/oms6/gcc-7.1.0/lib64/libstdc++.so.6
Reading symbols from /dvl/oms6/gcc-7.1.0/lib64/libgcc_s.so.1...done.
Loaded symbols for /dvl/oms6/gcc-7.1.0/lib64/libgcc_s.so.1
Reading symbols from /dvl/oms6/OracleGG/JMS_Adapter/libggpost.so...done.
Loaded symbols for /dvl/oms6/OracleGG/JMS_Adapter/libggpost.so
Reading symbols from /lib64/libnss_files.so.2...(no debugging symbols
found)...done.
Loaded symbols for /lib64/libnss_files.so.2
Core was generated by `./extract PARAMFILE ./dirprm/foddyue.prm'.
Program terminated with signal 6, Aborted.
#0  0x00007f1e2c814625 in raise () from /lib64/libc.so.6
warning: File "/dvl/oms6/gcc-7.1.0/lib64/libstdc++.so.6.0.23-gdb.py"
auto-loading has been declined by your `auto-load safe-path' set to
"/usr/share/gdb/auto-load:/usr/lib/debug:/usr/bin/mono-gdb.py".
To enable execution of this file add
        add-auto-load-safe-path
/dvl/oms6/gcc-7.1.0/lib64/libstdc++.so.6.0.23-gdb.py
line to your configuration file "/dvl/oms5/home/omsd/.gdbinit".
To completely disable this security protection add
        set auto-load safe-path /
line to your configuration file "/dvl/oms5/home/omsd/.gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual.  E.g., run from the shell:
        info "(gdb)Auto-loading safe path"
Missing separate debuginfos, use: debuginfo-install
glibc-2.12-1.149.el6_6.5.x86_64
(gdb) where
#0  0x00007f1e2c814625 in raise () from /lib64/libc.so.6
#1  0x00007f1e2c815e05 in abort () from /lib64/libc.so.6
#2  0x00007f1e30c81c6d in __gnu_cxx::__verbose_terminate_handler () at
../../.././libstdc++-v3/libsupc++/vterminate.cc:95
#3  0x00007f1e30c82226 in __cxxabiv1::__terminate (handler=Unhandled dwarf
expression opcode 0xf3
) at ../../.././libstdc++-v3/libsupc++/eh_terminate.cc:40
#4  0x00007f1e30c82253 in std::terminate () at
../../.././libstdc++-v3/libsupc++/eh_terminate.cc:50
#5  0x00007f1e30c79723 in __cxxabiv1::__cxa_throw (obj=0x2a339d0,
tinfo=0x7f1e30eeb170, dest=0x7f1e30c86450 <std::bad_cast::~bad_cast()>)
    at ../../.././libstdc++-v3/libsupc++/eh_throw.cc:86
#6  0x00007f1e30c85c82 in std::__throw_bad_cast () at
../../../.././libstdc++-v3/src/c++11/functexcept.cc:58
#7  0x00007f1e2c5308c7 in std::__cxx11::collate<char> const&
std::use_facet<std::__cxx11::collate<char> >(std::locale const&) ()
    at
/dvl/odb5/build/gcc-7.1.0.obj/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/locale_classes.tcc:137
#8  0x00007f1e2964c897 in std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> >
std::__cxx11::regex_traits<char>::transform<char*>(char*, char*) const () at
/dvl/odb/tools/gcc-7.1.0/include/c++/7.1.0/bits/regex.h:233
#9  0x00007f1e2964a2b4 in std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> >
std::__cxx11::regex_traits<char>::transform_primary<char const*>(char const*,
char const*) const () at
/dvl/odb/tools/gcc-7.1.0/include/c++/7.1.0/bits/regex.h:266
#10 0x00007f1e296458f7 in
std::__detail::_BracketMatcher<std::__cxx11::regex_traits<char>, false,
false>::_M_apply(char, std::integral_constant<bool, false>)
const::{lambda()#1}::operator()() const () at
/dvl/odb/tools/gcc-7.1.0/include/c++/7.1.0/bits/regex_compiler.tcc:626
#11 0x00007f1e29645a78 in
std::__detail::_BracketMatcher<std::__cxx11::regex_traits<char>, false,
false>::_M_apply(char, std::integral_constant<bool, false>) const ()
    at /dvl/odb/tools/gcc-7.1.0/include/c++/7.1.0/bits/regex_compiler.tcc:634
#12 0x00007f1e296411e7 in
std::__detail::_BracketMatcher<std::__cxx11::regex_traits<char>, false,
false>::_M_make_cache(std::integral_constant<bool, true>) ()
    at /dvl/odb/tools/gcc-7.1.0/include/c++/7.1.0/bits/regex_compiler.h:555
#13 0x00007f1e2963d484 in
std::__detail::_BracketMatcher<std::__cxx11::regex_traits<char>, false,
false>::_M_ready() ()
    at /dvl/odb/tools/gcc-7.1.0/include/c++/7.1.0/bits/regex_compiler.h:524
#14 0x00007f1e2963e096 in void
std::__detail::_Compiler<std::__cxx11::regex_traits<char>
>::_M_insert_bracket_matcher<false, false>(bool) ()
    at /dvl/odb/tools/gcc-7.1.0/include/c++/7.1.0/bits/regex_compiler.tcc:444
#15 0x00007f1e2963aa77 in
std::__detail::_Compiler<std::__cxx11::regex_traits<char>
>::_M_bracket_expression() ()
    at /dvl/odb/tools/gcc-7.1.0/include/c++/7.1.0/bits/regex_compiler.tcc:363
#16 0x00007f1e296364a8 in
std::__detail::_Compiler<std::__cxx11::regex_traits<char> >::_M_atom() () at
/dvl/odb/tools/gcc-7.1.0/include/c++/7.1.0/bits/regex_compiler.tcc:349
#17 0x00007f1e29633685 in
std::__detail::_Compiler<std::__cxx11::regex_traits<char> >::_M_term() () at
/dvl/odb/tools/gcc-7.1.0/include/c++/7.1.0/bits/regex_compiler.tcc:139
#18 0x00007f1e296313c9 in
std::__detail::_Compiler<std::__cxx11::regex_traits<char> >::_M_alternative()
()
    at /dvl/odb/tools/gcc-7.1.0/include/c++/7.1.0/bits/regex_compiler.tcc:121
#19 0x00007f1e296313ec in
std::__detail::_Compiler<std::__cxx11::regex_traits<char> >::_M_alternative()
()
    at /dvl/odb/tools/gcc-7.1.0/include/c++/7.1.0/bits/regex_compiler.tcc:124
#20 0x00007f1e296313ec in
std::__detail::_Compiler<std::__cxx11::regex_traits<char> >::_M_alternative()
()
    at /dvl/odb/tools/gcc-7.1.0/include/c++/7.1.0/bits/regex_compiler.tcc:124
#21 0x00007f1e2962fb71 in
std::__detail::_Compiler<std::__cxx11::regex_traits<char> >::_M_disjunction()
()
    at /dvl/odb/tools/gcc-7.1.0/include/c++/7.1.0/bits/regex_compiler.tcc:97
#22 0x00007f1e2962ef64 in
std::__detail::_Compiler<std::__cxx11::regex_traits<char> >::_Compiler(char
const*, char const*, std::locale const&,
std::regex_constants::syntax_option_type) () at
/dvl/odb/tools/gcc-7.1.0/include/c++/7.1.0/bits/regex_compiler.tcc:82
#23 0x00007f1e2962e397 in
std::enable_if<std::__detail::__is_contiguous_normal_iter<char const*>::value,
std::shared_ptr<std::__detail::_NFA<std::__cxx11::regex_traits<char> > const>
>::type std::__detail::__compile_nfa<char const*,
std::__cxx11::regex_traits<char> >(char const*, char const*,
std::__cxx11::regex_traits<char>::locale_type const&,
std::regex_constants::syntax_option_type) () at
/dvl/odb/tools/gcc-7.1.0/include/c++/7.1.0/bits/regex_compiler.h:203
#24 0x00007f1e2962db1d in std::__cxx11::basic_regex<char,
std::__cxx11::regex_traits<char> >::basic_regex<char const*>(char const*, char
const*, std::locale, std::regex_constants::syntax_option_type) () at
/dvl/odb/tools/gcc-7.1.0/include/c++/7.1.0/bits/regex.h:769
#25 0x00007f1e2962d794 in std::__cxx11::basic_regex<char,
std::__cxx11::regex_traits<char> >::basic_regex<char const*>(char const*, char
const*, std::regex_constants::syntax_option_type) () at
/dvl/odb/tools/gcc-7.1.0/include/c++/7.1.0/bits/regex.h:512
#26 0x00007f1e2962d474 in std::__cxx11::basic_regex<char,
std::__cxx11::regex_traits<char> >::basic_regex(char const*,
std::regex_constants::syntax_option_type) ()
    at /dvl/odb/tools/gcc-7.1.0/include/c++/7.1.0/bits/regex.h:445
#27 0x00007f1e2962c647 in CUSEREXIT () at ggpost.cpp:44
#28 0x0000000000591f4a in call_user_exit_routine (call_type=1) at
/scratch/aime/adestore/views/aime_adc4150338/oggcore/OpenSys/src/app/er/userexit.c:825
#29 call_user_exit_routine (call_type=1) at
/scratch/aime/adestore/views/aime_adc4150338/oggcore/OpenSys/src/app/er/userexit.c:807
#30 0x00000000005f0e43 in extract_main (argc=Unhandled dwarf expression opcode
0xf3
) at
/scratch/aime/adestore/views/aime_adc4150338/oggcore/OpenSys/src/app/er/extract/extract.cpp:826
#31 0x000000000074db96 in ggs::gglib::MultiThreading::MainThread::ExecMain
(this=0x7fff47e75370)
    at
/scratch/aime/adestore/views/aime_adc4150338/oggcore/OpenSys/src/gglib/ggstd/MultiThreading.cpp:1305
#32 0x0000000000751fc7 in ggs::gglib::MultiThreading::Thread::RunThread(struct
{...} *) (threadArgs=Unhandled dwarf expression opcode 0xf3
)
    at
/scratch/aime/adestore/views/aime_adc4150338/oggcore/OpenSys/src/gglib/ggstd/MultiThreading.cpp:499
---Type <return> to continue, or q <return> to quit---
#33 0x00000000007525dd in ggs::gglib::MultiThreading::MainThread::Run
(this=Unhandled dwarf expression opcode 0xf3
)
    at
/scratch/aime/adestore/views/aime_adc4150338/oggcore/OpenSys/src/gglib/ggstd/MultiThreading.cpp:1296
#34 0x00000000005f1d4b in main ()


The full core file is available on request.  I've given as much supporting info
as I can, hopefully its enough.
>From gcc-bugs-return-576878-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 19:31:58 2017
Return-Path: <gcc-bugs-return-576878-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 102938 invoked by alias); 29 Sep 2017 19:31: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 102883 invoked by uid 48); 29 Sep 2017 19:31:54 -0000
From: "matt at godbolt dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82299] -Wuseless-cast errors on typed enums used in member data initializers in c++1z
Date: Fri, 29 Sep 2017 19:31:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: matt at godbolt dot org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82299-4-z4FFSYruTg@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82299-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82299-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02907.txt.bz2
Content-length: 341

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

--- Comment #5 from Matt Godbolt <matt at godbolt dot org> ---
NB the proposed patch above has a test that compiles with -std=c++11 -- this
bug only occurs with std=c++1z, not 11. The fix may be right, but I wonder if
the test needs to be changed? Unless I've misread something.
>From gcc-bugs-return-576879-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 19:40:53 2017
Return-Path: <gcc-bugs-return-576879-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 60200 invoked by alias); 29 Sep 2017 19: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 60140 invoked by uid 55); 29 Sep 2017 19:40:48 -0000
From: "ygribov at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/82319] [8 Regression] ICE in generic_simplify_148, at generic-match.c:6436
Date: Fri, 29 Sep 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: middle-end
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ygribov 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-82319-4-s3oB9OcNoT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82319-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82319-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02908.txt.bz2
Content-length: 610

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

--- Comment #8 from Yury Gribov <ygribov at gcc dot gnu.org> ---
Author: ygribov
Date: Fri Sep 29 19:40:16 2017
New Revision: 253307

URL: https://gcc.gnu.org/viewcvs?rev=253307&root=gcc&view=rev
Log:
2017-09-29  Yury Gribov  <tetra2005@gmail.com>

        PR middle-end/82319
gcc/
        * match.pd: Fix handling of NaNs in pattern.

gcc/testsuite/
        * c-c++/common/pr57371-4.c: Test NaN comparisons.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/match.pd
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/c-c++-common/pr57371-4.c
>From gcc-bugs-return-576880-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 19:41:29 2017
Return-Path: <gcc-bugs-return-576880-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 61439 invoked by alias); 29 Sep 2017 19:41:29 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 61344 invoked by uid 48); 29 Sep 2017 19:41:25 -0000
From: "vmakarov at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/82353] [8 Regression] runtime ubsan crash
Date: Fri, 29 Sep 2017 19:41:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: sanitizer
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vmakarov at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82353-4-uJqcOmkHwm@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82353-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82353-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02909.txt.bz2
Content-length: 383

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

--- Comment #5 from Vladimir Makarov <vmakarov at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #3)

> Vlad, can you please have a look?  I'll still try to see if we can have a
> single file testcase here.

Yes, it seems as LRA rematerialization bug.  I'll work on it but the patch will
be ready only in a week.
>From gcc-bugs-return-576881-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 19:41:36 2017
Return-Path: <gcc-bugs-return-576881-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 62219 invoked by alias); 29 Sep 2017 19:41:36 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 61855 invoked by uid 48); 29 Sep 2017 19:41:32 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82299] -Wuseless-cast errors on typed enums used in member data initializers in c++1z
Date: Fri, 29 Sep 2017 19:41:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82299-4-gptaZ1nQiV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82299-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82299-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02910.txt.bz2
Content-length: 291

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

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
{ target c++11 } means the test is run for -std=c++{11,14,17,2a,17 -fconcepts}.
And the test wants to make sure that the warning isn't emitted in any of those
modes.
>From gcc-bugs-return-576882-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 19:53:15 2017
Return-Path: <gcc-bugs-return-576882-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 117545 invoked by alias); 29 Sep 2017 19:53: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 117483 invoked by uid 48); 29 Sep 2017 19:53:11 -0000
From: "matt at godbolt dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82299] -Wuseless-cast errors on typed enums used in member data initializers in c++1z
Date: Fri, 29 Sep 2017 19: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
X-Bugzilla-Severity: normal
X-Bugzilla-Who: matt at godbolt dot org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82299-4-7kWLS6AvsM@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82299-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82299-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02911.txt.bz2
Content-length: 176

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

--- Comment #7 from Matt Godbolt <matt at godbolt dot org> ---
Perfect! Thanks for clarifying, sorry for the confusion :)
>From gcc-bugs-return-576883-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 20:27:40 2017
Return-Path: <gcc-bugs-return-576883-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 10223 invoked by alias); 29 Sep 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 9588 invoked by uid 48); 29 Sep 2017 20:27:31 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/82366] std::regex constructor called from shared library throws std::bad_cast
Date: Fri, 29 Sep 2017 20:27:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82366-4-6V54Yz8xDW@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82366-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82366-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02912.txt.bz2
Content-length: 540

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

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
It looks like the libstdc++.so.6 that the application links to is older than
the version you compiled against, and doesn't have support for the new
std::string type used in your callback.

It might work to build your code with the macro _GLIBCXX_USE_CXX11_ABI defined
to 0, but what you're trying to do (compile against a new libstdc++ then use an
older one at run-time) is not supported and cannot work in general.
>From gcc-bugs-return-576884-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 20:30:36 2017
Return-Path: <gcc-bugs-return-576884-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 30540 invoked by alias); 29 Sep 2017 20:30:35 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 30483 invoked by uid 48); 29 Sep 2017 20:30:30 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/82366] std::regex constructor called from shared library throws std::bad_cast
Date: Fri, 29 Sep 2017 20:30:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82366-4-00V3q1iqHX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82366-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82366-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02913.txt.bz2
Content-length: 389

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

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Actually the gdb output does show the right libstdc++ is being used:

Reading symbols from /dvl/oms6/gcc-7.1.0/lib64/libstdc++.so.6...done.
Loaded symbols for /dvl/oms6/gcc-7.1.0/lib64/libstdc++.so.6

Try using _GLIBCXX_USE_CXX11_ABI=0 anyway, and see if that helps.
>From gcc-bugs-return-576885-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 21:02:59 2017
Return-Path: <gcc-bugs-return-576885-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 1406 invoked by alias); 29 Sep 2017 21:02: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 129628 invoked by uid 48); 29 Sep 2017 21:02:55 -0000
From: "w6ws at earthlink dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82367] New: ICE with deferred length string allocate on non-deferred length argument
Date: Fri, 29 Sep 2017 21:02:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 5.4.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: w6ws at earthlink 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-82367-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02914.txt.bz2
Content-length: 3262

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

            Bug ID: 82367
           Summary: ICE with deferred length string allocate on
                    non-deferred length argument
           Product: gcc
           Version: 5.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: w6ws at earthlink dot net
  Target Milestone: ---

Incorrect code caused a ICE:

wws@w6ws-4:/tmp$ cat cls.f90
module cls_allocmod
  implicit none

contains

 subroutine cls_alloc (n, str)
    integer,  intent(in) :: n
    character(*), allocatable, intent(out) :: str
!  Note: Star ^ should have been a colon (:)

    allocate (character(n)::str)

  end subroutine

end module

program cls
  use cls_allocmod
  implicit none

  character(:), allocatable :: string

  call cls_alloc (42, string)
  print *, 'string len =', len(string)

end program
wws@w6ws-4:/tmp$ 

Gfortran 5.4 produces an ICE.  So do older versions (e.g., 4.8 on one of my
other machines.):

wws@w6ws-4:/tmp$ gfortran --version
GNU Fortran (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609
Copyright (C) 2015 Free Software Foundation, Inc.

GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of GNU Fortran
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING

wws@w6ws-4:/tmp$ gfortran cls.f90
f951: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
wws@w6ws-4:/tmp$ 

The trunk as of a couple of days ago also produces an ICE - this time with a
compiler traceback:

wws@w6ws-4:/tmp$ /usr/local/gcc-trunk/bin/gfortran --version
GNU Fortran (GCC) 8.0.0 20170927 (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.

wws@w6ws-4:/tmp$ /usr/local/gcc-trunk/bin/gfortran cls.f90
f951: internal compiler error: Segmentation fault
0xc906cf crash_signal
        ../../gcc-trunk/gcc/toplev.c:326
0x727af8 gfc_dep_compare_expr(gfc_expr*, gfc_expr*)
        ../../gcc-trunk/gcc/fortran/dependency.c:321
0x6fe687 resolve_allocate_expr
        ../../gcc-trunk/gcc/fortran/resolve.c:7391
0x6fe687 resolve_allocate_deallocate
        ../../gcc-trunk/gcc/fortran/resolve.c:7782
0x70067a gfc_resolve_code(gfc_code*, gfc_namespace*)
        ../../gcc-trunk/gcc/fortran/resolve.c:11212
0x701c02 resolve_codes
        ../../gcc-trunk/gcc/fortran/resolve.c:16236
0x701b07 resolve_codes
        ../../gcc-trunk/gcc/fortran/resolve.c:16221
0x701d06 gfc_resolve(gfc_namespace*)
        ../../gcc-trunk/gcc/fortran/resolve.c:16271
0x6eb54c gfc_parse_file()
        ../../gcc-trunk/gcc/fortran/parse.c:6217
0x7313af gfc_be_parse_file
        ../../gcc-trunk/gcc/fortran/f95-lang.c:204
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.
wws@w6ws-4:/tmp$
>From gcc-bugs-return-576886-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 21:05:36 2017
Return-Path: <gcc-bugs-return-576886-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 17995 invoked by alias); 29 Sep 2017 21:05: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 17580 invoked by uid 48); 29 Sep 2017 21:05:31 -0000
From: "w6ws at earthlink dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82367] ICE with deferred length string allocate on non-deferred length argument
Date: Fri, 29 Sep 2017 21: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: 5.4.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: w6ws at earthlink 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-82367-4-GquHiz1HO1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82367-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82367-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02915.txt.bz2
Content-length: 184

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

--- Comment #1 from Walter Spector <w6ws at earthlink dot net> ---
PGI and NAG both catch this error.  I can try Intel if needed.
>From gcc-bugs-return-576887-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 21:28:08 2017
Return-Path: <gcc-bugs-return-576887-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 99823 invoked by alias); 29 Sep 2017 21:28:08 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 92884 invoked by uid 48); 29 Sep 2017 21:28:03 -0000
From: "seurer at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/82368] New: [8 regression] with r253275 several new test cases in libbacktrace fail
Date: Fri, 29 Sep 2017 21:28: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-82368-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02916.txt.bz2
Content-length: 2679

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

            Bug ID: 82368
           Summary: [8 regression] with r253275 several new test cases in
                    libbacktrace fail
           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 is on powerpc64 BE.  There have been a few long time failures in here on
BE but with this revision there are some new failures.  Note that everything
including the new ones work fine on powerpc64 LE.

So after r235275:

make[1]: Entering directory
`/home/seurer/gcc/build/gcc-test/powerpc64-unknown-linux-gnu/libbacktrace'
PASS: backtrace_full noinline
PASS: backtrace_full inline
test3: [0]: NULL syminfo name
test3: [1]: NULL syminfo name
test3: [2]: NULL syminfo name
FAIL: backtrace_simple noinline
PASS: backtrace_simple inline
PASS: backtrace_syminfo variable
FAIL: btest
PASS: stest
PASS: inflate empty
PASS: inflate hello
PASS: inflate goodbye
PASS: inflate large
backtrace time: 1958740 ns
zlib time:    : 1726764 ns
percentage    : 0.881569
PASS: ztest
PASS: backtrace_full alloc stress
PASS: edtest
PASS: threaded backtrace_full noinline
PASS: ttest
PASS: backtrace_full noinline
PASS: backtrace_full inline
test3: [0]: NULL syminfo name
test3: [1]: NULL syminfo name
test3: [2]: NULL syminfo name
FAIL: backtrace_simple noinline
PASS: backtrace_simple inline
PASS: backtrace_syminfo variable
FAIL: ctestg
PASS: backtrace_full noinline
PASS: backtrace_full inline
test3: [0]: NULL syminfo name
test3: [1]: NULL syminfo name
test3: [2]: NULL syminfo name
FAIL: backtrace_simple noinline
PASS: backtrace_simple inline
PASS: backtrace_syminfo variable
FAIL: ctesta
===================
3 of 7 tests failed
===================

Previously it was like this:

make[1]: Entering directory
`/home/seurer/gcc/build/gcc-test/powerpc64-unknown-linux-gnu/libbacktrace'
PASS: backtrace_full noinline
PASS: backtrace_full inline
test3: [0]: NULL syminfo name
test3: [1]: NULL syminfo name
test3: [2]: NULL syminfo name
FAIL: backtrace_simple noinline
PASS: backtrace_simple inline
test5: unexpected syminfo name got elf_add expected global
FAIL: backtrace_syminfo variable
FAIL: btest
PASS: stest
PASS: backtrace_full alloc stress
PASS: edtest
PASS: threaded backtrace_full noinline
PASS: ttest
===================
1 of 4 tests failed
===================
>From gcc-bugs-return-576888-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 21:29:01 2017
Return-Path: <gcc-bugs-return-576888-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 6313 invoked by alias); 29 Sep 2017 21:29: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 5262 invoked by uid 48); 29 Sep 2017 21:28:56 -0000
From: "glisse at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79709] Subobtimal code with -mavx and explicit vector
Date: Fri, 29 Sep 2017 21:29:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords: missed-optimization, ra
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: glisse at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79709-4-yGuetnkokP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79709-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79709-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02917.txt.bz2
Content-length: 1243

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

--- Comment #8 from Marc Glisse <glisse at gcc dot gnu.org> ---
Thomas, the code generated by gcc has changed (after some patches by Jakub
IIRC). Do you consider the issue fixed or is the generated asm still
problematic?

.L13:
        vpextrq $1, %xmm2, %rax
        testq   %rax, %rax
        je      .L2
        vextractf128    $0x1, %ymm2, %xmm2
        vmovq   %xmm2, %rax
        testq   %rax, %rax
        jne     .L2
        vpextrq $1, %xmm2, %rax
        vmovapd %ymm4, %ymm3
        testq   %rax, %rax
        jne     .L2
.L3:
        vmulpd  %ymm3, %ymm3, %ymm4
        vmulpd  %ymm8, %ymm3, %ymm3
        vsubpd  %ymm10, %ymm4, %ymm4
        vmulpd  %ymm9, %ymm3, %ymm3
        vaddpd  %ymm0, %ymm4, %ymm4
        vaddpd  %ymm1, %ymm3, %ymm9
        vaddpd  %ymm4, %ymm4, %ymm2
        vmulpd  %ymm9, %ymm9, %ymm10
        vaddpd  %ymm10, %ymm2, %ymm2
        vcmpltpd        %ymm7, %ymm2, %ymm2
        vpaddq  %xmm2, %xmm5, %xmm3
        vextractf128    $1, %ymm2, %xmm6
        vmovq   %xmm2, %rax
        vextractf128    $1, %ymm5, %xmm5
        testq   %rax, %rax
        vpaddq  %xmm6, %xmm5, %xmm5
        vinsertf128     $0x1, %xmm5, %ymm3, %ymm5
        jne     .L13
>From gcc-bugs-return-576889-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 21:34:36 2017
Return-Path: <gcc-bugs-return-576889-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 65108 invoked by alias); 29 Sep 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 64165 invoked by uid 55); 29 Sep 2017 21:34:32 -0000
From: "kristerw at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/77480] netbsd specfile will not link against libc when building -shared (+patch)
Date: Fri, 29 Sep 2017 21:34:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 5.4.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: kristerw at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-77480-4-Mxu20Xai1W@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-77480-4@http.gcc.gnu.org/bugzilla/>
References: <bug-77480-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02918.txt.bz2
Content-length: 631

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

--- Comment #3 from Krister Walfridsson <kristerw at gcc dot gnu.org> ---
Author: kristerw
Date: Fri Sep 29 21:34:00 2017
New Revision: 253309

URL: https://gcc.gnu.org/viewcvs?rev=253309&root=gcc&view=rev
Log:
2017-09-29  Krister Walfridsson  <krister.walfridsson@gmail.com>

        Backport from mainline
        2017-06-29  Maya Rashish  <coypu@sdf.org>

        PR target/77480
        * config/netbsd.h (NETBSD_LIB_SPEC): Add -lc when creating shared
        objects.

Modified:
    branches/gcc-7-branch/gcc/ChangeLog
    branches/gcc-7-branch/gcc/config/netbsd.h
>From gcc-bugs-return-576890-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 21:39:34 2017
Return-Path: <gcc-bugs-return-576890-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 28226 invoked by alias); 29 Sep 2017 21:39: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 27967 invoked by uid 48); 29 Sep 2017 21:39:29 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82367] ICE with deferred length string allocate on non-deferred length argument
Date: Fri, 29 Sep 2017 21:39:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 5.4.0
X-Bugzilla-Keywords: ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: 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-82367-4-eIUQ04aGXC@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82367-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82367-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02919.txt.bz2
Content-length: 3643

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-09-29
                 CC|                            |pault at gcc dot gnu.org
             Blocks|                            |68241
     Ever confirmed|0                           |1

--- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
ICE confirmed from 4.8 up to trunk.

Compiling the test with my instrumented gfortran gives

../../work/gcc/fortran/dependency.c:321:11: runtime error: member access within
null pointer of type 'struct gfc_expr'
ASAN:DEADLYSIGNAL
=================================================================
==15952==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc
0x0001003d484b bp 0x7fff5fbfe4b0 sp 0x7fff5fbfe490 T0)
==15952==The signal is caused by a READ memory access.
==15952==Hint: address points to the zero page.
    #0 0x1003d484a in gfc_dep_compare_expr(gfc_expr*, gfc_expr*)
(/opt/gcc/gcc8g/libexec/gcc/x86_64-apple-darwin16.7.0/8.0.0/f951+0x1003d484a)
    #1 0x100337829 in resolve_allocate_expr(gfc_expr*, gfc_code*, bool*)
(/opt/gcc/gcc8g/libexec/gcc/x86_64-apple-darwin16.7.0/8.0.0/f951+0x100337829)
    #2 0x10033f34d in resolve_allocate_deallocate(gfc_code*, char const*)
(/opt/gcc/gcc8g/libexec/gcc/x86_64-apple-darwin16.7.0/8.0.0/f951+0x10033f34d)
    #3 0x1003535ee in gfc_resolve_code(gfc_code*, gfc_namespace*)
(/opt/gcc/gcc8g/libexec/gcc/x86_64-apple-darwin16.7.0/8.0.0/f951+0x1003535ee)
    #4 0x100355d83 in resolve_codes(gfc_namespace*)
(/opt/gcc/gcc8g/libexec/gcc/x86_64-apple-darwin16.7.0/8.0.0/f951+0x100355d83)
    #5 0x100355b2b in resolve_codes(gfc_namespace*)
(/opt/gcc/gcc8g/libexec/gcc/x86_64-apple-darwin16.7.0/8.0.0/f951+0x100355b2b)
    #6 0x1002f42e1 in gfc_resolve(gfc_namespace*)
(/opt/gcc/gcc8g/libexec/gcc/x86_64-apple-darwin16.7.0/8.0.0/f951+0x1002f42e1)
    #7 0x10029a2bf in gfc_parse_file()
(/opt/gcc/gcc8g/libexec/gcc/x86_64-apple-darwin16.7.0/8.0.0/f951+0x10029a2bf)
    #8 0x1003f14f2 in gfc_be_parse_file()
(/opt/gcc/gcc8g/libexec/gcc/x86_64-apple-darwin16.7.0/8.0.0/f951+0x1003f14f2)
    #9 0x1045a4bac in compile_file()
(/opt/gcc/gcc8g/libexec/gcc/x86_64-apple-darwin16.7.0/8.0.0/f951+0x1045a4bac)
    #10 0x1045ad7fe in do_compile()
(/opt/gcc/gcc8g/libexec/gcc/x86_64-apple-darwin16.7.0/8.0.0/f951+0x1045ad7fe)
    #11 0x10651f30d in toplev::main(int, char**)
(/opt/gcc/gcc8g/libexec/gcc/x86_64-apple-darwin16.7.0/8.0.0/f951+0x10651f30d)
    #12 0x1065249ce in main
(/opt/gcc/gcc8g/libexec/gcc/x86_64-apple-darwin16.7.0/8.0.0/f951+0x1065249ce)
    #13 0x7fffbcb65234 in start (/usr/lib/system/libdyld.dylib+0x5234)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV
(/opt/gcc/gcc8g/libexec/gcc/x86_64-apple-darwin16.7.0/8.0.0/f951+0x1003d484a)
in gfc_dep_compare_expr(gfc_expr*, gfc_expr*)
8820864)
False positive error reports may follow
For details see https://github.com/google/sanitizers/issues/189
f951: internal compiler error: Abort trap: 6


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68241
[Bug 68241] [meta-bug] [F03] Deferred-length character
>From gcc-bugs-return-576891-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 21:42:17 2017
Return-Path: <gcc-bugs-return-576891-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 78521 invoked by alias); 29 Sep 2017 21:42:17 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 74539 invoked by uid 48); 29 Sep 2017 21:42:13 -0000
From: "kristerw at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/77480] netbsd specfile will not link against libc when building -shared (+patch)
Date: Fri, 29 Sep 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: target
X-Bugzilla-Version: 5.4.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: kristerw 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-77480-4-SQ7vTDXkTb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-77480-4@http.gcc.gnu.org/bugzilla/>
References: <bug-77480-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02920.txt.bz2
Content-length: 525

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

Krister Walfridsson <kristerw at gcc dot gnu.org> changed:

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

--- Comment #4 from Krister Walfridsson <kristerw at gcc dot gnu.org> ---
Fixed for trunk and GCC 7.3.  Closing this bug as I'm not planning to backport
to GCC 6.
>From gcc-bugs-return-576892-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 22:47:41 2017
Return-Path: <gcc-bugs-return-576892-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 40056 invoked by alias); 29 Sep 2017 22:47: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 34396 invoked by uid 48); 29 Sep 2017 22:47:37 -0000
From: "kargl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82367] ICE with deferred length string allocate on non-deferred length argument
Date: Fri, 29 Sep 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: fortran
X-Bugzilla-Version: 5.4.0
X-Bugzilla-Keywords: ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: kargl at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82367-4-fp8jzmIld6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82367-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82367-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02921.txt.bz2
Content-length: 1083

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

--- Comment #3 from kargl at gcc dot gnu.org ---
% svn diff resolve.c 
Index: resolve.c
===================================================================
--- resolve.c   (revision 253236)
+++ resolve.c   (working copy)
@@ -7387,8 +7387,14 @@ resolve_allocate_expr (gfc_expr *e, gfc_code *code, bo
   if (code->ext.alloc.ts.type == BT_CHARACTER && !e->ts.deferred
       && !UNLIMITED_POLY (e))
     {
-      int cmp = gfc_dep_compare_expr (e->ts.u.cl->length,
-                                     code->ext.alloc.ts.u.cl->length);
+      int cmp;
+
+      if (!e->ts.u.cl->length)
+       goto failure;
+
+      cmp = gfc_dep_compare_expr (e->ts.u.cl->length,
+                                 code->ext.alloc.ts.u.cl->length);
+
       if (cmp == 1 || cmp == -1 || cmp == -3)
        {
          gfc_error ("Allocating %s at %L with type-spec requires the same "
>From gcc-bugs-return-576893-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 22:53:54 2017
Return-Path: <gcc-bugs-return-576893-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 114796 invoked by alias); 29 Sep 2017 22: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 109031 invoked by uid 48); 29 Sep 2017 22:53:50 -0000
From: "peter at cordes dot ca" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82369] New: "optimizes" indexed addressing back into two pointer increments
Date: Fri, 29 Sep 2017 22: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: 8.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: peter at cordes dot ca
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone cf_gcctarget
Message-ID: <bug-82369-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02922.txt.bz2
Content-length: 5735

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

            Bug ID: 82369
           Summary: "optimizes" indexed addressing back into two pointer
                    increments
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: peter at cordes dot ca
  Target Milestone: ---
            Target: x86_64-*-*, i?86-*-*

gcc defeats this attempt to get it to reduce the front-end bottleneck in this
loop (simplified from a version of the loop in pr82356).

Indexing src by  (dst-src) + src  is easy to do in C, and works well.  But when
one pointer advances faster than the other it's very clunky to express in C.

#include <immintrin.h>
#include <stdint.h>
#include <stddef.h>

// index src relative to dst, but use a pointer-increment for dst
// so the store still has a simple addressing mode (and can run on port7)
// gcc and clang "optimize" back to two separate pointers, but ICC13 leaves it
alone
// Saves one ADD instruction in the loop.
void pack_high8_indexed_src(uint8_t *restrict dst, const uint16_t *restrict
src, size_t bytes) {
  uintptr_t end_dst = (uintptr_t)(dst + bytes);
  uintptr_t srcu = (uintptr_t)src, dstu = (uintptr_t)dst;

  ptrdiff_t src_dst_offset = srcu - 2*dstu;
  do{
     __m128i v0 = _mm_loadu_si128((__m128i*)(dstu*2+src_dst_offset));
     __m128i v1 = _mm_loadu_si128((__m128i*)(dstu*2+src_dst_offset)+1);
     __m128i res = _mm_packus_epi16(v1,v0);

     _mm_storeu_si128((__m128i*)dstu, res);
     dstu += 16;
     //src += 16;  // 32 bytes
  } while(dstu < end_dst);
}

https://godbolt.org/g/pycLQC
gcc -O3 -mtune=skylake  de-optimizes it to this:

pack_high8_indexed_src:       # gcc and clang do this:
        addq    %rdi, %rdx
.L2:
        movdqu  16(%rsi), %xmm0
        movdqu  (%rsi), %xmm1
        addq    $16, %rdi
        addq    $32, %rsi                # 2 separate pointer increments
        packuswb        %xmm1, %xmm0
        movups  %xmm0, -16(%rdi)
        cmpq    %rdi, %rdx
        ja      .L2
        ret

Intel SnB-family: 7 fused-domain uops.  (The store micro-fuses, and the cmp/ja
macro-fuses).  In theory, this bottlenecks on front-end throughput (4 uops per
clock), running at 1 iter per 1.75 cycles.  The store uses a simple addressing
mode, so its store-address uop can run on port7.  If not for the front-end
bottleneck, the back-end could run this at nearly 1 per clock.

ICC13/16/17 compiles it the way I was hoping to hand-hold gcc into doing, to 6
fused-domain uops, and should run 1 iter per 1.5 clocks on SnB/HSW/SKL.  This
might also be good on Silvermont, since it's fewer instructions.

Possibly a similar benefit on K10 / BD (although AMD would benefit from using
simple array indexing, because indexed addressing modes for stores aren't worse
AFAIK.  But -mtune=bdver2 doesn't do that.)

pack_high8_indexed_src:               # ICC17
        lea       (%rdi,%rdi), %rax
        negq      %rax
        addq      %rdi, %rdx
        addq      %rax, %rsi
..B1.2:
        movdqu    16(%rsi,%rdi,2), %xmm1           # src indexed via dst*2
        movdqu    (%rsi,%rdi,2), %xmm0
        packuswb  %xmm0, %xmm1
        movdqu    %xmm1, (%rdi)                    # dst with a simple
addressing mode.
        addq      $16, %rdi                        # 16B of dst, 32B of src
        cmpq      %rdx, %rdi
        jb        ..B1.2
        ret

A mov-load with a complex addressing mode is a single uop on all CPUs.  It
might have 1c higher latency than a simple addressing mode, but that doesn't
matter when the address math is off the critical path.

With unrolling, the actual work is only 4 fused-domain uops for 2x load + pack
+ store, so the front-end can just barely keep the back-end fed with infinite
unrolling.  For any sane unroll factor, saving 1 uop of loop overhead is a
slight win.

A store with an indexed addressing-mode can't run on port7 on Haswell/Skylake. 
With any unrolling, that would become a bottleneck.  On SnB/IvB, indexed stores
are un-laminated into 2 fused-domain uops, so simple array-indexing gets worse
with unrolling.


BTW, with an indexed store, we could count a negative index up towards zero. 
That would avoid the CMP, since the loop overhead could be just a single
macro-fused uop: add $16, %rdx / jnc.  (But only SnB-family macro-fuses
add/jcc.  AMD and Core2/Nehalem only macro-fuse test/cmp.)  But on a CPU that
doesn't macro-fuse at all, it's good.  (e.g. Silvermont / KNL).

---

BTW, with AVX, micro-fused loads are un-laminated on Haswell/Skylake.  e.g.

        vmovdqu   16(%rsi,%rdi,2), %xmm0
        vpackuswb (%rsi,%rdi,2), %xmm0, %xmm1
        vmovdqu   %xmm1, (%rdi)

is 3 fused-domain uops in the decoders/uop cache, but its 4 fused-domain uops
for the issue/rename stage and in the ROB.  The vpackuswb un-laminates.
https://stackoverflow.com/questions/26046634/micro-fusion-and-addressing-modes#comment76198723_31027695

So if unrolling with AVX, it's better to do what gcc does and increment 2
separate pointers.  Then we can actually keep the back-end fed and bottleneck
on load throughput, store throughput, and shuffle throughput.  gcc can unroll
this loop (but clang can't, maybe confused by using integers as pointers.)

packuswb (%rsi,%rdi,2), %xmm0  could stay micro-fused, because it's a 2-operand
instruction with a read-modify destination (not write-only like pabsb).  But we
can't use it because it requires alignment.  (Of course, with load instead of
loadu, this indexing trick would still be a win.)
>From gcc-bugs-return-576894-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 22:55:14 2017
Return-Path: <gcc-bugs-return-576894-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 38579 invoked by alias); 29 Sep 2017 22:55: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 36521 invoked by uid 48); 29 Sep 2017 22:55:09 -0000
From: "ian at airs dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/82368] [8 regression] with r253275 several new test cases in libbacktrace fail
Date: Fri, 29 Sep 2017 22:55:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: other
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: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-82368-4-uubUiR2S5g@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82368-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82368-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02923.txt.bz2
Content-length: 984

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ian at airs dot com

--- Comment #1 from Ian Lance Taylor <ian at airs dot com> ---
These are in effect the same failure as the earlier one (FAIL: backtrace_simple
noinline).  The new tests are the same code as the existing code, merely built
in a different way.  The way they are built does not affect the failure, so it
still fails.

It looks like backtrace_syminfo does not work on ppc64be.  The function is not
finding the symbol that corresponds to a PC.  As I recall on ppc64be function
symbol values point to a function descriptor, rather than to the code itself. 
If I'm remembering correctly, do you know what mechanisms there are to map from
the code address to the symbol?
>From gcc-bugs-return-576895-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 29 23:03:59 2017
Return-Path: <gcc-bugs-return-576895-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 109614 invoked by alias); 29 Sep 2017 23:03:59 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 108149 invoked by uid 48); 29 Sep 2017 23:03:54 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82369] "optimizes" indexed addressing back into two pointer increments
Date: Fri, 29 Sep 2017 23: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: 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: bug_severity
Message-ID: <bug-82369-4-lKx8V1SXpy@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82369-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82369-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02924.txt.bz2
Content-length: 575

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
IV-opts is doing this.

But the cost must be for a reason.
Someone would need to understand why the x86 backend cost to handle this case.

It might be the case the cost is taking account the vector modes.
>From gcc-bugs-return-576896-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 30 01:45:00 2017
Return-Path: <gcc-bugs-return-576896-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 115871 invoked by alias); 30 Sep 2017 01:45:00 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 115823 invoked by uid 48); 30 Sep 2017 01:44:55 -0000
From: "peter at cordes dot ca" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82370] New: AVX512 can use a memory operand for immediate-count vpsrlw, but gcc doesn't.
Date: Sat, 30 Sep 2017 01:45: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, ssemmx
X-Bugzilla-Severity: normal
X-Bugzilla-Who: peter at cordes dot ca
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone cf_gcctarget
Message-ID: <bug-82370-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02925.txt.bz2
Content-length: 3095

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

            Bug ID: 82370
           Summary: AVX512 can use a memory operand for immediate-count
                    vpsrlw, but gcc doesn't.
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Keywords: missed-optimization, ssemmx
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: peter at cordes dot ca
  Target Milestone: ---
            Target: x86_64-*-*, i?86-*-*

#include <immintrin.h>
#include <stdint.h>
#include <stddef.h>
void pack_high8_alignhack(uint8_t *restrict dst, const uint8_t *restrict src,
size_t bytes) {
  uint8_t *end_dst = dst + bytes;
  do{
     __m128i v0 = _mm_loadu_si128((__m128i*)src);
     __m128i v1_offset = _mm_loadu_si128(1+(__m128i*)(src-1));
     v0 = _mm_srli_epi16(v0, 8);
     __m128i v1 = _mm_and_si128(v1_offset, _mm_set1_epi16(0x00FF));
     __m128i pack = _mm_packus_epi16(v0, v1);
     _mm_storeu_si128((__m128i*)dst, pack);
     dst += 16;
     src += 32;  // 32 bytes
  } while(dst < end_dst);
}

pack_high8_alignhack:
        vmovdqa64       .LC0(%rip), %xmm2    # pointless EVEX when VEX is
shorter
        addq    %rdi, %rdx
.L18:
        vmovdqu64       (%rsi), %xmm0
        vpandq  15(%rsi), %xmm2, %xmm1       # pointless EVEX vs. VPAND
        addq    $16, %rdi
        addq    $32, %rsi
        vpsrlw  $8, %xmm0, %xmm0             # could use a memory source.
        vpackuswb       %xmm1, %xmm0, %xmm0
        vmovups %xmm0, -16(%rdi)
        cmpq    %rdi, %rdx
        ja      .L18
        ret

There's no benefit to using VPANDQ (4-byte EVEX prefix) instead of VPAND
(2-byte VEX prefix).  Same for VMOVDQA64.  We should only use the AVX512
version when we need masking, ZMM register size, or xmm/ymm16-31.

Or in this case, to use the AVX512VL+AVX512BW form that lets us fold a load
into a memory operand:  VPSRLW xmm1 {k1}{z}, xmm2/m128, imm8 
(https://hjlebbink.github.io/x86doc/html/PSRLW_PSRLD_PSRLQ.html).  IACA2.3 says
it micro-fuses, so it's definitely worth it.

Clang gets everything right and emits:

pack_high8_alignhack:
        addq    %rdi, %rdx
        vmovdqa .LCPI2_0(%rip), %xmm0    # Plain AVX (VEX prefix)
.LBB2_1:
        vpsrlw  $8, (%rsi), %xmm1        # load folded into AVX512BW version
        vpand   15(%rsi), %xmm0, %xmm2   # AVX-128 VEX encoding.
        vpackuswb       %xmm2, %xmm1, %xmm1
        vmovdqu %xmm1, (%rdi)
        addq    $16, %rdi
        addq    $32, %rsi
        cmpq    %rdx, %rdi
        jb      .LBB2_1
        retq

vmovdqu is the same length as vmovups, so there's no benefit.  But AFAIK, no
downside on any CPU to always using FP stores on the results of vector-integer
ALU instructions.

(There isn't a separate mnemonic for EVEX vmovups, so the assembler uses the
VEX encoding whenever it's encodeable that way.  Or maybe for medium-size
displacements that are multiples of the vector width, it can save a byte by
using an EVEX + disp8 instead of VEX + disp32.)
>From gcc-bugs-return-576897-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 30 03:09:24 2017
Return-Path: <gcc-bugs-return-576897-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 424 invoked by alias); 30 Sep 2017 03:09: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 333 invoked by uid 48); 30 Sep 2017 03:09:17 -0000
From: "bugs at rkjnsn dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82371] New: Cross-compiling GCC fails when build platform has fread_unlocked but host platform doesn't
Date: Sat, 30 Sep 2017 03:09:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 5.4.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: bugs at rkjnsn 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-82371-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02926.txt.bz2
Content-length: 1968

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

            Bug ID: 82371
           Summary: Cross-compiling GCC fails when build platform has
                    fread_unlocked but host platform doesn't
           Product: gcc
           Version: 5.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: bugs at rkjnsn dot net
  Target Milestone: ---

Note: I encountered this on 5.4.0, but I took a quick peek at the trunk source
code and the error still seems to be present.

When attempting to cross-compile GCC for a host system that does not have
fread_unlocked on a build system that does, the build fails with the following
error:

gengtype-lex.o: In function `yy_get_next_buffer':
/path/to/gcc-build/gcc/../../gcc-5.4.0/gcc/gengtype-lex.c:2182: undefined
reference to `fread_unlocked'

The problem seems to stem from the fact that gcc/gengtype-lex.l needs to be
compiled for both the build and host platforms, but includes bconfig.h in both
cases. The include directives in gcc/gengtype-lex.l itself, however, are
properly guarded:

#ifdef HOST_GENERATOR_FILE
#include "config.h"
#define GENERATOR_FILE 1
#else
#include "bconfig.h"
#endif

After some digging I discovered that the problem appears to be in
gcc/Makefile.in:

# Generated source files for gengtype.  Prepend inclusion of
# bconfig.h because AIX requires _LARGE_FILES to be defined before
# any system header is included.
gengtype-lex.c : gengtype-lex.l
        -$(FLEX) $(FLEXFLAGS) -o$@ $< && { \
          echo '#include "bconfig.h"' > $@.tmp; \
          cat $@ >> $@.tmp; \
          mv $@.tmp $@; \
        }

This causes the generated gcc/gengtype-lex.c to include bconfig.h regardless of
whether compiling for the build system or the host system, resulting in
HAVE_FREAD_UNLOCKED being defined when it shouldn't be (which leads to the
linker error).
>From gcc-bugs-return-576898-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 30 04:55:31 2017
Return-Path: <gcc-bugs-return-576898-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 84090 invoked by alias); 30 Sep 2017 04:54: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 35088 invoked by uid 48); 30 Sep 2017 04:51:49 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug plugins/82371] [5/6/7/8 Regression] Cross-compiling GCC fails when build platform has fread_unlocked but host platform doesn't
Date: Sat, 30 Sep 2017 04:54:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: plugins
X-Bugzilla-Version: 5.4.0
X-Bugzilla-Keywords: build
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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on component target_milestone short_desc everconfirmed
Message-ID: <bug-82371-4-uCqSoTGSR8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82371-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82371-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02927.txt.bz2
Content-length: 2509

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |build
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-09-30
          Component|c                           |plugins
   Target Milestone|---                         |5.5
            Summary|Cross-compiling GCC fails   |[5/6/7/8 Regression]
                   |when build platform has     |Cross-compiling GCC fails
                   |fread_unlocked but host     |when build platform has
                   |platform doesn't            |fread_unlocked but host
                   |                            |platform doesn't
     Ever confirmed|0                           |1

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Oh this is a regression too when building gengtype was added to be a host
utility for plugin support.

Which was introduced by:
commit 6d70c7134ed4620d4fe74f777ab771602845e135
Author: jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Date:   Thu Aug 4 11:30:45 2011 +0000

    2011-08-04  Romain Geissler  <romain.geissler@gmail.com>

        * gengtype-state.c: Include "bconfig.h" if
        GENERATOR_FILE is defined, "config.h" otherwise.
        * gengtype.c: Likewise.
        * gengtype-lex.l: Likewise.
        * gengtype-parse.c: Likewise.
        * Makefile.in (gengtype-lex.o-warn): New variable.
        (plugin_resourcesdir): Likewise.
        (plugin_bindir): Likewise.
        (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
        (MOSTLYCLEANFILES): Add gengtype$(exeext).
        (native): Depend on gengtype$(exeext) is $enable_plugin
        is set to "yes".
        (gtype.state): Depend on s-gtype. Use temporary file.
        (gengtype-lex.o): New rule.
        (gengtype-parse.o): Likewise.
        (gengtype-state.o): Likewise.
        (gengtype$(exeext)): Likewise.
        (install-gengtype): Likewise.
        (gengtype.o): Likewise.
        (build/gengtype.o): Depend on version.h.
        (build/gengtype-state): Depend on double-int.h, version.h,
        $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
        (install-plugin): Depend on install-gengtype.


    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@177358
138bc75d-0d04-0410-961f-82ee72b054a4
>From gcc-bugs-return-576899-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 30 05:03:05 2017
Return-Path: <gcc-bugs-return-576899-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 59755 invoked by alias); 30 Sep 2017 05: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 58483 invoked by uid 48); 30 Sep 2017 05:01:18 -0000
From: "jvdelisle at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82372] New: Rejects valid parenthesis
Date: Sat, 30 Sep 2017 05:01: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: jvdelisle at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
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-82372-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02928.txt.bz2
Content-length: 1014

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

            Bug ID: 82372
           Summary: Rejects valid parenthesis
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jvdelisle at gcc dot gnu.org
  Target Milestone: ---

program vincenty
implicit none

integer,  parameter :: wp = selected_real_kind (18) ! Working Precision
real(wp), parameter :: f = 1.0_wp/298.257223563_wp
real(wp), parameter  :: pi = 3.141592653589793238462643383279502884197_wp
real(wp) :: theta1, theta2
real(wp) :: U1, U2

theta1 = 2.0_wp * pi * 46.222539_wp
theta2 = 0.7_wp

U1 = sin((1.0 − f) * tan(theta1))

end program

$ gfc bug1.f90 
bug1.f90:13:13:

 U1 = sin((1.0 − f) * tan(theta1))
             1
Error: Expected a right parenthesis in expression at (1)

I am not seeing whats is wrong. Please someone confirm.
>From gcc-bugs-return-576900-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 30 05:42:08 2017
Return-Path: <gcc-bugs-return-576900-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 38428 invoked by alias); 30 Sep 2017 05:42:08 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 38144 invoked by uid 48); 30 Sep 2017 05:42:03 -0000
From: "jvdelisle at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82372] Rejects valid parenthesis
Date: Sat, 30 Sep 2017 05:42:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jvdelisle at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82372-4-IbHeelGLZO@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82372-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82372-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02929.txt.bz2
Content-length: 707

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

--- Comment #1 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
Another, reduced:

program vincenty
implicit none

integer,  parameter :: wp = selected_real_kind (18) ! Working Precision
real(wp), parameter :: f = 1.0_wp/298.257223563_wp
real(wp) :: tmp

tmp = 1.0 − f

end program

$ cat bug1.f90 
program vincenty
implicit none

integer,  parameter :: wp = selected_real_kind (18) ! Working Precision
real(wp), parameter :: f = 1.0_wp/298.257223563_wp
real(wp) :: tmp

tmp = 1.0 − f

end program
[jerry@amda8 vincenty]$ gfc bug1.f90 
bug1.f90:8:0:

 tmp = 1.0 − f

Error: Unclassifiable statement at (1)
>From gcc-bugs-return-576901-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 30 06:07:59 2017
Return-Path: <gcc-bugs-return-576901-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 72798 invoked by alias); 30 Sep 2017 06:07: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 72726 invoked by uid 48); 30 Sep 2017 06:07:55 -0000
From: "jvdelisle at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82372] Rejects valid parenthesis
Date: Sat, 30 Sep 2017 06:07:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jvdelisle at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82372-4-UDfFFQQzzu@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82372-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82372-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02930.txt.bz2
Content-length: 711

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

--- Comment #2 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
$ cat bug1.f90 
program vincenty
implicit none

real, parameter :: f = .2345
real :: tmp

tmp = 1.0 − f

end program

$ gfc49 bug1.f90 
bug1.f90:7:

tmp = 1.0 \xE2\x88\x92 f
1
Error: Unclassifiable statement at (1)

Notice that gfortran 4.9 displays the hidden characters. I have trash in the
file.

gfortran later versions do not display it, so one gets very confused. I
consider this a diagnostic regression tat should be fixed. So with versio 8, a
mysterious error.

$ gfc bug1.f90 
bug1.f90:7:0:

 tmp = 1.0 − f

Error: Unclassifiable statement at (1)
>From gcc-bugs-return-576902-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 30 08:07:57 2017
Return-Path: <gcc-bugs-return-576902-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 36603 invoked by alias); 30 Sep 2017 08:07:57 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 35121 invoked by uid 48); 30 Sep 2017 08:07:37 -0000
From: "mfe at live dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug go/82348] make[4]: Circular runtime.lo <- bytes.gox dependency dropped.
Date: Sat, 30 Sep 2017 08:07:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: go
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mfe at live dot de
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: INVALID
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ian at airs dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-82348-4-yDS7B6eAzx@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82348-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82348-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02931.txt.bz2
Content-length: 455

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

--- Comment #5 from martin <mfe at live dot de> ---
Created attachment 42266
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42266&action=edit
math.lo.dep

I looked up the required cpu.gox file. It does neither exist in the source
tree, or in the built folder (my built folder is named as gcc-compiled).

>find gcc-trunk/ -name cpu.gox #no result
>find gcc-compiled/ -name cpu.gox #no result
>From gcc-bugs-return-576903-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 30 08:11:21 2017
Return-Path: <gcc-bugs-return-576903-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 52023 invoked by alias); 30 Sep 2017 08:11:20 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 51812 invoked by uid 55); 30 Sep 2017 08:11:16 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82361] Useless "mov eax, eax" in generated code
Date: Sat, 30 Sep 2017 08:11:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82361-4-HMgT0v1Bqp@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82361-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82361-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02932.txt.bz2
Content-length: 1396

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

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Sat Sep 30 08:10:15 2017
New Revision: 253317

URL: https://gcc.gnu.org/viewcvs?rev=253317&root=gcc&view=rev
Log:
        PR target/82361
        * config/i386/i386.md
        (TARGET_USE_8BIT_IDIV zext divmodsi4 splitter): New define_split.
        (divmodsi4_zext_1, divmodsi4_zext_2, *divmodsi4_zext_1,
        *divmodsi4_zext_2): New define_insn_and_split.
        (*divmodsi4_noext_zext_1, *divmodsi4_noext_zext_2): New define_insn.
        (TARGET_USE_8BIT_IDIV zext udivmodsi4 splitter): New define_split.
        (udivmodsi4_zext_1, udivmodsi4_zext_2, *udivmodsi4_zext_1,
        *udivmodsi4_zext_2, *udivmodsi4_pow2_zext_1, *udivmodsi4_pow2_zext_2):
        New define_insn_and_split.
        (*udivmodsi4_noext_zext_1, *udivmodsi4_noext_zext_2): New define_insn.
        * config/i386/i386.c (ix86_split_idivmod): Handle operands[0] or
        operands[1] having DImode when mode is SImode.

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

Added:
    trunk/gcc/testsuite/gcc.target/i386/pr82361-1.c
    trunk/gcc/testsuite/gcc.target/i386/pr82361-2.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/i386/i386.c
    trunk/gcc/config/i386/i386.md
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-576904-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 30 08:12:18 2017
Return-Path: <gcc-bugs-return-576904-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 53260 invoked by alias); 30 Sep 2017 08: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 53004 invoked by uid 48); 30 Sep 2017 08:11:51 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81314] [6/7/8 Regression] Undefined reference to a function with -fopenmp
Date: Sat, 30 Sep 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: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: openmp
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-81314-4-ZdtgnogK4L@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81314-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81314-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02933.txt.bz2
Content-length: 423

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

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

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

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-576905-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 30 08:25:39 2017
Return-Path: <gcc-bugs-return-576905-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 114233 invoked by alias); 30 Sep 2017 08:25:39 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 112119 invoked by uid 55); 30 Sep 2017 08:25:34 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82159] [6/7/8 Regression] ICE: in assign_temp, at function.c:961
Date: Sat, 30 Sep 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: c++
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82159-4-z6O4LtTbhB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82159-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82159-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02934.txt.bz2
Content-length: 753

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

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Sat Sep 30 08:25:02 2017
New Revision: 253318

URL: https://gcc.gnu.org/viewcvs?rev=253318&root=gcc&view=rev
Log:
        Backported from mainline
        2017-09-27  Jakub Jelinek  <jakub@redhat.com>

        PR c++/82159
        * gimplify.c (gimplify_modify_expr): Don't optimize away zero sized
        lhs from calls if the lhs has addressable type.

        * g++.dg/opt/pr82159.C: New test.

Added:
    branches/gcc-7-branch/gcc/testsuite/g++.dg/opt/pr82159.C
Modified:
    branches/gcc-7-branch/gcc/ChangeLog
    branches/gcc-7-branch/gcc/gimplify.c
    branches/gcc-7-branch/gcc/testsuite/ChangeLog
>From gcc-bugs-return-576906-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 30 08:27:10 2017
Return-Path: <gcc-bugs-return-576906-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 20522 invoked by alias); 30 Sep 2017 08:27: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 20438 invoked by uid 55); 30 Sep 2017 08:27:05 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82340] volatile ignored in compound literal
Date: Sat, 30 Sep 2017 08:27:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82340-4-pbBdyYMKy9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82340-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82340-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02935.txt.bz2
Content-length: 769

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

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Sat Sep 30 08:26:32 2017
New Revision: 253319

URL: https://gcc.gnu.org/viewcvs?rev=253319&root=gcc&view=rev
Log:
        Backported from mainline
        2017-09-29  Jakub Jelinek  <jakub@redhat.com>

        PR c/82340
        * c-decl.c (build_compound_literal): Use c_apply_type_quals_to_decl
        instead of trying to set just TREE_READONLY manually.

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

Added:
    branches/gcc-7-branch/gcc/testsuite/gcc.dg/tree-ssa/pr82340.c
Modified:
    branches/gcc-7-branch/gcc/c/ChangeLog
    branches/gcc-7-branch/gcc/c/c-decl.c
    branches/gcc-7-branch/gcc/testsuite/ChangeLog
>From gcc-bugs-return-576907-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 30 10:11:07 2017
Return-Path: <gcc-bugs-return-576907-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 69906 invoked by alias); 30 Sep 2017 10:11:07 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 69583 invoked by uid 48); 30 Sep 2017 10:11:02 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82372] Rejects valid parenthesis
Date: Sat, 30 Sep 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: fortran
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-82372-4-c7CYBJthg8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82372-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82372-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02936.txt.bz2
Content-length: 556

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-09-30
     Ever confirmed|0                           |1

--- Comment #3 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Confirmed. IMO should be diagnosed as characters not in the Fortran set.
>From gcc-bugs-return-576908-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 30 10:27:37 2017
Return-Path: <gcc-bugs-return-576908-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 107418 invoked by alias); 30 Sep 2017 10:27: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 107389 invoked by uid 48); 30 Sep 2017 10:27:33 -0000
From: "drepper.fsp+rhbz at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82373] New: syntax error in error message
Date: Sat, 30 Sep 2017 10: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.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: drepper.fsp+rhbz 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-82373-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02937.txt.bz2
Content-length: 1191

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

            Bug ID: 82373
           Summary: syntax error in error message
           Product: gcc
           Version: 7.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: drepper.fsp+rhbz at gmail dot com
  Target Milestone: ---

Compiling the invalid code at the bottom produces the following message:

y.cc: In function ‘auto bar::foo(int))(int)’:
y.cc:7:12: error: inconsistent deduction for auto return type: ‘int (*)(int)’
and then ‘std::nullptr_t’
     return nullptr;
            ^~~~~~~

The function name is wrong.  The parameter list of the inferred return type
should not be printed.

   auto bar::foo(int)

The correct form would have (* before the function name:

   auto (*bar::foo(int))(int)
        ^^

But then the 'auto' must be replaced as well.  But this is wrong since it does
not correspond to a function in the source.



namespace bar {
  int(*fp)(int);
  auto foo(int a)
  {
    if (a)
      return fp;
    return nullptr;
  }
}
>From gcc-bugs-return-576909-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 30 13:59:34 2017
Return-Path: <gcc-bugs-return-576909-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 70439 invoked by alias); 30 Sep 2017 13:59:34 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 66918 invoked by uid 48); 30 Sep 2017 13:59:29 -0000
From: "mikulas at artax dot karlin.mff.cuni.cz" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82374] New: #pragma GCC optimize is not applied to openmp-generated functions
Date: Sat, 30 Sep 2017 13: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: 7.2.0
X-Bugzilla-Keywords: missed-optimization, openmp
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mikulas at artax dot karlin.mff.cuni.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 cf_gccbuild
Message-ID: <bug-82374-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02938.txt.bz2
Content-length: 1797

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

            Bug ID: 82374
           Summary: #pragma GCC optimize is not applied to
                    openmp-generated functions
           Product: gcc
           Version: 7.2.0
            Status: UNCONFIRMED
          Keywords: missed-optimization, openmp
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mikulas at artax dot karlin.mff.cuni.cz
  Target Milestone: ---
              Host: x86_64-pc-linux-gnu
            Target: x86_64-pc-linux-gnu
             Build: x86_64-pc-linux-gnu

#pragma GCC optimize (and the function attribute optimize) is not applied to
functions generated with openmp.

This is example code. Compile it with -fopenmp (with or without -O2) and you'll
notice that the function "f_nonomp" is properly vectorized (i.e. it uses the
"addps" instruction) and the function "f" is not vectorized (i.e. the generated
function f._omp_fn.0 performs the addition on single elements using the "addss"
instruction and no vectorization is done).

If we use __attribute((optimize("-O2","-ftree-vectorize"))) on the function
"f", then again, the optimization is not applied to openmp-generated function
"f._omp_fn.0".

If we use "-O3" or "-ftree-vectorize" on the command-line, then both functions
are properly vectorized.


#pragma GCC optimize("-O2", "-ftree-vectorize")

#define SIZE    (1024 * 1024 * 1024)

float a[SIZE];
float b[SIZE];
float c[SIZE];

void f(void)
{
        int i;
#pragma omp parallel for
        for (i = 0; i < SIZE; i++)
                c[i] = a[i] + b[i];
}

void f_nonomp(void)
{
        int i;
        for (i = 0; i < SIZE; i++)
                c[i] = a[i] + b[i];
}
>From gcc-bugs-return-576910-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 30 14:13:58 2017
Return-Path: <gcc-bugs-return-576910-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 6341 invoked by alias); 30 Sep 2017 14:13:58 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 3917 invoked by uid 48); 30 Sep 2017 14:13:53 -0000
From: "daniel.santos at pobox dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/47781] warnings from custom printf format specifiers
Date: Sat, 30 Sep 2017 14:13:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 4.4.5
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: daniel.santos at pobox 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-47781-4-MpOkbuMxG9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-47781-4@http.gcc.gnu.org/bugzilla/>
References: <bug-47781-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02939.txt.bz2
Content-length: 1013

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

--- Comment #19 from Daniel Santos <daniel.santos at pobox dot com> ---
(In reply to Martin Sebor from comment #18)
> The Linux kernel also has a bunch of printf format extensions that GCC
> doesn't know anything about:
> https://www.kernel.org/doc/Documentation/printk-formats.txt.

Further, the printf format extensions in the kernel are designed so as to not
create warnings and so are often two character combinations by using a standard
format specifier followed by a modifying character.  I think that I ran a
script once to count how much extra memory the two bytes vs a single byte take
and it ended up in the 10s of kilobytes.  While this may not sound like much,
remember that the kernel data is never paged out and on some embedded systems,
it actually does make a difference.

Should GCC begin supporting custom printf format specifiers, then I would
propose we begin changing them in the kernel to take advantage of that small
savings.
>From gcc-bugs-return-576911-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 30 14:54:00 2017
Return-Path: <gcc-bugs-return-576911-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 122441 invoked by alias); 30 Sep 2017 14: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 122363 invoked by uid 48); 30 Sep 2017 14:53:56 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82362] [8 Regression] SPEC CPU2006 436.cactusADM ~7% performance deviation with trunk@251713
Date: Sat, 30 Sep 2017 14:54:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-82362-4-5ITDOC4AEL@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82362-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82362-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02940.txt.bz2
Content-length: 516

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2017-09-30
     Ever confirmed|0                           |1

--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Is it really a gfortran bug?
>From gcc-bugs-return-576912-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 30 15:23:42 2017
Return-Path: <gcc-bugs-return-576912-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 29649 invoked by alias); 30 Sep 2017 15: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 29618 invoked by uid 48); 30 Sep 2017 15:23:37 -0000
From: "spamdrop at fodvo dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/82366] std::regex constructor called from shared library throws std::bad_cast
Date: Sat, 30 Sep 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: libstdc++
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: spamdrop at fodvo 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-82366-4-eexTcsR561@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82366-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82366-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02941.txt.bz2
Content-length: 265

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

--- Comment #3 from spamdrop at fodvo dot org ---
Thanks, I'll look into, but due to a deadline I have right now, I need to
fallback to 4.9.2 until I get my POC project running.

But thanks for the quick reply.
>From gcc-bugs-return-576913-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 30 15:27:48 2017
Return-Path: <gcc-bugs-return-576913-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 121354 invoked by alias); 30 Sep 2017 15:27:48 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 113731 invoked by uid 48); 30 Sep 2017 15:27:43 -0000
From: "spamdrop at fodvo dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/82366] std::regex constructor called from shared library throws std::bad_cast
Date: Sat, 30 Sep 2017 15:27:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: spamdrop at fodvo 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-82366-4-nhKKFKx8Aa@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82366-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82366-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02942.txt.bz2
Content-length: 344

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

--- Comment #4 from spamdrop at fodvo dot org ---
One more comment to add before I forget, If I change the regex string to remove
the []'s, while the program doesn't do the correct thing (obviously), it at
least doesn't throw the exception.  Not sure if that has any significant
meaning.
>From gcc-bugs-return-576914-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 30 15:51:50 2017
Return-Path: <gcc-bugs-return-576914-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 40282 invoked by alias); 30 Sep 2017 15:51: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 38283 invoked by uid 48); 30 Sep 2017 15:51:45 -0000
From: "ian at rhymneyconsulting dot co.uk" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82375] New: PDT error
Date: Sat, 30 Sep 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: fortran
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ian at rhymneyconsulting 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 attachments.created
Message-ID: <bug-82375-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02943.txt.bz2
Content-length: 6897

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

            Bug ID: 82375
           Summary: PDT error
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ian at rhymneyconsulting dot co.uk
  Target Milestone: ---

Created attachment 42267
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42267&action=edit
these are the three source files. the main program and two included module
files.

I believe that the following program is standard conformant and that the
gfortran compilation error message is incorrect. Here is the main program
source file. 

include 'precision_module.f90'
include 'ch2701_link_module.f90'

program ch2701
  use precision_module
  use link_module
  implicit none
  integer, parameter :: wp = dp
  type (link(real_kind=wp)), pointer :: root, &
    current
  integer :: i = 0
  integer :: error = 0
  integer :: io_stat_number = 0
  real (wp), allocatable, dimension (:) :: x

  allocate (root)
  print *, ' type in some numbers'
  read (unit=*, fmt=*, iostat=io_stat_number) &
    root%n
  if (io_stat_number>0) then
    error = error + 1
  else if (io_stat_number<0) then
    nullify (root%next)
  else
    i = i + 1
    allocate (root%next)
  end if
  current => root
  do while (associated(current%next))
    current => current%next
    read (unit=*, fmt=*, iostat=io_stat_number) &
      current%n
    if (io_stat_number>0) then
      error = error + 1
    else if (io_stat_number<0) then
      nullify (current%next)
    else
      i = i + 1
      allocate (current%next)
    end if
  end do
  print *, i, ' items read'
  print *, error, ' items in error'
  allocate (x(1:i))
  i = 1
  current => root
  do while (associated(current%next))
    x(i) = current%n
    i = i + 1
    print *, current%n
    current => current%next
  end do
  print *, x
end program ch2701

I have attached the three source files, ch2701.f90, precision_module.f90 and
ch2701_link_module.f90. here is the error message. 

c:\document\fortran\fourth_edition\examples>gfortran -v ch2701.f90
Driving: gfortran -v ch2701.f90 -l gfortran
Built by Equation Solution <http://www.Equation.com>.
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=c:/gcc/bin/../libexec/gcc/x86_64-w64-mingw32/8.0.0/lto-wrapper.exe
Target: x86_64-w64-mingw32
Configured with: ../gcc-8-20170917-mingw/configure --host=x86_64-w64-mingw32
--build=x86_64-unknown-linux-gnu --target=x86_64-w64-mingw32
--prefix=/home/gfortran/gcc-home/binary/mingw32/native/x86_64/gcc/8-20170917
--with-sysroot=/home/gfortran/gcc-home/binary/mingw32/cross/x86_64/gcc/8-20170709
--with-gcc --with-gnu-ld --with-gnu-as --with-ld64=no
--with-gmp=/home/gfortran/gcc-home/binary/mingw32/native/x86_64/gmp
--with-mpfr=/home/gfortran/gcc-home/binary/mingw32/native/x86_64/mpfr
--with-mpc=/home/gfortran/gcc-home/binary/mingw32/native/x86_64/mpc
--with-cloog=/home/gfortran/gcc-home/binary/mingw32/native/x86_64/cloog
--with-diagnostics-color=auto-if-env --enable-cloog-backend=isl
--enable-targets=i686-w64-mingw32,x86_64-w64-mingw32 --enable-lto
--enable-languages=c,c++,fortran --enable-threads=win32 --enable-static
--enable-shared=lto-plugin --enable-plugins --enable-ld=yes
--enable-libquadmath --enable-libquadmath-support --enable-libgomp
--disable-checking --disable-nls --disable-tls --disable-win32-registry
Thread model: win32
gcc version 8.0.0 20170917 (experimental) (GCC)
COLLECT_GCC_OPTIONS='-v' '-mtune=generic' '-march=x86-64'
 c:/gcc/bin/../libexec/gcc/x86_64-w64-mingw32/8.0.0/f951.exe ch2701.f90 -quiet
-dumpbase ch2701.f90 -mtune=generic -march=x86-64 -auxbase ch2701 -version
-fintrinsic-modules-path
c:/gcc/bin/../lib/gcc/x86_64-w64-mingw32/8.0.0/finclude -o
C:\Users\ian\AppData\Local\Temp\cc8gUhjd.s
GNU Fortran (GCC) version 8.0.0 20170917 (experimental) (x86_64-w64-mingw32)
        compiled by GNU C version 8.0.0 20170709 (experimental), GMP version
6.1.0, MPFR version 3.1.4, MPC version 1.0.3, isl version none
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU Fortran2008 (GCC) version 8.0.0 20170917 (experimental)
(x86_64-w64-mingw32)
        compiled by GNU C version 8.0.0 20170709 (experimental), GMP version
6.1.0, MPFR version 3.1.4, MPC version 1.0.3, isl version none
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ch2701.f90:9:27:

   type (link(real_kind=wp)), pointer :: root, &
                           1
Error: The derived parameter ''real_kind'' at (1) does not have a default value
ch2701.f90:16:12:

   allocate (root)
            1
Error: Allocate-object at (1) is neither a data pointer nor an allocatable
variable
ch2701.f90:19:9:

     root%n
         1
Error: Symbol 'root' at (1) has no IMPLICIT type
ch2701.f90:23:18:

     nullify (root%next)
                  1
Error: Symbol 'root' at (1) has no IMPLICIT type
ch2701.f90:26:19:

     allocate (root%next)
                   1
Error: Symbol 'root' at (1) has no IMPLICIT type
ch2701.f90:29:31:

   do while (associated(current%next))
                               1
Error: Symbol 'current' at (1) has no IMPLICIT type
ch2701.f90:30:23:

     current => current%next
                       1
Error: Symbol 'current' at (1) has no IMPLICIT type
ch2701.f90:32:14:

       current%n
              1
Error: Symbol 'current' at (1) has no IMPLICIT type
ch2701.f90:36:23:

       nullify (current%next)
                       1
Error: Symbol 'current' at (1) has no IMPLICIT type
ch2701.f90:39:24:

       allocate (current%next)
                        1
Error: Symbol 'current' at (1) has no IMPLICIT type
ch2701.f90:41:5:

   end do
     1
Error: Expecting END PROGRAM statement at (1)
ch2701.f90:47:31:

   do while (associated(current%next))
                               1
Error: Symbol 'current' at (1) has no IMPLICIT type
ch2701.f90:48:19:

     x(i) = current%n
                   1
Error: Symbol 'current' at (1) has no IMPLICIT type
ch2701.f90:50:21:

     print *, current%n
                     1
Error: Symbol 'current' at (1) has no IMPLICIT type
ch2701.f90:51:23:

     current => current%next
                       1
Error: Symbol 'current' at (1) has no IMPLICIT type
ch2701.f90:52:5:

   end do
     1
Error: Expecting END PROGRAM statement at (1)
ch2701.f90:28:9:

   current => root
         1
Error: Symbol 'current' at (1) has no IMPLICIT type
ch2701.f90:28:17:

   current => root
                 1
Error: Symbol 'root' at (1) has no IMPLICIT type

c:\document\fortran\fourth_edition\examples>

I was talking to Paul Thomas at the BCS Fortran AGM yesterday and he asked me
to submit the problem I was having with PDTs.
>From gcc-bugs-return-576915-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 30 16:12:16 2017
Return-Path: <gcc-bugs-return-576915-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 74061 invoked by alias); 30 Sep 2017 16:12: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 69265 invoked by uid 48); 30 Sep 2017 16:12:08 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/79220] missing -Wstringop-overflow= on a memcpy overflow with a small power-of-2 size
Date: Sat, 30 Sep 2017 16:12:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: short_desc
Message-ID: <bug-79220-4-CoWpQALlkA@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79220-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79220-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02944.txt.bz2
Content-length: 1927

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|missing                     |missing
                   |-Wstringop-overflow= on a   |-Wstringop-overflow= on a
                   |memcpy overflow             |memcpy overflow with a
                   |                            |small power-of-2 size

--- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> ---
The cause is of the missing warning is the folder
(gimple_fold_builtin_memory_op in gimple-fold.c) folding all copies with
power-of-two sizes less than MOVE_MAX, with no checking (see below).  MOVE_MAX
is typically 8 or 8 but on some targets, including x86_64, it's as much as 16. 
Although some basic simple checking could be done there, e.g., on arrays of
known size, the folder runs before the full object size information is
available and deferring the folding until it apparently isn't desirable.

      /* If we can perform the copy efficiently with first doing all loads
         and then all stores inline it that way.  Currently efficiently
         means that we can load all the memory into a single integer
         register which is what MOVE_MAX gives us.  */
      src_align = get_pointer_alignment (src);
      dest_align = get_pointer_alignment (dest);
      if (tree_fits_uhwi_p (len)
          && compare_tree_int (len, MOVE_MAX) <= 0
          /* ???  Don't transform copies from strings with known length this
             confuses the tree-ssa-strlen.c.  This doesn't handle
             the case in gcc.dg/strlenopt-8.c which is XFAILed for that
             reason.  */
          && !c_strlen (src, 2))
        {
          unsigned ilen = tree_to_uhwi (len);
          if (pow2p_hwi (ilen))
            {
>From gcc-bugs-return-576916-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 30 16:13:41 2017
Return-Path: <gcc-bugs-return-576916-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 89369 invoked by alias); 30 Sep 2017 16:13:41 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 89329 invoked by uid 48); 30 Sep 2017 16:13:37 -0000
From: "mac at mcrowe dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/41861] [DR 887][C++0x] <condition_variable> does not use monotonic_clock
Date: Sat, 30 Sep 2017 16:13:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 4.4.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mac at mcrowe dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-41861-4-PVJMVrvINs@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-41861-4@http.gcc.gnu.org/bugzilla/>
References: <bug-41861-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02945.txt.bz2
Content-length: 1318

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

--- Comment #15 from Mike Crowe <mac at mcrowe dot com> ---
(In reply to Mike Crowe from comment #14)
> I submitted an RFC glibc patch last year:
> http://patchwork.ozlabs.org/project/glibc/list/?submitter=66786

I submitted an updated version earlier this year:

 https://sourceware.org/ml/libc-alpha/2017-06/msg01111.html

There are a few minor niggles to address, but it seems that the greater hurdle
now is that two respondents have requested that I raise this with the Austin
Group. So, I have done so at:

 http://austingroupbugs.net/view.php?id=1164

If this attempt fails, then I think it would be preferable to switch libstdc++
std::condition_variable to use std::chrono::steady_clock as its primary clock
(along with the necessary changes in gthreads to support creating a condition
variable using CLOCK_MONOTONIC) and convert all other clocks to that clock. I
personally think it's more surprising that:

 cv.wait_for(std::chrono::seconds(2));

risks waiting for potentially huge amount of time if someone changes the system
clock, than

 cv.wait_until(std::chrono::system_clock::now() + std::chrono::seconds(2));

waiting for two seconds if someone changes the system clock just afterwards so
that the wait should return immediately.
>From gcc-bugs-return-576917-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 30 16:36:42 2017
Return-Path: <gcc-bugs-return-576917-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 99838 invoked by alias); 30 Sep 2017 16:36: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 99770 invoked by uid 48); 30 Sep 2017 16:36:38 -0000
From: "jrfsousa at hotmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82376] New: Duplicate function call using -fcheck=pointer
Date: Sat, 30 Sep 2017 16:36:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jrfsousa at hotmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created
Message-ID: <bug-82376-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02946.txt.bz2
Content-length: 1224

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

            Bug ID: 82376
           Summary: Duplicate function call using -fcheck=pointer
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jrfsousa at hotmail dot com
  Target Milestone: ---

Created attachment 42268
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42268&action=edit
Code showing the bug

Allocating procedure gets called twice (and leaks) using -fcheck=pointer

$ gfortran -cpp ./bug.f90
$ ./a.out 
 ****** typea_new
   3.14000010    
$ gfortran -DNOBUG -cpp -fcheck=pointer ./bug.f90
$ ./a.out 
 ****** typea_new
   3.14000010    
$ gfortran -cpp -fcheck=pointer ./bug.f90
$ ./a.out 
 ****** typea_new
 ****** typea_new
   3.14000010    

$ gfortran --version
GNU Fortran (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609
Copyright (C) 2015 Free Software Foundation, Inc.

$ gfortran --version
GNU Fortran (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4
Copyright (C) 2013 Free Software Foundation, Inc.

Best regards,
José Rui
>From gcc-bugs-return-576918-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 30 16:52:42 2017
Return-Path: <gcc-bugs-return-576918-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 95352 invoked by alias); 30 Sep 2017 16:52: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 95313 invoked by uid 48); 30 Sep 2017 16:52:38 -0000
From: "su at cs dot ucdavis.edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82377] New: wrong code at -O1 and above on x86_64-linux-gnu
Date: Sat, 30 Sep 2017 16:52:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: su at cs dot ucdavis.edu
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-82377-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02947.txt.bz2
Content-length: 1403

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

            Bug ID: 82377
           Summary: wrong code at -O1 and above on x86_64-linux-gnu
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: su at cs dot ucdavis.edu
  Target Milestone: ---

$ gcctk -v
Using built-in specs.
COLLECT_GCC=gcctk
COLLECT_LTO_WRAPPER=/home/su/software/tmp/gcc/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/8.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc-source-trunk/configure --enable-languages=c,c++,lto
--prefix=/home/su/software/tmp/gcc/gcc-trunk --disable-bootstrap
Thread model: posix
gcc version 8.0.0 20170930 (experimental) [trunk revision 253320] (GCC)
$
$ gcctk -O0 small.c; ./a.out
0
$ gcc-7.2.0 -O1 small.c; ./a.out
0
$
$ gcctk -O1 small.c
$ ./a.out
1
$


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


int printf (const char *, ...);

struct A
{ 
  int b;
  int c;
  int d;
  int e;
  int f;
  long g;
} h;

int i;

void o (int m)
{ 
  struct A p[9] = { { 1, 0, 0, 0, 0, 0 } };
  h = p[3];
}

void n (int q)
{ 
  o (i);
}

void l ()
{ 
  n (i);
}

void r ()
{ 
  l ();
  if (!i)
    return;
  while (1)
    ;
}

int main ()
{ 
  r ();
  printf ("%d\n", h.b);
  return 0;
}
>From gcc-bugs-return-576919-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 30 17:01:13 2017
Return-Path: <gcc-bugs-return-576919-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 105659 invoked by alias); 30 Sep 2017 17: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 105580 invoked by uid 55); 30 Sep 2017 17:01:05 -0000
From: "paolo at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/68754] Explicitly defaulted constexpr assignment operator fails to compile
Date: Sat, 30 Sep 2017 17:01:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 5.3.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: paolo.carlini at oracle dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-68754-4-dQKK92beDH@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-68754-4@http.gcc.gnu.org/bugzilla/>
References: <bug-68754-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02948.txt.bz2
Content-length: 993

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

--- Comment #6 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Sat Sep 30 17:00:32 2017
New Revision: 253321

URL: https://gcc.gnu.org/viewcvs?rev=253321&root=gcc&view=rev
Log:
/cp
2017-09-30  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/68754
        * method.c (defaulted_late_check): Early return if the defaulted
        declaration does not match the expected signature.

/testsuite
2017-09-30  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/68754
        * g++.dg/cpp1y/constexpr-68754.C: Move...
        * g++.dg/cpp0x/constexpr-68754.C: ... here, adjust.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-68754.C
      - copied, changed from r253320,
trunk/gcc/testsuite/g++.dg/cpp1y/constexpr-68754.C
Removed:
    trunk/gcc/testsuite/g++.dg/cpp1y/constexpr-68754.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/method.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-576920-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 30 17:04:38 2017
Return-Path: <gcc-bugs-return-576920-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 108497 invoked by alias); 30 Sep 2017 17: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 108439 invoked by uid 48); 30 Sep 2017 17:04:34 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/68754] Explicitly defaulted constexpr assignment operator fails to compile
Date: Sat, 30 Sep 2017 17:04:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 5.3.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution assigned_to
Message-ID: <bug-68754-4-xFFe2DHWVM@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-68754-4@http.gcc.gnu.org/bugzilla/>
References: <bug-68754-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02949.txt.bz2
Content-length: 554

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
           Assignee|paolo.carlini at oracle dot com    |unassigned at gcc dot gnu.org

--- Comment #7 from Paolo Carlini <paolo.carlini at oracle dot com> ---
C++11 diagnostic improved in trunk.
>From gcc-bugs-return-576921-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 30 17:08:30 2017
Return-Path: <gcc-bugs-return-576921-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 122293 invoked by alias); 30 Sep 2017 17:08:30 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 119251 invoked by uid 48); 30 Sep 2017 17:08:26 -0000
From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libfortran/82378] New: Data race in libgfortran with OpenMP
Date: Sat, 30 Sep 2017 17:08: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: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tkoenig at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-82378-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02950.txt.bz2
Content-length: 5410

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

            Bug ID: 82378
           Summary: Data race in libgfortran with OpenMP
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libfortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: tkoenig at gcc dot gnu.org
  Target Milestone: ---

Building an instrumented gfortran with

make -j4 CFLAGS="-std=gnu99 -g -O2 -fsanitize=thread "  FCFLAGS="-g -O2
-fsanitize=thread" CXXFLAGS="-std=gnu99 -g -O2 -fsanitize=thread "
LDFLAGS="-B`pwd`/../libsanitizer/tsan/.libs/
-Wl,-rpath,`pwd`/../libsanitizer/tsan/.libs/ -fsanitize=thread" && make install

and then compiling the test case

program main
  use omp_lib
  !$OMP PARALLEL NUM_THREADS(100)
  call file_open(OMP_get_thread_num())
  !$OMP END PARALLEL 
contains
  recursive subroutine file_open(i)
  integer :: i
  integer :: nunit
  nunit = i + 20
  write (nunit,*) 'asdf',i
  end subroutine file_open
end program main

with

gfortran -fopenmp -fsanitize=thread open.f90

yields quite a few data races like

==================
WARNING: ThreadSanitizer: data race (pid=1719)
  Read of size 4 at 0x3fff48527330 by main thread (mutexes: write M19):
    #0 close_unit_1 ../../../trunk/libgfortran/io/unit.c:703
(libgfortran.so.5+0x00000019b8e8)
    #1 _gfortrani_close_units ../../../trunk/libgfortran/io/unit.c:771
(libgfortran.so.5+0x00000019bd64)
    #2 cleanup ../../../trunk/libgfortran/runtime/main.c:113
(libgfortran.so.5+0x000000036948)
    #3 <null> <null> (ld64.so.1+0x000000018a9c)

  Previous write of size 4 at 0x3fff48527330 by thread T67 (mutexes: write
M99):
    #0 finalize_transfer ../../../trunk/libgfortran/io/transfer.c:3934
(libgfortran.so.5+0x000000198e34)
    #1 _gfortran_st_write_done ../../../trunk/libgfortran/io/transfer.c:4125
(libgfortran.so.5+0x000000199280)
    #2 <null> <null> (a.out+0x000010000e58)
    #3 <null> <null> (a.out+0x00001000103c)
    #4 gomp_thread_start ../../../trunk/libgomp/team.c:120
(libgomp.so.1+0x00000001fd84)

  Location is heap block of size 744 at 0x3fff48527300 allocated by thread T67:
    #0 calloc ../../../../trunk/libsanitizer/tsan/tsan_interceptors.cc:606
(libtsan.so.0+0x0000000479d8)
    #1 _gfortrani_xcalloc ../../../trunk/libgfortran/runtime/memory.c:83
(libgfortran.so.5+0x00000003f76c)
    #2 insert_unit ../../../trunk/libgfortran/io/unit.c:230
(libgfortran.so.5+0x00000019a1a8)
    #3 get_gfc_unit ../../../trunk/libgfortran/io/unit.c:350
(libgfortran.so.5+0x00000019a644)
    #4 _gfortrani_get_unit ../../../trunk/libgfortran/io/unit.c:568
(libgfortran.so.5+0x00000019c238)
    #5 data_transfer_init ../../../trunk/libgfortran/io/transfer.c:2680
(libgfortran.so.5+0x0000001972b0)
    #6 _gfortran_st_write ../../../trunk/libgfortran/io/transfer.c:4116
(libgfortran.so.5+0x000000198984)
    #7 <null> <null> (a.out+0x000010000e14)
    #8 <null> <null> (a.out+0x00001000103c)
    #9 gomp_thread_start ../../../trunk/libgomp/team.c:120
(libgomp.so.1+0x00000001fd84)

  Mutex M19 (0x3fff7fb5fc40) created at:
    #0 pthread_mutex_lock
../../../../trunk/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:3608
(libtsan.so.0+0x00000006329c)
    #1 __gthread_mutex_lock ../libgcc/gthr-default.h:748
(libgfortran.so.5+0x00000019a390)
    #2 get_gfc_unit ../../../trunk/libgfortran/io/unit.c:327
(libgfortran.so.5+0x00000019a390)
    #3 _gfortrani_get_unit ../../../trunk/libgfortran/io/unit.c:568
(libgfortran.so.5+0x00000019c238)
    #4 data_transfer_init ../../../trunk/libgfortran/io/transfer.c:2680
(libgfortran.so.5+0x0000001972b0)
    #5 _gfortran_st_write ../../../trunk/libgfortran/io/transfer.c:4116
(libgfortran.so.5+0x000000198984)
    #6 <null> <null> (a.out+0x000010000e14)
    #7 <null> <null> (a.out+0x00001000103c)
    #8 GOMP_parallel ../../../trunk/libgomp/parallel.c:168
(libgomp.so.1+0x000000016c10)
    #9 <null> <null> (a.out+0x000010000f8c)
    #10 <null> <null> (libc.so.6+0x000000046be8)

  Mutex M99 (0x3fff485273d8) created at:
    #0 pthread_mutex_lock
../../../../trunk/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:3608
(libtsan.so.0+0x00000006329c)
    #1 __gthread_mutex_lock ../libgcc/gthr-default.h:748
(libgfortran.so.5+0x00000019a228)
    #2 insert_unit ../../../trunk/libgfortran/io/unit.c:240
(libgfortran.so.5+0x00000019a228)
    #3 get_gfc_unit ../../../trunk/libgfortran/io/unit.c:350
(libgfortran.so.5+0x00000019a644)
    #4 _gfortrani_get_unit ../../../trunk/libgfortran/io/unit.c:568
(libgfortran.so.5+0x00000019c238)
    #5 data_transfer_init ../../../trunk/libgfortran/io/transfer.c:2680
(libgfortran.so.5+0x0000001972b0)
    #6 _gfortran_st_write ../../../trunk/libgfortran/io/transfer.c:4116
(libgfortran.so.5+0x000000198984)
    #7 <null> <null> (a.out+0x000010000e14)
    #8 <null> <null> (a.out+0x00001000103c)
    #9 gomp_thread_start ../../../trunk/libgomp/team.c:120
(libgomp.so.1+0x00000001fd84)

  Thread T67 (tid=1789, running) created by main thread at:
    #0 pthread_create
../../../../trunk/libsanitizer/tsan/tsan_interceptors.cc:900
(libtsan.so.0+0x000000048e14)
    #1 gomp_team_start ../../../trunk/libgomp/team.c:817
(libgomp.so.1+0x000000020308)
    #2 <null> <null> (a.out+0x000010000f8c)
    #3 <null> <null> (libc.so.6+0x000000046be8)
>From gcc-bugs-return-576922-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 30 17:11:43 2017
Return-Path: <gcc-bugs-return-576922-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 3334 invoked by alias); 30 Sep 2017 17:11:43 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 3245 invoked by uid 48); 30 Sep 2017 17:11:39 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/82362] [8 Regression] SPEC CPU2006 436.cactusADM ~7% performance deviation with trunk@251713
Date: Sat, 30 Sep 2017 17:11:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pinskia at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status component everconfirmed
Message-ID: <bug-82362-4-4br1FBOGdI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82362-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82362-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02951.txt.bz2
Content-length: 480

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |missed-optimization
             Status|WAITING                     |UNCONFIRMED
          Component|fortran                     |middle-end
     Ever confirmed|1                           |0
>From gcc-bugs-return-576923-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 30 17:51:25 2017
Return-Path: <gcc-bugs-return-576923-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 84400 invoked by alias); 30 Sep 2017 17: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 84325 invoked by uid 48); 30 Sep 2017 17:51:21 -0000
From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libfortran/82378] Data race in libgfortran with OpenMP
Date: Sat, 30 Sep 2017 17:51:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libfortran
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tkoenig at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-82378-4-s52HVeEDr1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82378-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82378-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02952.txt.bz2
Content-length: 795

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

Thomas Koenig <tkoenig at gcc dot gnu.org> changed:

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

--- Comment #1 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
The races do not happen for

program main
  use omp_lib
  !$OMP PARALLEL NUM_THREADS(100)
  call file_open(OMP_get_thread_num())
  !$OMP END PARALLEL 
contains
  recursive subroutine file_open(i)
  integer :: i
  integer :: nunit
  nunit = i + 20
  write (nunit,*) 'asdf',i
  close (nunit)
  end subroutine file_open
end program main

so it might be advisable to close files local to a thread as
a workaround.
>From gcc-bugs-return-576924-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 30 18:52:20 2017
Return-Path: <gcc-bugs-return-576924-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 32429 invoked by alias); 30 Sep 2017 18: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 32313 invoked by uid 48); 30 Sep 2017 18:52:15 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81958] spurious -Wmaybe-uninitialized warning in gcc-8, or with -O1
Date: Sat, 30 Sep 2017 18:52:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: law at redhat dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc blocked everconfirmed
Message-ID: <bug-81958-4-ghrj2yNzwx@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81958-4@http.gcc.gnu.org/bugzilla/>
References: <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-09/txt/msg02953.txt.bz2
Content-length: 2037

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-09-30
                 CC|                            |law at redhat dot com
             Blocks|                            |19794
     Ever confirmed|0                           |1

--- Comment #1 from Jeffrey A. Law <law at redhat dot com> ---
So I see a couple things here.

In DOM we do catch the fact that eqidx will have the value zero if the loop
does not iterate.  But the equivalence we record is actually eqidx >= maxidx. 
That's because we don't cprop into the conditionals in
record_temporary_equivalences.  We *should* do that, but we have to be careful
about structure sharing and I'd like to avoid creating a lot of unnecessary
tree nodes if it can be avoided.

If we were to fix that, we'd end recording maxidx <= 0.  Given that maxidx is
unsigned that simplifies into maxidx == 0.  Of course we don't those kind of
simplifications when recording the temporary equivalences either and the same
concerns WRT structure sharing come into play.

When things simplify into something like maxidx == 0, instead of recording a
conditional into the equivalency tables, we should record that maxidx = 0 in
the const/copies table.

If we were to fix those 3 issues, then I think we have all the key pieces in
place to see the jump thread.  But we still have to be concerned that jump
threading may be suppressed because of its conservatism WRT not clobbering the
loop structure.  It should be safe in this case, but I don't offhand know if
the  suppression code would kick in or not.

So, anyway, there's several TODO items in here.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=19794
[Bug 19794] [meta-bug] Jump threading related bugs
>From gcc-bugs-return-576926-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 30 19:49:04 2017
Return-Path: <gcc-bugs-return-576926-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 73116 invoked by alias); 30 Sep 2017 19:49:04 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 72909 invoked by uid 48); 30 Sep 2017 19:48:59 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/59949] lambda expression as default argument of function template causes "already defined" messages in assembler
Date: Sat, 30 Sep 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: 4.8.2
X-Bugzilla-Keywords: assemble-failure
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-59949-4-QKwmtti9aH@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-59949-4@http.gcc.gnu.org/bugzilla/>
References: <bug-59949-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02955.txt.bz2
Content-length: 461

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |w.shane.grant at gmail dot com

--- Comment #6 from Paolo Carlini <paolo.carlini at oracle dot com> ---
*** Bug 65870 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-576925-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 30 19:49:03 2017
Return-Path: <gcc-bugs-return-576925-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 73014 invoked by alias); 30 Sep 2017 19:49: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 72875 invoked by uid 48); 30 Sep 2017 19:48:59 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/65870] Explicit function instantiation with default valued lambda causes duplicate symbol
Date: Sat, 30 Sep 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: 4.9.1
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle 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: bug_status resolution
Message-ID: <bug-65870-4-9oSvHSzZoK@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-65870-4@http.gcc.gnu.org/bugzilla/>
References: <bug-65870-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02954.txt.bz2
Content-length: 508

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

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

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

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Dup indeed.

*** This bug has been marked as a duplicate of bug 59949 ***
>From gcc-bugs-return-576927-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 30 20:42:41 2017
Return-Path: <gcc-bugs-return-576927-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 125932 invoked by alias); 30 Sep 2017 20:42:41 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 125881 invoked by uid 55); 30 Sep 2017 20:42:36 -0000
From: "paolo at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/65949] Compiler can not deduce auto type in lambda
Date: Sat, 30 Sep 2017 20:42:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 5.1.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: minor
X-Bugzilla-Who: paolo at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-65949-4-UF7AwEAHfm@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-65949-4@http.gcc.gnu.org/bugzilla/>
References: <bug-65949-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02956.txt.bz2
Content-length: 518

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

--- Comment #1 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Sat Sep 30 20:42:05 2017
New Revision: 253322

URL: https://gcc.gnu.org/viewcvs?rev=253322&root=gcc&view=rev
Log:
2017-09-30  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/65949
        * g++.dg/cpp1y/lambda-generic-variadic5.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1y/lambda-generic-variadic5.C
Modified:
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-576928-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 30 20:43:57 2017
Return-Path: <gcc-bugs-return-576928-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 128153 invoked by alias); 30 Sep 2017 20:43:57 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 128116 invoked by uid 48); 30 Sep 2017 20:43:53 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/65949] Compiler can not deduce auto type in lambda
Date: Sat, 30 Sep 2017 20:43:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 5.1.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: minor
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution target_milestone
Message-ID: <bug-65949-4-3nTAwrsRqD@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-65949-4@http.gcc.gnu.org/bugzilla/>
References: <bug-65949-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02957.txt.bz2
Content-length: 590

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

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

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

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> ---
This is fixed in trunk and gcc-7-branch. To be safe I added a compile-time test
and I'm closing the bug.
>From gcc-bugs-return-576929-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 30 20:48:19 2017
Return-Path: <gcc-bugs-return-576929-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 7308 invoked by alias); 30 Sep 2017 20:48: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 7098 invoked by uid 48); 30 Sep 2017 20:48:01 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82376] Duplicate function call using -fcheck=pointer
Date: Sat, 30 Sep 2017 20:48:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-82376-4-B5IfCPAcLQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82376-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82376-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02958.txt.bz2
Content-length: 618

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-09-30
     Ever confirmed|0                           |1

--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Confirmed from 4.5 up to trunk (8.0). -fcheck=pointer is not available in 4.4.
>From gcc-bugs-return-576930-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 30 20:51:09 2017
Return-Path: <gcc-bugs-return-576930-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 10235 invoked by alias); 30 Sep 2017 20:51:08 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 10173 invoked by uid 48); 30 Sep 2017 20:51:03 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/67370] Invalid "parameter packs not expanded" error in lambda capture
Date: Sat, 30 Sep 2017 20:51:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-67370-4-nHzgadFcQ5@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67370-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67370-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02959.txt.bz2
Content-length: 600

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

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

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

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Interestingly, it's still an issue in trunk.
>From gcc-bugs-return-576931-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 30 21:02:36 2017
Return-Path: <gcc-bugs-return-576931-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 24324 invoked by alias); 30 Sep 2017 21: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 24278 invoked by uid 48); 30 Sep 2017 21:02:32 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82375] PDT error
Date: Sat, 30 Sep 2017 21:02:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-82375-4-A7GKk0oUiN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82375-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82375-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02960.txt.bz2
Content-length: 1332

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-09-30
     Ever confirmed|0                           |1

--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Reduced test

module precision_module
  implicit none
  integer, parameter :: sp = selected_real_kind(6, 37)
  integer, parameter :: dp = selected_real_kind(15, 307)
  integer, parameter :: qp = selected_real_kind( 30, 291)
end module precision_module

module link_module
  use precision_module
  type link(real_kind)
    integer, kind :: real_kind
    real (kind=real_kind) :: n
    type (link(real_kind)), pointer :: next
  end type link
end module link_module

program ch2701
  use precision_module
  use link_module
  implicit none
  integer, parameter :: wp = dp
  type (link(real_kind=wp)), pointer :: root, current
end program ch2701

Note the double quote due to 

                  gfc_error ("The derived parameter '%qs' at %C does not "
                             "have a default value", param->name);

in fortran/decl.c.
>From gcc-bugs-return-576933-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 30 21:07:56 2017
Return-Path: <gcc-bugs-return-576933-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 42288 invoked by alias); 30 Sep 2017 21: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 42203 invoked by uid 48); 30 Sep 2017 21:07:53 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/59949] lambda expression as default argument of function template causes "already defined" messages in assembler
Date: Sat, 30 Sep 2017 21:07:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.8.2
X-Bugzilla-Keywords: assemble-failure
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-59949-4-1YxPaD599a@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-59949-4@http.gcc.gnu.org/bugzilla/>
References: <bug-59949-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02962.txt.bz2
Content-length: 516

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kirit.saelensminde at gmail dot co
                   |                            |m

--- Comment #7 from Paolo Carlini <paolo.carlini at oracle dot com> ---
*** Bug 78919 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-576932-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 30 21:07:56 2017
Return-Path: <gcc-bugs-return-576932-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 42239 invoked by alias); 30 Sep 2017 21: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 42148 invoked by uid 48); 30 Sep 2017 21:07:52 -0000
From: "paolo.carlini at oracle dot com" <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: Sat, 30 Sep 2017 21: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: 5.4.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle 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: bug_status resolution
Message-ID: <bug-78919-4-iJLQQZ9icl@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-09/txt/msg02961.txt.bz2
Content-length: 501

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

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

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

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Dup.

*** This bug has been marked as a duplicate of bug 59949 ***
>From gcc-bugs-return-576934-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 30 21:34:46 2017
Return-Path: <gcc-bugs-return-576934-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 5647 invoked by alias); 30 Sep 2017 21:34:46 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 980 invoked by uid 48); 30 Sep 2017 21:34:42 -0000
From: "steven at uplinklabs dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/82379] New: internal_sigreturn not defined in libasan.so or libubsan.so with -mx32
Date: Sat, 30 Sep 2017 21:34:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: sanitizer
X-Bugzilla-Version: 7.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: steven at uplinklabs 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 cc target_milestone
Message-ID: <bug-82379-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02963.txt.bz2
Content-length: 2901

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

            Bug ID: 82379
           Summary: internal_sigreturn not defined in libasan.so or
                    libubsan.so with -mx32
           Product: gcc
           Version: 7.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: sanitizer
          Assignee: unassigned at gcc dot gnu.org
          Reporter: steven at uplinklabs dot net
                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: ---

The symbol "internal_sigreturn" isn't defined when building for the x32 ABI on
x86_64:

$ cat test.c
int main(){ return 0; }

$ gcc -mx32 -fsanitize=address -o test test.c
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.1/../../../../libx32/libasan.so: undefined
reference to `internal_sigreturn'
collect2: error: ld returned 1 exit status

$ gcc -mx32 -fsanitize=undefined -o test test.c
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.1/../../../../libx32/libubsan.so:
undefined reference to `internal_sigreturn'
collect2: error: ld returned 1 exit status

$ gcc -v
Using built-in specs.
COLLECT_GCC=/usr/bin/gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.1/lto-wrapper
Target: x86_64-pc-linux-gnu                                                     
Configured with: /build/gcc-multilib/src/gcc/configure
--host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu
--target=x86_64-pc-linux-gnu --prefix=/usr --libdir=/usr/lib
--libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info
--with-bugurl=https://www.uplinklabs.net/
--enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --disable-libssp
--disable-libstdcxx-pch --disable-libunwind-exceptions --disable-werror
--enable-__cxa_atexit --enable-checking=release --enable-clocale=gnu
--enable-gnu-indirect-function --enable-gnu-unique-object
--enable-initfini-array --enable-install-libiberty --enable-libmpx
--enable-linker-build-id --enable-lto --enable-multilib --enable-plugin
--enable-shared --enable-threads=posix --with-isl --with-linker-hash-style=gnu
--with-multilib-list=m32,m64,mx32 --with-system-zlib                         
Thread model: posix                                                             
gcc version 7.2.1 20170929 (GCC)

My GCC was built from latest in gcc-7-branch yesterday.


Defining something like this in my application does technically work, but
really shouldn't be necessary:

void (*internal_sigreturn)(void) = 0;
>From gcc-bugs-return-576935-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 30 21:49:17 2017
Return-Path: <gcc-bugs-return-576935-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 22447 invoked by alias); 30 Sep 2017 21:49: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 22400 invoked by uid 48); 30 Sep 2017 21:49:12 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/82365] stack locations are consolidated if noreturn function is on the path
Date: Sat, 30 Sep 2017 21:49:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
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: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on component short_desc everconfirmed bug_severity
Message-ID: <bug-82365-4-GiqYUIsBMh@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82365-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82365-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02964.txt.bz2
Content-length: 2304

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |missed-optimization
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-09-30
          Component|other                       |middle-end
            Summary|excessive stack usage with  |stack locations are
                   |norreturn attribute         |consolidated if noreturn
                   |                            |function is on the path
     Ever confirmed|0                           |1
           Severity|normal                      |enhancement

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
here is a reduced testcase to show the issue a lot better:
#define __noreturn __attribute__((noreturn))

struct i2c_board_info {
        char type[20];
        char pad[100];
};

#ifdef NONORETURN
void fortify_panic();
#else
void fortify_panic() __noreturn;
#endif


int f(int a)
{
  if (a)
    fortify_panic();
}


void i2c_new_device(struct i2c_board_info *);
int em28xx_dvb_init(int model, int a, int b, int c, int d)
{
        switch (model) {
        case 1:{
                        struct i2c_board_info info = {};
                        f(a);
                        i2c_new_device(&info);
                        break;
                }
        case 2:{
                        struct i2c_board_info info = {};
                        f(b);
                        i2c_new_device(&info);
                        break;
                }
        case 3:{
                        struct i2c_board_info info = { };
                        f(c);
                        i2c_new_device(&info);
                        break;
                }
        case 4:{
                        struct i2c_board_info info = { };
                        f(d);
                        i2c_new_device(&info);
                        break;
                }
        }
        return 0;
}

Basically the noreturn function is not considered a barrier for the info so the
middle-end thinks all of the info can overlap in scope.
>From gcc-bugs-return-576936-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 30 21:54:29 2017
Return-Path: <gcc-bugs-return-576936-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 42745 invoked by alias); 30 Sep 2017 21:54:28 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 42700 invoked by uid 48); 30 Sep 2017 21:54:24 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/82365] stack locations are consolidated if noreturn function is on the path
Date: Sat, 30 Sep 2017 21:54:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
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: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82365-4-lSlYFdOTV7@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82365-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82365-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02965.txt.bz2
Content-length: 237

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

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Basically someone needs to look into add_scope_conflicts (in gimplecfg.c) to
see the scope conflict is being added.
>From gcc-bugs-return-576937-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 30 23:27:28 2017
Return-Path: <gcc-bugs-return-576937-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 92232 invoked by alias); 30 Sep 2017 23: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 92147 invoked by uid 48); 30 Sep 2017 23:27:23 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/45513] BOZ kinds differently handled, F2008: BOZ in bit intrinsics
Date: Sat, 30 Sep 2017 23:27:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 4.6.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-45513-4-vfj4NFoYDB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-45513-4@http.gcc.gnu.org/bugzilla/>
References: <bug-45513-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02966.txt.bz2
Content-length: 160

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

--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Related to/duplicate of pr81509.
>From gcc-bugs-return-576938-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 30 23:28:01 2017
Return-Path: <gcc-bugs-return-576938-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 93098 invoked by alias); 30 Sep 2017 23:28: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 93053 invoked by uid 48); 30 Sep 2017 23:27:57 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/54072] BOZ with -stdò008: wrongly accepted to TRANSFER/ABS/...; two BOZ not rejected for IOR/IEOR/IAND
Date: Sat, 30 Sep 2017 23:28:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 4.8.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-54072-4-KgqvsvOQZT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-54072-4@http.gcc.gnu.org/bugzilla/>
References: <bug-54072-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-09/txt/msg02967.txt.bz2
Content-length: 160

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

--- Comment #6 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Related to/duplicate of pr81509.
>From gcc-bugs-return-576939-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 30 23:52:45 2017
Return-Path: <gcc-bugs-return-576939-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 86185 invoked by alias); 30 Sep 2017 23: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 86109 invoked by uid 48); 30 Sep 2017 23:52:41 -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: Sat, 30 Sep 2017 23:52:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: ipa
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: danglin at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-77732-4-HsPtlIhyvX@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-09/txt/msg02968.txt.bz2
Content-length: 447

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

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

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

--- Comment #7 from John David Anglin <danglin at gcc dot gnu.org> ---
Resolved by xfail.
>From gcc-bugs-return-576940-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 00:49:42 2017
Return-Path: <gcc-bugs-return-576940-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 2509 invoked by alias); 1 Oct 2017 00:49: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 128686 invoked by uid 48); 1 Oct 2017 00:49:38 -0000
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/82379] [7/8 Regression] internal_sigreturn not defined in libasan.so or libubsan.so with -mx32
Date: Sun, 01 Oct 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: sanitizer
X-Bugzilla-Version: 7.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hjl.tools at gmail dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc short_desc everconfirmed
Message-ID: <bug-82379-4-OQ4lOZzPoC@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82379-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82379-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00000.txt.bz2
Content-length: 1589

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-10-01
                 CC|                            |m.ostapenko at samsung dot com
            Summary|internal_sigreturn not      |[7/8 Regression]
                   |defined in libasan.so or    |internal_sigreturn not
                   |libubsan.so with -mx32      |defined in libasan.so or
                   |                            |libubsan.so with -mx32
     Ever confirmed|0                           |1

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
This caused by r241977:

diff --git a/libsanitizer/configure.tgt b/libsanitizer/configure.tgt
index 05ead765e62..8d884f4bf52 100644
--- a/libsanitizer/configure.tgt
+++ b/libsanitizer/configure.tgt
@@ -20,12 +20,14 @@

 # Filter out unsupported systems.
 TSAN_TARGET_DEPENDENT_OBJECTS=
+SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS=
 case "${target}" in
   x86_64-*-linux* | i?86-*-linux*)
        if test x$ac_cv_sizeof_void_p = x8; then
                TSAN_SUPPORTED=yes
                LSAN_SUPPORTED=yes
                TSAN_TARGET_DEPENDENT_OBJECTS=tsan_rtl_amd64.lo
+              
SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS=sanitizer_linux_x86_64.lo
        fi
        ;;
   powerpc*-*-linux*)

This is wrong for x32.
>From gcc-bugs-return-576941-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 00:57:07 2017
Return-Path: <gcc-bugs-return-576941-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 41404 invoked by alias); 1 Oct 2017 00: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 41332 invoked by uid 48); 1 Oct 2017 00:57:04 -0000
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/82379] [7/8 Regression] internal_sigreturn not defined in libasan.so or libubsan.so with -mx32
Date: Sun, 01 Oct 2017 00:57:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: sanitizer
X-Bugzilla-Version: 7.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hjl.tools at gmail dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc attachments.created
Message-ID: <bug-82379-4-K7xtGXbG5u@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82379-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82379-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00001.txt.bz2
Content-length: 499

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

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

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

--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> ---
Created attachment 42269
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42269&action=edit
A patch

I am testing this.
>From gcc-bugs-return-576942-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 01:23:26 2017
Return-Path: <gcc-bugs-return-576942-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 438 invoked by alias); 1 Oct 2017 01:23:26 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 327 invoked by uid 48); 1 Oct 2017 01:23:17 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/80147] missing maybe-uninitialized warning on variable with no side effects
Date: Sun, 01 Oct 2017 01:23:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 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 everconfirmed
Message-ID: <bug-80147-4-YB7sDe3s3Y@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80147-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80147-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00002.txt.bz2
Content-length: 1479

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-10-01
     Ever confirmed|0                           |1

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed, probably because optimization lets gcc take advantage of knowledge
that f1 doesn't actually use its parameter:

$ /usr/local/bin/gcc -c -Wall -Wextra -O1 80147.c
80147.c: In function ‘f1’:
80147.c:2:21: warning: unused parameter ‘i’ [-Wunused-parameter]
 static void f1 (int i) { }
                     ^
80147.c: In function ‘g’:
80147.c:8:2: warning: ‘i1’ is used uninitialized in this function
[-Wuninitialized]
  f1 (i1);
  ^~~~~~~
80147.c:9:2: warning: ‘i2’ is used uninitialized in this function
[-Wuninitialized]
  f2 (i2);
  ^~~~~~~
80147.c:3:26: warning: ‘j2’ may be used uninitialized in this function
[-Wmaybe-uninitialized]
 static void f2 (int i) { f0 (i); }
                          ^~~~~~
80147.c:7:18: note: ‘j2’ was declared here
  int i1, i2, j1, j2;
                  ^~
$

...but if that's the case, then why doesn't the warning go away for i1, too?
>From gcc-bugs-return-576943-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 01:28:40 2017
Return-Path: <gcc-bugs-return-576943-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 5121 invoked by alias); 1 Oct 2017 01:28: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 4990 invoked by uid 48); 1 Oct 2017 01:28:35 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/79768] `-Wmaybe-uninitialized' false positive with optimisation
Date: Sun, 01 Oct 2017 01:28:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 5.3.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: 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-79768-4-HTS579Uh0D@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79768-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79768-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00003.txt.bz2
Content-length: 591

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

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

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

--- Comment #5 from Eric Gallager <egallager at gcc dot gnu.org> ---
I can't reproduce the bug with gcc trunk; neither the original nor the
preprocessed source give me any warnings. Feel free to reopen if it still
happens for you.
>From gcc-bugs-return-576944-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 01:28:41 2017
Return-Path: <gcc-bugs-return-576944-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 5143 invoked by alias); 1 Oct 2017 01:28: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 5074 invoked by uid 48); 1 Oct 2017 01:28:36 -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: Sun, 01 Oct 2017 01:28: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-ZydXn8Y9Tz@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-10/txt/msg00004.txt.bz2
Content-length: 487

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

Bug 79768 Summary: `-Wmaybe-uninitialized' false positive with optimisation
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79768

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |WORKSFORME
>From gcc-bugs-return-576945-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 01:33:47 2017
Return-Path: <gcc-bugs-return-576945-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 9507 invoked by alias); 1 Oct 2017 01:33:47 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 9377 invoked by uid 48); 1 Oct 2017 01:33:41 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/70246] Spurious -Wmaybe-uninitialized warnings with -O1
Date: Sun, 01 Oct 2017 01:33:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 5.3.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: 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-70246-4-1DCgDEBgOG@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70246-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70246-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00005.txt.bz2
Content-length: 1215

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

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

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

--- Comment #5 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Mike Jarvis from comment #4)
> Created attachment 37984 [details]
> An alternate source that uses a custom Complex class
> 
> OK, here is a version that rolls its own Complex class, rather than using
> the standard library's complex<double>.  I stripped out the parts of that
> that aren't relevant for this, so hopefully this is small enough for you.
> 
> A possible clue is that the warning goes away if Complex is implemented in
> terms of double _x and double _y (as the normal template version of
> std::complex does) rather than __complex__ double _z (as the specialization
> std::complex<double> does).

I can't reproduce this bug with current gcc; this source produces no warnings
for me when I compile it. Feel free to reopen if you still get the warning.
>From gcc-bugs-return-576946-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 01:33:48 2017
Return-Path: <gcc-bugs-return-576946-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 9684 invoked by alias); 1 Oct 2017 01: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 9451 invoked by uid 48); 1 Oct 2017 01:33:45 -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: Sun, 01 Oct 2017 01:33: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-skI9X9SCKw@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-10/txt/msg00006.txt.bz2
Content-length: 479

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

Bug 70246 Summary: Spurious -Wmaybe-uninitialized warnings with -O1
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70246

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |WORKSFORME
>From gcc-bugs-return-576947-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 01:34:41 2017
Return-Path: <gcc-bugs-return-576947-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 11686 invoked by alias); 1 Oct 2017 01: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 11585 invoked by uid 48); 1 Oct 2017 01:34:37 -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: Sun, 01 Oct 2017 01:34: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-ehq1QS5q1C@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-10/txt/msg00007.txt.bz2
Content-length: 504

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

Bug 51544 Summary: uninitialized variable false positive prevents bootstrap with -fipa-cp-clone
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51544

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED
>From gcc-bugs-return-576948-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 01:34:44 2017
Return-Path: <gcc-bugs-return-576948-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 11922 invoked by alias); 1 Oct 2017 01:34:43 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 11489 invoked by uid 48); 1 Oct 2017 01:34:36 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/51544] uninitialized variable false positive prevents bootstrap with -fipa-cp-clone
Date: Sun, 01 Oct 2017 01:34:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 4.7.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: 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-51544-4-13KICcHAE5@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-51544-4@http.gcc.gnu.org/bugzilla/>
References: <bug-51544-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00008.txt.bz2
Content-length: 1023

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

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

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

--- Comment #6 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to David Binderman from comment #5)
> (In reply to comment #3)
> > I've been trying to bootstrap using "-g -O3" in BOOT_CFLAGS. 
> > That doesn't work, but "-g -O2" of course does.
> 
> I am pleased to be able to say that BOOT_CFLAGS= -g -O3
> works for revision 196574 (Sat 09 March 2013).
> 
> I'll use this as my new default build setting,
> so when it stops working I'll be able to put in a bug report.
> 
> This is a long way from -g -O3 being the default
> for all architectures, but it is a good step forward.
> 
> I think this bug is fixed.

OK, closing as FIXED then.
>From gcc-bugs-return-576949-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 01:43:49 2017
Return-Path: <gcc-bugs-return-576949-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 18471 invoked by alias); 1 Oct 2017 01: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 18355 invoked by uid 48); 1 Oct 2017 01:43:45 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/53480] warning "may be used uninitialized" issued with -m32 but not with -m64
Date: Sun, 01 Oct 2017 01:43:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 4.6.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 resolution
Message-ID: <bug-53480-4-DlPGGy09lR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-53480-4@http.gcc.gnu.org/bugzilla/>
References: <bug-53480-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00009.txt.bz2
Content-length: 630

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

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

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

--- Comment #3 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #2)
> In GCC 4.7.0 and above, it does not warn with -m32 or -m64.

Yeah I don't get this warning with current gcc either; I'm going to close it as
WORKSFORME.
>From gcc-bugs-return-576950-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 01:43:50 2017
Return-Path: <gcc-bugs-return-576950-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 18556 invoked by alias); 1 Oct 2017 01: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 18415 invoked by uid 48); 1 Oct 2017 01:43:46 -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: Sun, 01 Oct 2017 01:43: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-9GuOBSBlPQ@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-10/txt/msg00010.txt.bz2
Content-length: 503

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

Bug 53480 Summary: warning "may be used uninitialized" issued with -m32 but not with -m64
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53480

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |WORKSFORME
>From gcc-bugs-return-576951-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 02:37:56 2017
Return-Path: <gcc-bugs-return-576951-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 126782 invoked by alias); 1 Oct 2017 02:37: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 126712 invoked by uid 48); 1 Oct 2017 02:37:50 -0000
From: "steven at uplinklabs dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/82379] [7/8 Regression] internal_sigreturn not defined in libasan.so or libubsan.so with -mx32
Date: Sun, 01 Oct 2017 02:37:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: sanitizer
X-Bugzilla-Version: 7.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: steven at uplinklabs 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-82379-4-TtJZlOlJGh@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82379-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82379-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00011.txt.bz2
Content-length: 1185

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

--- Comment #3 from Steven Noonan <steven at uplinklabs dot net> ---
Are you sure that patch is sufficient? __x86_64__ is defined on both the normal
x86_64 ABI and on the x32 ABI. The combination most often used to identify x32
is 'defined(__x86_64__) && defined(__ILP32__)'

I've currently got this patch applied locally which allows me to build against
the x32 ABI with -fsanitize=foo:

diff --git a/libsanitizer/sanitizer_common/sanitizer_linux.cc
b/libsanitizer/sanitizer_common/sanitizer_linux.cc
index 5b6f18602e7..a11592614a4 100644
--- a/libsanitizer/sanitizer_common/sanitizer_linux.cc
+++ b/libsanitizer/sanitizer_common/sanitizer_linux.cc
@@ -674,7 +674,7 @@ int internal_sigaction_syscall(int signum, const void *act,
void *oldact) {
     return internal_sigaction_norestorer(signum, act, oldact);
   __sanitizer_sigaction u_adjust;
   internal_memcpy(&u_adjust, act, sizeof(u_adjust));
-#if !SANITIZER_ANDROID || !SANITIZER_MIPS32
+#if (!SANITIZER_ANDROID || !SANITIZER_MIPS32) && !defined(__ILP32__)
     if (u_adjust.sa_restorer == nullptr) {
       u_adjust.sa_restorer = internal_sigreturn;
     }
>From gcc-bugs-return-576952-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 02:57:11 2017
Return-Path: <gcc-bugs-return-576952-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 38775 invoked by alias); 1 Oct 2017 02: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 38708 invoked by uid 48); 1 Oct 2017 02:57:06 -0000
From: "ryan.burn at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82380] New: [concepts] Error when using requires constraint with attributes
Date: Sun, 01 Oct 2017 02: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: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ryan.burn 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-82380-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00012.txt.bz2
Content-length: 974

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

            Bug ID: 82380
           Summary: [concepts] Error when using requires constraint with
                    attributes
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ryan.burn at gmail dot com
  Target Milestone: ---

I believe the below code should work but it gives me the error:

main.cpp:6:1: error: two consecutive '[' shall only introduce an attribute
before '[' token
 [[nodiscard]] int f(T t) {
 ^

tested with gcc head 8.0.0 201709

///////////////////////////////////////////////////////////////////
template <class T>
concept bool C = true;

template <class T>
  requires C<T>
[[nodiscard]] int f(T t) {
  return 22;
}

int main() {
  return 0;
}
///////////////////////////////////////////////////////////////////
>From gcc-bugs-return-576953-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 03:17:54 2017
Return-Path: <gcc-bugs-return-576953-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 111814 invoked by alias); 1 Oct 2017 03:17:53 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 107027 invoked by uid 48); 1 Oct 2017 03:17:47 -0000
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/82379] [7/8 Regression] internal_sigreturn not defined in libasan.so or libubsan.so with -mx32
Date: Sun, 01 Oct 2017 03:17:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: sanitizer
X-Bugzilla-Version: 7.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hjl.tools at gmail dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82379-4-44QEempkHn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82379-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82379-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00013.txt.bz2
Content-length: 1316

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

--- Comment #4 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Steven Noonan from comment #3)
> Are you sure that patch is sufficient? __x86_64__ is defined on both the
> normal x86_64 ABI and on the x32 ABI. The combination most often used to
> identify x32 is 'defined(__x86_64__) && defined(__ILP32__)'
> 
> I've currently got this patch applied locally which allows me to build
> against the x32 ABI with -fsanitize=foo:
> 
> diff --git a/libsanitizer/sanitizer_common/sanitizer_linux.cc
> b/libsanitizer/sanitizer_common/sanitizer_linux.cc
> index 5b6f18602e7..a11592614a4 100644
> --- a/libsanitizer/sanitizer_common/sanitizer_linux.cc
> +++ b/libsanitizer/sanitizer_common/sanitizer_linux.cc
> @@ -674,7 +674,7 @@ int internal_sigaction_syscall(int signum, const void
> *act, void *oldact) {
>      return internal_sigaction_norestorer(signum, act, oldact);
>    __sanitizer_sigaction u_adjust;
>    internal_memcpy(&u_adjust, act, sizeof(u_adjust));
> -#if !SANITIZER_ANDROID || !SANITIZER_MIPS32
> +#if (!SANITIZER_ANDROID || !SANITIZER_MIPS32) && !defined(__ILP32__)
>      if (u_adjust.sa_restorer == nullptr) {
>        u_adjust.sa_restorer = internal_sigreturn;
>      }

I don't believe this is correct. Please try my patch.
>From gcc-bugs-return-576954-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 03:25:00 2017
Return-Path: <gcc-bugs-return-576954-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 57310 invoked by alias); 1 Oct 2017 03:24: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 57189 invoked by uid 48); 1 Oct 2017 03:24:41 -0000
From: "steven at uplinklabs dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/82379] [7/8 Regression] internal_sigreturn not defined in libasan.so or libubsan.so with -mx32
Date: Sun, 01 Oct 2017 03:24:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: sanitizer
X-Bugzilla-Version: 7.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: steven at uplinklabs 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-82379-4-xla0k0GrBD@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82379-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82379-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00014.txt.bz2
Content-length: 1680

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

--- Comment #5 from Steven Noonan <steven at uplinklabs dot net> ---
(In reply to H.J. Lu from comment #4)
> (In reply to Steven Noonan from comment #3)
> > Are you sure that patch is sufficient? __x86_64__ is defined on both the
> > normal x86_64 ABI and on the x32 ABI. The combination most often used to
> > identify x32 is 'defined(__x86_64__) && defined(__ILP32__)'
> > 
> > I've currently got this patch applied locally which allows me to build
> > against the x32 ABI with -fsanitize=foo:
> > 
> > diff --git a/libsanitizer/sanitizer_common/sanitizer_linux.cc
> > b/libsanitizer/sanitizer_common/sanitizer_linux.cc
> > index 5b6f18602e7..a11592614a4 100644
> > --- a/libsanitizer/sanitizer_common/sanitizer_linux.cc
> > +++ b/libsanitizer/sanitizer_common/sanitizer_linux.cc
> > @@ -674,7 +674,7 @@ int internal_sigaction_syscall(int signum, const void
> > *act, void *oldact) {
> >      return internal_sigaction_norestorer(signum, act, oldact);
> >    __sanitizer_sigaction u_adjust;
> >    internal_memcpy(&u_adjust, act, sizeof(u_adjust));
> > -#if !SANITIZER_ANDROID || !SANITIZER_MIPS32
> > +#if (!SANITIZER_ANDROID || !SANITIZER_MIPS32) && !defined(__ILP32__)
> >      if (u_adjust.sa_restorer == nullptr) {
> >        u_adjust.sa_restorer = internal_sigreturn;
> >      }
> 
> I don't believe this is correct.

If you mean the patch itself, then I agree. It was just what happened to
unblock me.

> Please try my patch.

I gave your patch a second look and I see why it'd work now
("x$ac_cv_sizeof_void_p = x8" would be false on x32). I'm building GCC with
your patch now, it'll be a while.
>From gcc-bugs-return-576955-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 04:23:23 2017
Return-Path: <gcc-bugs-return-576955-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 2275 invoked by alias); 1 Oct 2017 04:23: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 2238 invoked by uid 48); 1 Oct 2017 04:23:16 -0000
From: "ian at airs dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug go/82348] make[4]: Circular runtime.lo <- bytes.gox dependency dropped.
Date: Sun, 01 Oct 2017 04:23:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: go
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ian at airs dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: INVALID
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ian at airs dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82348-4-zoMwn9yIoL@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82348-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82348-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00015.txt.bz2
Content-length: 2996

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

--- Comment #6 from Ian Lance Taylor <ian at airs dot com> ---
The bug is that something is requiring internal/cpu.gox.  Nothing should
require it.

There is only one mention of internal/cpu in the math package, in the
floor_asm.go file, but that file has a build tag that should cause it to be
always ignored.

If you remove math.lo.dep, and then run `make math.lo.dep`, you should see a
command like

/bin/mkdir -p .; dir=`echo math.lo.dep | sed -e 's/.lo.dep$//'`; files=`/bin/sh
../../../gccgo/libgo/match.sh --goarch=amd64 --goos=linux
--srcdir=../../../gccgo/libgo/go/$dir --extrafiles="" `; /bin/sh
../../../gccgo/libgo/godeps.sh `echo math.lo.dep | sed -e 's/.dep$//'` $files >
math.lo.dep.tmp; if ! cmp math.lo.dep.tmp math.lo.dep >/dev/null 2>/dev/null;
then rm -f `echo math.lo.dep | sed -e 's/\.dep$//'`; fi; mv -f math.lo.dep.tmp
math.lo.dep

Run the command

/bin/sh ../../../gccgo/libgo/match.sh --goarch=amd64 --goos=linux
--srcdir=../../../gccgo/libgo/go/$dir --extrafiles=""

to see what files is set to.  Then run

/bin/sh ../../../gccgo/libgo/godeps.sh `echo math.lo.dep | sed -e 's/.dep$//'`
$files

to see what winds up in math.lo.dep.  Somewhere in there something has gone
wrong.

On my system math.lo.dep is

math.lo: ../../../gccgo3/libgo/go/math/abs.go
../../../gccgo3/libgo/go/math/acosh.go ../../../gccgo3/libgo/go/math/asin.go
../../../gccgo3/libgo/go/math/asinh.go ../../../gccgo3/libgo/go/math/atan.go
../../../gccgo3/libgo/go/math/atan2.go ../../../gccgo3/libgo/go/math/atanh.go
../../../gccgo3/libgo/go/math/bits.go ../../../gccgo3/libgo/go/math/cbrt.go
../../../gccgo3/libgo/go/math/const.go
../../../gccgo3/libgo/go/math/copysign.go ../../../gccgo3/libgo/go/math/dim.go
../../../gccgo3/libgo/go/math/erf.go ../../../gccgo3/libgo/go/math/exp.go
../../../gccgo3/libgo/go/math/expm1.go ../../../gccgo3/libgo/go/math/floor.go
../../../gccgo3/libgo/go/math/frexp.go ../../../gccgo3/libgo/go/math/gamma.go
../../../gccgo3/libgo/go/math/hypot.go ../../../gccgo3/libgo/go/math/j0.go
../../../gccgo3/libgo/go/math/j1.go ../../../gccgo3/libgo/go/math/jn.go
../../../gccgo3/libgo/go/math/ldexp.go ../../../gccgo3/libgo/go/math/lgamma.go
../../../gccgo3/libgo/go/math/log.go ../../../gccgo3/libgo/go/math/log10.go
../../../gccgo3/libgo/go/math/log1p.go ../../../gccgo3/libgo/go/math/logb.go
../../../gccgo3/libgo/go/math/mod.go ../../../gccgo3/libgo/go/math/modf.go
../../../gccgo3/libgo/go/math/nextafter.go ../../../gccgo3/libgo/go/math/pow.go
../../../gccgo3/libgo/go/math/pow10.go
../../../gccgo3/libgo/go/math/remainder.go
../../../gccgo3/libgo/go/math/signbit.go ../../../gccgo3/libgo/go/math/sin.go
../../../gccgo3/libgo/go/math/sincos.go ../../../gccgo3/libgo/go/math/sinh.go
../../../gccgo3/libgo/go/math/sqrt.go ../../../gccgo3/libgo/go/math/tan.go
../../../gccgo3/libgo/go/math/tanh.go ../../../gccgo3/libgo/go/math/unsafe.go


which has no internal/cpu.gox.
>From gcc-bugs-return-576956-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 06:10:45 2017
Return-Path: <gcc-bugs-return-576956-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 106353 invoked by alias); 1 Oct 2017 06:07:10 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 105311 invoked by uid 48); 1 Oct 2017 06:05:07 -0000
From: "steven at uplinklabs dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/82379] [7/8 Regression] internal_sigreturn not defined in libasan.so or libubsan.so with -mx32
Date: Sun, 01 Oct 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: sanitizer
X-Bugzilla-Version: 7.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: steven at uplinklabs 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-82379-4-qfAEvb7Lqi@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82379-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82379-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00016.txt.bz2
Content-length: 232

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

--- Comment #6 from Steven Noonan <steven at uplinklabs dot net> ---
Seems to resolve the link issue. Not sure how to test that internal_sigreturn
does what it should, though.
>From gcc-bugs-return-576957-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 06:59:57 2017
Return-Path: <gcc-bugs-return-576957-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 16436 invoked by alias); 1 Oct 2017 06:59: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 16263 invoked by uid 48); 1 Oct 2017 06:59:50 -0000
From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/45435] Automatically generate C interop interface blocks from C code
Date: Sun, 01 Oct 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: fortran
X-Bugzilla-Version: 4.6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: tkoenig at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-45435-4-pN4E6peXZ4@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-45435-4@http.gcc.gnu.org/bugzilla/>
References: <bug-45435-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00017.txt.bz2
Content-length: 435

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

Thomas Koenig <tkoenig at gcc dot gnu.org> changed:

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

--- Comment #4 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Done, closing.
>From gcc-bugs-return-576958-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 07:16:11 2017
Return-Path: <gcc-bugs-return-576958-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 62161 invoked by alias); 1 Oct 2017 07:15:56 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 54995 invoked by uid 48); 1 Oct 2017 07:15:34 -0000
From: "babokin at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82381] New: internal compiler error: qsort checking failed
Date: Sun, 01 Oct 2017 07:15: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: babokin 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-82381-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00018.txt.bz2
Content-length: 2031

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

            Bug ID: 82381
           Summary: internal compiler error: qsort checking failed
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: babokin at gmail dot com
  Target Milestone: ---

GCC trunk rev 253307, x86_64.

This looks like a fresh regression. I see quite many fails like this one.

> cat f.cpp
char b, h;
unsigned short c, e;
short d, f, g;
void i() {
  if (h) {
    short a(-(d + c - b));
    f = e - a - -d;
  }
  if (c)
    g = 0;
}

> g++ -O2 -c f.cpp
f.cpp: In function ‘void i()’:
f.cpp:4:6: error: qsort comparator non-negative on sorted output: 1
 void i() {
      ^
during GIMPLE pass: reassoc
f.cpp:4:6: internal compiler error: qsort checking failed
0x8fbc82 qsort_chk_error
        ../../gcc/gcc/vec.c:222
0x8fbcfb qsort_chk(void*, unsigned long, unsigned long, int (*)(void const*,
void const*))
        ../../gcc/gcc/vec.c:274
0x7d9118 vec<operand_entry*, va_heap, vl_embed>::qsort(int (*)(void const*,
void const*))
        ../../gcc/gcc/vec.h:973
0x7d9118 vec<operand_entry*, va_heap, vl_ptr>::qsort(int (*)(void const*, void
const*))
        ../../gcc/gcc/vec.h:1735
0x7d9118 reassociate_bb
        ../../gcc/gcc/tree-ssa-reassoc.c:5839
0x7d755b reassociate_bb
        ../../gcc/gcc/tree-ssa-reassoc.c:5979
0x7d755b reassociate_bb
        ../../gcc/gcc/tree-ssa-reassoc.c:5979
0x7d755b reassociate_bb
        ../../gcc/gcc/tree-ssa-reassoc.c:5979
0x109673c do_reassoc
        ../../gcc/gcc/tree-ssa-reassoc.c:6093
0x109673c execute_reassoc
        ../../gcc/gcc/tree-ssa-reassoc.c:6180
0x109673c execute
        ../../gcc/gcc/tree-ssa-reassoc.c:6219
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-576959-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 07:21:58 2017
Return-Path: <gcc-bugs-return-576959-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 56889 invoked by alias); 1 Oct 2017 07:21:57 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 53681 invoked by uid 48); 1 Oct 2017 07:21:50 -0000
From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/49232] Pointer assignment of stride to CONTIGUOUS pointer not diagnosed as invalid
Date: Sun, 01 Oct 2017 07:21:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 4.7.0
X-Bugzilla-Keywords: accepts-invalid, diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tkoenig at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: tkoenig at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to
Message-ID: <bug-49232-4-m5iKd1CIEa@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-49232-4@http.gcc.gnu.org/bugzilla/>
References: <bug-49232-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00019.txt.bz2
Content-length: 465

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

Thomas Koenig <tkoenig at gcc dot gnu.org> changed:

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

--- Comment #2 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Working on it.
>From gcc-bugs-return-576960-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 07:24:53 2017
Return-Path: <gcc-bugs-return-576960-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 117887 invoked by alias); 1 Oct 2017 07:24:50 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 108265 invoked by uid 48); 1 Oct 2017 07:24:43 -0000
From: "iains at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81733] stage1 libgcc_s.dylib fails to link on Darwin 11/x86_64
Date: Sun, 01 Oct 2017 07:24:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: iains at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81733-4-DO3fzH1z2K@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81733-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81733-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00020.txt.bz2
Content-length: 892

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

--- Comment #11 from Iain Sandoe <iains at gcc dot gnu.org> ---
Dominique identifies r249105 as triggering the issue (but this might well be
exposing a latent).

I have built xc 8.2.1 series tools on Darwin 10 and carried out the following
test with trunk at 253320 (which bootstraps for me on Darwin15).

1. use the cctools assembler from cctools-895 and ld64-274.2
  - this fails with the CFI issue

2. use an assembler based on LLVM-4.0.1 and ld64-274.2
  - this succeeds.

Thus, I suspect that the transition between "not working" and "working" Xcode
versions corresponds to the switch in Xcode to default to using the LLVM based
assembler.

NOTE: "working" is quoted, since I haven't yet had a chance to analyse if the
output is completely "correct" or just that the resultant output doesn't
trigger the 0-length FDE assert.
>From gcc-bugs-return-576961-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 08:45:51 2017
Return-Path: <gcc-bugs-return-576961-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 118935 invoked by alias); 1 Oct 2017 08:45: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 106432 invoked by uid 48); 1 Oct 2017 08:45:06 -0000
From: "ygribov at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/82319] [8 Regression] ICE in generic_simplify_148, at generic-match.c:6436
Date: Sun, 01 Oct 2017 08:45:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ygribov 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-82319-4-Ijkf1xgYQQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82319-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82319-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00021.txt.bz2
Content-length: 420

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

Yury Gribov <ygribov at gcc dot gnu.org> changed:

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

--- Comment #9 from Yury Gribov <ygribov at gcc dot gnu.org> ---
.
>From gcc-bugs-return-576962-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 08:47:21 2017
Return-Path: <gcc-bugs-return-576962-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 128332 invoked by alias); 1 Oct 2017 08:47: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 127443 invoked by uid 48); 1 Oct 2017 08:47:05 -0000
From: "ygribov at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/81376] unnecessary cast before comparison
Date: Sun, 01 Oct 2017 08:47:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ygribov at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ygribov at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc assigned_to everconfirmed
Message-ID: <bug-81376-4-zvzVKdsPM4@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81376-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81376-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00022.txt.bz2
Content-length: 706

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

Yury Gribov <ygribov at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2017-10-01
                 CC|                            |ygribov at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |ygribov at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #3 from Yury Gribov <ygribov at gcc dot gnu.org> ---
Posted patch in https://gcc.gnu.org/ml/gcc-patches/2017-10/msg00004.html
>From gcc-bugs-return-576963-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 09:28:02 2017
Return-Path: <gcc-bugs-return-576963-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 69099 invoked by alias); 1 Oct 2017 09:28: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 65835 invoked by uid 48); 1 Oct 2017 09:27:56 -0000
From: "pault at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82375] PDT error
Date: Sun, 01 Oct 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: fortran
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pault at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: pault at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: assigned_to
Message-ID: <bug-82375-4-4q32AqArfP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82375-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82375-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00023.txt.bz2
Content-length: 554

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

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 #2 from Paul Thomas <pault at gcc dot gnu.org> ---
OK, I am on to it.

Thanks for the report and for the reduced test.

As it happens, I have a PDT bug from Reinhold Bader that needs to be posted and
fixed.

Cheers

Paul
>From gcc-bugs-return-576964-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 09:50:27 2017
Return-Path: <gcc-bugs-return-576964-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 114785 invoked by alias); 1 Oct 2017 09:50:27 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 114729 invoked by uid 55); 1 Oct 2017 09:50:22 -0000
From: "dominiq at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/61450] ICE in gfc_global_used()
Date: Sun, 01 Oct 2017 09:50:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords: ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: dominiq at lps dot ens.fr
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-61450-4-VAOYIj5gO6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-61450-4@http.gcc.gnu.org/bugzilla/>
References: <bug-61450-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00024.txt.bz2
Content-length: 739

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

--- Comment #6 from dominiq at gcc dot gnu.org ---
Author: dominiq
Date: Sun Oct  1 09:49:48 2017
New Revision: 253328

URL: https://gcc.gnu.org/viewcvs?rev=253328&root=gcc&view=rev
Log:
2017-10-01  Dominique d'Humieres  <dominiq@lps.ens.fr>

        PR fortran/61450
        * parse.c (gfc_global_used): Replace the gfc_internal_error
        with an error.

2017-10-01  Dominique d'Humieres  <dominiq@lps.ens.fr>

        PR fortran/61450
        * gfortran.dg/binding_label_tests_28.f90: New test.


Added:
    trunk/gcc/testsuite/gfortran.dg/binding_label_tests_28.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/parse.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-576965-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 10:32:20 2017
Return-Path: <gcc-bugs-return-576965-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 123121 invoked by alias); 1 Oct 2017 10:32:20 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 123034 invoked by uid 48); 1 Oct 2017 10:32:17 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/61450] ICE in gfc_global_used()
Date: Sun, 01 Oct 2017 10:32:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords: ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: dominiq at lps dot ens.fr
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-61450-4-Yk2Qfbx3v4@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-61450-4@http.gcc.gnu.org/bugzilla/>
References: <bug-61450-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00025.txt.bz2
Content-length: 441

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

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

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

--- Comment #7 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Closing.
>From gcc-bugs-return-576966-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 11:01:20 2017
Return-Path: <gcc-bugs-return-576966-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 72937 invoked by alias); 1 Oct 2017 11:01:20 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 72851 invoked by uid 48); 1 Oct 2017 11:01:14 -0000
From: "pault at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82375] PDT components in PDT declarations fail to compile
Date: Sun, 01 Oct 2017 11:01:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pault at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: pault at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: short_desc
Message-ID: <bug-82375-4-KIUJjlloMJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82375-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82375-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00026.txt.bz2
Content-length: 1126

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|PDT error                   |PDT components in PDT
                   |                            |declarations fail to
                   |                            |compile

--- Comment #3 from Paul Thomas <pault at gcc dot gnu.org> ---
Dear Ian and Dominique,

I can confirm both the original bug and warn you that recursive allocatable
components are even more spectacularly bad, causing a segmentation fault in
resolve.c.

If you give 'real_kind' a default value, a truly strange error results:


   type (link(real_kind=wp)), pointer :: root, current
                           1
Error: Pointer assignment target is neither TARGET nor POINTER at (1)

***sigh***

Compilation also fails when the PDT component is not the same type.

This is such a significant problem that it has moved to the top of my TODO
list. Many thanks once again for reporting it.

Paul
>From gcc-bugs-return-576967-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 11:26:02 2017
Return-Path: <gcc-bugs-return-576967-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 82359 invoked by alias); 1 Oct 2017 11:26: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 82300 invoked by uid 48); 1 Oct 2017 11:25:58 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/80257] Cygwin test fail: pointer_check_1.f90 output test
Date: Sun, 01 Oct 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: fortran
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-80257-4-1bkB8FBoGz@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80257-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80257-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00027.txt.bz2
Content-length: 335

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

--- Comment #4 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
What is the output at run time of the following test?

Program RunTimeCheck
  implicit none

  call sub()

contains
  subroutine sub()
    print *, 'Hello World'
  end subroutine sub
end Program RunTimeCheck
>From gcc-bugs-return-576968-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 11:29:12 2017
Return-Path: <gcc-bugs-return-576968-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 85028 invoked by alias); 1 Oct 2017 11:29: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 84921 invoked by uid 48); 1 Oct 2017 11:29:08 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/68401] improve 'Allocation would exceed memory limit'
Date: Sun, 01 Oct 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: fortran
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: 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-68401-4-D4PMgmZBL5@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-68401-4@http.gcc.gnu.org/bugzilla/>
References: <bug-68401-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00028.txt.bz2
Content-length: 188

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

--- Comment #10 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
How long this PR has to rot before being closed as WONTFIX?
>From gcc-bugs-return-576969-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 11:33:31 2017
Return-Path: <gcc-bugs-return-576969-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 101554 invoked by alias); 1 Oct 2017 11:33:30 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 101470 invoked by uid 48); 1 Oct 2017 11:33:26 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libfortran/79540] [7/8 Regression] FAIL: gfortran.dg/fmt_fw_d.f90   -O0  execution test
Date: Sun, 01 Oct 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: libfortran
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: 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-79540-4-O1iDfV9vFA@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79540-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79540-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00029.txt.bz2
Content-length: 274

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

--- Comment #8 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Could you please uncomment the line

    !print *, "print '", fmt(:fmt_len), "', ", x, " ! => ", str(:len), ": ",
reason

and post the result?
>From gcc-bugs-return-576970-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 11:37:14 2017
Return-Path: <gcc-bugs-return-576970-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 104050 invoked by alias); 1 Oct 2017 11:37: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 104003 invoked by uid 48); 1 Oct 2017 11:37:10 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/80666] character length parameter fails if declaration order incorrect
Date: Sun, 01 Oct 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: fortran
X-Bugzilla-Version: 6.3.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-80666-4-txQER2a1tA@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80666-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80666-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00030.txt.bz2
Content-length: 170

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

--- Comment #7 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Any objection to close this PR as WONTFIX?
>From gcc-bugs-return-576971-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 12:26:10 2017
Return-Path: <gcc-bugs-return-576971-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 17907 invoked by alias); 1 Oct 2017 12:26:10 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 17876 invoked by uid 48); 1 Oct 2017 12:26:06 -0000
From: "witosx at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82382] New: ICE for template auto parameter specialized for function pointer with variadic arguments
Date: Sun, 01 Oct 2017 12:26:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: witosx 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-82382-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00031.txt.bz2
Content-length: 4026

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

            Bug ID: 82382
           Summary: ICE for template auto parameter specialized for
                    function pointer with variadic arguments
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: witosx at gmail dot com
  Target Milestone: ---

### source code 

template<auto init>
struct A;

// this compiles fine (no variadic Args...)
// template<typename Arg, void(*fptr)(Arg)>
// struct A<fptr> {};

// this will cause ICE when trying to create an instance of A
template<typename... Args, void(*fptr)(Args...)>
struct A<fptr> {};

void f(int) {}

void test()
{
    // internal compiler error: in tsubst_pack_expansion, at cp/pt.c:11556
    A<f> a;
}


### g++ -c -std=c++17 other/gccbug.cpp

other/gccbug.cpp: In function ‘void test()’:
other/gccbug.cpp:17:10: internal compiler error: in tsubst_pack_expansion, at
cp/pt.c:11556
     A<f> a;
          ^
0x60c5ce tsubst_pack_expansion(tree_node*, tree_node*, int, tree_node*)
        /home/witos/git/gcc/gcc/cp/pt.c:11556
0xa11d6a tsubst_arg_types
        /home/witos/git/gcc/gcc/cp/pt.c:13220
0xa24ea4 tsubst_function_type
        /home/witos/git/gcc/gcc/cp/pt.c:13382
0xa219b4 tsubst(tree_node*, tree_node*, int, tree_node*)
        /home/witos/git/gcc/gcc/cp/pt.c:14132
0xa2172e tsubst(tree_node*, tree_node*, int, tree_node*)
        /home/witos/git/gcc/gcc/cp/pt.c:13636
0x601b71 unify
        /home/witos/git/gcc/gcc/cp/pt.c:20919
0xa1572f unify
        /home/witos/git/gcc/gcc/cp/pt.c:21111
0xa166c9 get_partial_spec_bindings
        /home/witos/git/gcc/gcc/cp/pt.c:21917
0xa16cc2 most_specialized_partial_spec
        /home/witos/git/gcc/gcc/cp/pt.c:22189
0xa3f3c0 instantiate_class_template_1
        /home/witos/git/gcc/gcc/cp/pt.c:10356
0xa3f3c0 instantiate_class_template(tree_node*)
        /home/witos/git/gcc/gcc/cp/pt.c:10924
0xa84c7d complete_type(tree_node*)
        /home/witos/git/gcc/gcc/cp/typeck.c:136
0x9358e9 start_decl_1(tree_node*, bool)
        /home/witos/git/gcc/gcc/cp/decl.c:5154
0x9571ef start_decl(cp_declarator const*, cp_decl_specifier_seq*, int,
tree_node*, tree_node*, tree_node**)
        /home/witos/git/gcc/gcc/cp/decl.c:5117
0x9eb57a cp_parser_init_declarator
        /home/witos/git/gcc/gcc/cp/parser.c:19490
0x9f1b5d cp_parser_simple_declaration
        /home/witos/git/gcc/gcc/cp/parser.c:13000
0x9f2968 cp_parser_block_declaration
        /home/witos/git/gcc/gcc/cp/parser.c:12825
0x9f3369 cp_parser_declaration_statement
        /home/witos/git/gcc/gcc/cp/parser.c:12419
0x9d1691 cp_parser_statement
        /home/witos/git/gcc/gcc/cp/parser.c:10897
0x9d25b0 cp_parser_statement_seq_opt
        /home/witos/git/gcc/gcc/cp/parser.c:11234
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

### g++ -v

Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /build/gcc/src/gcc/configure --prefix=/usr --libdir=/usr/lib
--libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info
--with-bugurl=https://bugs.archlinux.org/
--enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared
--enable-threads=posix --enable-libmpx --with-system-zlib --with-isl
--enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu
--disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object
--enable-linker-build-id --enable-lto --enable-plugin
--enable-install-libiberty --with-linker-hash-style=gnu
--enable-gnu-indirect-function --disable-multilib --disable-werror
--enable-checking=release --enable-default-pie --enable-default-ssp
Thread model: posix
gcc version 7.2.0 (GCC)
>From gcc-bugs-return-576972-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 12:28:38 2017
Return-Path: <gcc-bugs-return-576972-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 20343 invoked by alias); 1 Oct 2017 12:28:38 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 20317 invoked by uid 48); 1 Oct 2017 12:28:33 -0000
From: "witosx at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82382] ICE for template auto parameter specialized for function pointer with variadic arguments
Date: Sun, 01 Oct 2017 12: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:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: witosx 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-82382-4-dml1FezHpk@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82382-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82382-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00032.txt.bz2
Content-length: 1080

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

--- Comment #1 from witosx at gmail dot com ---
Sorry, posted wrong g++ -v output

### g++ -v

Using built-in specs.
COLLECT_GCC=/home/witos/.local/opt/gcc-git/bin/g++
COLLECT_LTO_WRAPPER=/home/witos/.local/opt/gcc-git/lib/gcc/x86_64-pc-linux-gnu/8.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /home/witos/git/gcc/configure
--prefix=/home/witos/.local/opt/gcc-git
--libdir=/home/witos/.local/opt/gcc-git/lib
--libexecdir=/home/witos/.local/opt/gcc-git/lib --enable-languages=c,c++,lto
--enable-shared --enable-threads=posix --enable-libmpx --with-system-zlib
--enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu
--disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object
--enable-linker-build-id --enable-lto --enable-plugin
--enable-install-libiberty --with-linker-hash-style=gnu
--enable-gnu-indirect-function --disable-multilib --disable-werror
--enable-default-pie --enable-default-ssp
Thread model: posix
gcc version 8.0.0 20170930 (experimental) (GCC)
>From gcc-bugs-return-576973-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 13:20:10 2017
Return-Path: <gcc-bugs-return-576973-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 120030 invoked by alias); 1 Oct 2017 13:20: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 119973 invoked by uid 48); 1 Oct 2017 13:20:06 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/57871] gfortran -freal-4-real-16 gives wrong result for selected_real_kind(1)
Date: Sun, 01 Oct 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: fortran
X-Bugzilla-Version: 4.8.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: REOPENED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-57871-4-V7RZQm9LKP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-57871-4@http.gcc.gnu.org/bugzilla/>
References: <bug-57871-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00033.txt.bz2
Content-length: 1060

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

--- Comment #8 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> The reason I sent that bug report is that I had read the manual and
> found that -freal-4-real-16 makes the available real kinds 8, 10, 16.
> The Fortran standard says selected_real_kind(1) must give the kind with
> the smallest available decimal precision that has precison at least 1. 
> In the circumstances that is kind 8. The manual refers to promotion of
> REAL(KIND=M) entities. Selected_real_kind is an integer entity not a
> real one.

AFAIU this is based on the expectation that the conversion options act as a
"pre-processor", i.e., take place before the compilation really starts. The
results show that expectation is not true and that the options act as a
"post-processor", i.e., the code is compiled as if the option was not provided,
then the conversion takes place.

selected_real_kind is probably the only function that can show the difference.

IMO this should be documented and the PR closed as WONTFIX.
>From gcc-bugs-return-576974-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 16:05:42 2017
Return-Path: <gcc-bugs-return-576974-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 93474 invoked by alias); 1 Oct 2017 16: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 93426 invoked by uid 48); 1 Oct 2017 16:05:38 -0000
From: "mfe at live dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug go/82348] make[4]: Circular runtime.lo <- bytes.gox dependency dropped.
Date: Sun, 01 Oct 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: go
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mfe at live dot de
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: INVALID
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ian at airs dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82348-4-dTzX3RcIRk@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82348-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82348-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00034.txt.bz2
Content-length: 3614

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

--- Comment #7 from martin <mfe at live dot de> ---
I tried to follow your instructions:

1.) remove math.o.dep
> /gcc-compiled/sparc-unknown-linux-gnu/libgo# rm math.lo.dep
2.) run `make math.lo.dep`
> gcc-compiled/sparc-unknown-linux-gnu/libgo# make math.lo.dep
> /bin/mkdir -p .; dir=`echo math.lo.dep | sed -e 's/.lo.dep$//'`; files=`/bin/sh ../../../gcc-trunk/libgo/match.sh --goarch=sparc --goos=linux --srcdir=../../../gcc-trunk/libgo/go/$dir --extrafiles="" `; /bin/sh ../../../gcc-trunk/libgo/godeps.sh `echo math.lo.dep | sed -e 's/.dep$//'` $files > math.lo.dep.tmp; if ! cmp math.lo.dep.tmp math.lo.dep >/dev/null 2>/dev/null; then rm -f `echo math.lo.dep | sed -e 's/\.dep$//'`; fi; mv -f math.lo.dep.tmp math.lo.dep
> make: 'math.lo.dep' is up to date.
The output of the generated math.lo.dep seems to be working in this particular
situation.
The math.lo.dep does not contain cpu.gox
> gcc-compiled/sparc-unknown-linux-gnu/libgo# cat math.lo.dep
> math.lo: ../../../gcc-trunk/libgo/go/math/abs.go ../../../gcc-trunk/libgo/go/math/acosh.go ../../../gcc-trunk/libgo/go/math/asin.go ../../../gcc-trunk/libgo/go/math/asinh.go ../../../gcc-trunk/libgo/go/math/atan.go ../../../gcc-trunk/libgo/go/math/atan2.go ../../../gcc-trunk/libgo/go/math/atanh.go ../../../gcc-trunk/libgo/go/math/bits.go ../../../gcc-trunk/libgo/go/math/cbrt.go ../../../gcc-trunk/libgo/go/math/const.go ../../../gcc-trunk/libgo/go/math/copysign.go ../../../gcc-trunk/libgo/go/math/dim.go ../../../gcc-trunk/libgo/go/math/erf.go ../../../gcc-trunk/libgo/go/math/exp.go ../../../gcc-trunk/libgo/go/math/expm1.go ../../../gcc-trunk/libgo/go/math/floor.go ../../../gcc-trunk/libgo/go/math/frexp.go ../../../gcc-trunk/libgo/go/math/gamma.go ../../../gcc-trunk/libgo/go/math/hypot.go ../../../gcc-trunk/libgo/go/math/j0.go ../../../gcc-trunk/libgo/go/math/j1.go ../../../gcc-trunk/libgo/go/math/jn.go ../../../gcc-trunk/libgo/go/math/ldexp.go ../../../gcc-trunk/libgo/go/math/lgamma.go ../../../gcc-trunk/libgo/go/math/log.go ../../../gcc-trunk/libgo/go/math/log10.go ../../../gcc-trunk/libgo/go/math/log1p.go ../../../gcc-trunk/libgo/go/math/logb.go ../../../gcc-trunk/libgo/go/math/mod.go ../../../gcc-trunk/libgo/go/math/modf.go ../../../gcc-trunk/libgo/go/math/nextafter.go ../../../gcc-trunk/libgo/go/math/pow.go ../../../gcc-trunk/libgo/go/math/pow10.go ../../../gcc-trunk/libgo/go/math/remainder.go ../../../gcc-trunk/libgo/go/math/signbit.go ../../../gcc-trunk/libgo/go/math/sin.go ../../../gcc-trunk/libgo/go/math/sincos.go ../../../gcc-trunk/libgo/go/math/sinh.go ../../../gcc-trunk/libgo/go/math/sqrt.go ../../../gcc-trunk/libgo/go/math/tan.go ../../../gcc-trunk/libgo/go/math/tanh.go ../../../gcc-trunk/libgo/go/math/unsafe.go

3.) Here, I'm unsure if the command was executed in the correct folder
(gcc-compiled contains the generated built files), because the output looks
weird to me.
> /gcc-compiled/sparc-unknown-linux-gnu/libgo# /bin/sh ../../../gcc-trunk/libgo/match.sh --goarch=sparc --goos=linux --srcdir=../../../gcc-trunk/libgo/go/$dir --extrafiles=""
> ../../../gcc-trunk/libgo/match.sh: line 1: *.go: No such file or directory
> ../../../gcc-trunk/libgo/go//*.go

4.) I executed this command in the gcc source folder
> ./gcc-trunk/libgo/godeps.sh `echo math.lo.dep | sed -e 's/.dep$//'` $files
> sh: ./gcc-trunk/libgo/godeps.sh: Permission denied
> chmod 777 ./gcc-trunk/libgo/godeps.sh
> ./gcc-trunk/libgo/godeps.sh `echo math.lo.dep | sed -e 's/.dep$//'` $files
> math.lo:
>From gcc-bugs-return-576975-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 16:18:09 2017
Return-Path: <gcc-bugs-return-576975-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 117571 invoked by alias); 1 Oct 2017 16:18:09 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 117518 invoked by uid 48); 1 Oct 2017 16:18:04 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/82383] New: Some new toplevel directories are not documented
Date: Sun, 01 Oct 2017 16:18: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: documentation
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pinskia at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-82383-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00035.txt.bz2
Content-length: 802

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

            Bug ID: 82383
           Summary: Some new toplevel directories are not documented
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Keywords: documentation
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pinskia at gcc dot gnu.org
  Target Milestone: ---

from:
https://gcc.gnu.org/ml/gcc/2017-10/msg00000.html

"I read about the internals of GCC from GCC online documentation about 
the source tree, and found some source directories are missing from the 
documentation. For example in the top directory:

libbacktrace
libcc1
libcilkrts
libhsail-rt
libmpx
liboffloadmic
libsantizer
libvtv
".
>From gcc-bugs-return-576978-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 17:01:53 2017
Return-Path: <gcc-bugs-return-576978-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 80768 invoked by alias); 1 Oct 2017 17: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 80547 invoked by uid 48); 1 Oct 2017 17:01:47 -0000
From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libfortran/82378] Data race in libgfortran with OpenMP
Date: Sun, 01 Oct 2017 17:01:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libfortran
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tkoenig 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-82378-4-f9LBRaVJaB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82378-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82378-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00038.txt.bz2
Content-length: 520

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

Thomas Koenig <tkoenig at gcc dot gnu.org> changed:

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

--- Comment #2 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
The underlying issue is the same.

*** This bug has been marked as a duplicate of bug 66756 ***
>From gcc-bugs-return-576976-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 17:01:31 2017
Return-Path: <gcc-bugs-return-576976-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 78965 invoked by alias); 1 Oct 2017 17:01: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 78641 invoked by uid 48); 1 Oct 2017 17:01:27 -0000
From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libgomp/66756] libgfortran: ThreadSanitizer: lock-order-inversion
Date: Sun, 01 Oct 2017 17:01:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libgomp
X-Bugzilla-Version: 5.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: tkoenig at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on component assigned_to
Message-ID: <bug-66756-4-P8zRQcU4z3@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66756-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66756-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00036.txt.bz2
Content-length: 988

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

Thomas Koenig <tkoenig at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |NEW
   Last reconfirmed|2015-11-10 00:00:00         |2017-10-1
          Component|libfortran                  |libgomp
           Assignee|tkoenig at gcc dot gnu.org         |unassigned at gcc dot gnu.org

--- Comment #14 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Following the discussion at

https://gcc.gnu.org/ml/fortran/2017-10/msg00002.html

all the false positives go away if --enable-linux-futex=no
is specified during compilation, because the thread sanitizer
does not follow all Linux-specific system calls.

Intering question: What to do? It should be possible
to generate a posix thread only version of the libgomp
library which is then linked in with the thread sanitizer.
>From gcc-bugs-return-576977-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 17:01:53 2017
Return-Path: <gcc-bugs-return-576977-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 80755 invoked by alias); 1 Oct 2017 17: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 80639 invoked by uid 48); 1 Oct 2017 17:01:48 -0000
From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libgomp/66756] libgfortran: ThreadSanitizer: lock-order-inversion
Date: Sun, 01 Oct 2017 17:01:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libgomp
X-Bugzilla-Version: 5.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: tkoenig at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-66756-4-d0ahTEBKGZ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66756-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66756-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00037.txt.bz2
Content-length: 184

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

--- Comment #15 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
*** Bug 82378 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-576979-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 17:10:31 2017
Return-Path: <gcc-bugs-return-576979-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 31946 invoked by alias); 1 Oct 2017 17:10: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 31893 invoked by uid 48); 1 Oct 2017 17:10:27 -0000
From: "manu at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug preprocessor/78497] compiling with -save-temps adds -Wimplicit-fallthrough warnings
Date: Sun, 01 Oct 2017 17:10:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: preprocessor
X-Bugzilla-Version: 7.0
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-78497-4-eAUlK27hEY@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78497-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78497-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00039.txt.bz2
Content-length: 625

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

Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:

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

--- Comment #5 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #2)
> Confirmed.  I'm also not sure we can do much about this... (inject a #pragma
> diagnostic into preprocessed output?)

Or don't drop those "special" comments?
>From gcc-bugs-return-576980-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 17:13:28 2017
Return-Path: <gcc-bugs-return-576980-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 34648 invoked by alias); 1 Oct 2017 17:13:27 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 34551 invoked by uid 48); 1 Oct 2017 17:13:23 -0000
From: "jvdelisle at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82007] DTIO write format stored in a string leads to severe errors
Date: Sun, 01 Oct 2017 17:13:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
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-82007-4-p1xMA8ck03@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82007-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82007-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00040.txt.bz2
Content-length: 332

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

--- Comment #5 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
The ice is because we are not handling the case where the expreesion is type
function vs character expression or character constant. I am thinking we need
to simplify the expression before trying to use it.
>From gcc-bugs-return-576981-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 17:25:48 2017
Return-Path: <gcc-bugs-return-576981-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 45678 invoked by alias); 1 Oct 2017 17:25:48 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 45636 invoked by uid 48); 1 Oct 2017 17:25:43 -0000
From: "jvdelisle at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/81499] internal compiler error when compiling gfortran code with user-defined derived type i/o
Date: Sun, 01 Oct 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: 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: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81499-4-XFdt4qD3mE@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81499-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81499-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00041.txt.bz2
Content-length: 496

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

--- Comment #2 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
Just doing a quick scan here. Has anuone tried allocating the dtv1...4 before
the I/O calls.  I think i can see where th einternal runtime is trying to pass
interal pointers to the DTIO procedures and an unallocated variable may just
look like it does not exist.

Assuming its valid code, I wonder if I fixed something in Namelist I/O that
also needs it for the other.
>From gcc-bugs-return-576982-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 17:32:27 2017
Return-Path: <gcc-bugs-return-576982-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 52035 invoked by alias); 1 Oct 2017 17:32: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 51944 invoked by uid 48); 1 Oct 2017 17:32:21 -0000
From: "jvdelisle at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libfortran/81937] stack-buffer-overflow on memcpy in libgfortran/io/unix.c on character(kind=4)
Date: Sun, 01 Oct 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: libfortran
X-Bugzilla-Version: 8.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:
Message-ID: <bug-81937-4-udMa2sRD0f@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81937-4@http.gcc.gnu.org/bugzilla/>
References: <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-10/txt/msg00042.txt.bz2
Content-length: 185

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

--- Comment #2 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
Added Thomas to cc since he is peeking at I/O things I think.
>From gcc-bugs-return-576984-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 17:36:17 2017
Return-Path: <gcc-bugs-return-576984-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 4938 invoked by alias); 1 Oct 2017 17:36:17 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 128919 invoked by uid 48); 1 Oct 2017 17:36:13 -0000
From: "law at redhat dot com" <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: Sun, 01 Oct 2017 17:36: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: law at redhat dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-24639-4-3MlLZCaHcg@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-10/txt/msg00044.txt.bz2
Content-length: 475

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

Bug 79768 Summary: `-Wmaybe-uninitialized' false positive with optimisation
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79768

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |NEW
         Resolution|WORKSFORME                  |---
>From gcc-bugs-return-576983-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 17:36:17 2017
Return-Path: <gcc-bugs-return-576983-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 4570 invoked by alias); 1 Oct 2017 17:36:17 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 126808 invoked by uid 48); 1 Oct 2017 17:36:12 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/79768] `-Wmaybe-uninitialized' false positive with optimisation
Date: Sun, 01 Oct 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: middle-end
X-Bugzilla-Version: 5.3.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: law at redhat dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc resolution everconfirmed
Message-ID: <bug-79768-4-fZZIR6HHHN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79768-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79768-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00043.txt.bz2
Content-length: 2210

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |NEW
   Last reconfirmed|                            |2017-10-01
                 CC|                            |law at redhat dot com
         Resolution|WORKSFORME                  |---
     Ever confirmed|0                           |1

--- Comment #6 from Jeffrey A. Law <law at redhat dot com> ---
Eric.  Thanks for the BZ maintenance.  It's definitely appreciated.

For bugs like this (very sensitive to unrelated code generator changes) it is
often worth the time to bisect to what change fixed the bug.  That helps us
identify something that just went latent vs something that actually got fixed.  

I happened to have been looking at this yesterday so I had a bit of state.  I'm
pretty sure this just went latent.  Martin L's recent changes to switch
handling result in dropping the switch into an if-else which we often
optimize/analyze better.

A slight tweak to keep Martin L's changes from firing brings the warning back.


#include <stdio.h>
#include <stdlib.h>

static int mk (int **a, int **b, int **c) {
        if (!(*a = malloc (sizeof (int)))) goto a_err;
        if (!(*b = malloc (sizeof (int)))) goto b_err;
        if (!(*c = malloc (sizeof (int)))) goto c_err;

        return 1; c_err:
        free (*b); b_err:
        free (*a); a_err:
        return 0;
}

static void fin (int *a, int *b, int *c) {
        free (c);
        free (b);
        free (a);
}

int main (void) {
        int *a, *b, *c, x, flag = mk (&a, &b, &c);
        while ((x = getchar ()) != -1) {
                if (flag) switch (x) {
                case 0:
                        break;
                case 0xdeadbeef:
                        goto retm;
                default:
                        goto retn;
                } else if (x) goto retn;
        }
        retn:
        if (flag) fin (a, b, c);
        return 0;
        retm:
        if (flag) fin (a, b, c);
        return 0;
}
~
>From gcc-bugs-return-576985-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 17:40:38 2017
Return-Path: <gcc-bugs-return-576985-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 111394 invoked by alias); 1 Oct 2017 17: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 111350 invoked by uid 48); 1 Oct 2017 17:40:33 -0000
From: "dcb314 at hotmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82381] internal compiler error: qsort checking failed
Date: Sun, 01 Oct 2017 17:40:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dcb314 at hotmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-82381-4-Gp7JlMQ7VX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82381-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82381-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00045.txt.bz2
Content-length: 452

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

David Binderman <dcb314 at hotmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dcb314 at hotmail dot com

--- Comment #1 from David Binderman <dcb314 at hotmail dot com> ---
Problem seems to have appeared between revisions 253276 and 253315.
>From gcc-bugs-return-576986-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 18:18:31 2017
Return-Path: <gcc-bugs-return-576986-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 114622 invoked by alias); 1 Oct 2017 18:18: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 114575 invoked by uid 48); 1 Oct 2017 18:18:28 -0000
From: "ian at airs dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug go/82348] make[4]: Circular runtime.lo <- bytes.gox dependency dropped.
Date: Sun, 01 Oct 2017 18:18:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: 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: INVALID
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ian at airs dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82348-4-DUEwfHbjp2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82348-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82348-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00046.txt.bz2
Content-length: 526

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

--- Comment #8 from Ian Lance Taylor <ian at airs dot com> ---
If the re-generated math.lo.dep file does not refer to internal/cpu.gox, then
something went wrong the first time the file was generated.  Try simply
removing your TARGET/libgo directory and building from scratch.

The commands I mentioned were all intended to be executed in the TARGET/libgo
directory, not in the source directory.  Please make sure that nothing you did
modified the source directory.
>From gcc-bugs-return-576987-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 18:26:24 2017
Return-Path: <gcc-bugs-return-576987-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 30920 invoked by alias); 1 Oct 2017 18:26:24 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 30858 invoked by uid 48); 1 Oct 2017 18:26:20 -0000
From: "jvdelisle at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/40196] [F03] [F08] Type parameter inquiry (str%len, a%kind) and Complex parts (z%re, z%im)
Date: Sun, 01 Oct 2017 18: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: unknown
X-Bugzilla-Keywords: rejects-valid
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: bug_status assigned_to bug_severity
Message-ID: <bug-40196-4-hOqZ643ut8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-40196-4@http.gcc.gnu.org/bugzilla/>
References: <bug-40196-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00047.txt.bz2
Content-length: 674

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

Jerry DeLisle <jvdelisle at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |jvdelisle at gcc dot gnu.org
           Severity|enhancement                 |normal

--- Comment #5 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
I think originally this was an enhancement becasue we were focused on F95 back
in 2009, now we are going for 2015 stuff so this one is higher interest.
Taking.
>From gcc-bugs-return-576988-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 18:33:06 2017
Return-Path: <gcc-bugs-return-576988-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 40507 invoked by alias); 1 Oct 2017 18:33:05 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 40425 invoked by uid 48); 1 Oct 2017 18:33:01 -0000
From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/56789] Wrong code with contiguous dummy argument
Date: Sun, 01 Oct 2017 18:33:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tkoenig at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: tkoenig at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to
Message-ID: <bug-56789-4-zlizkD8SnK@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-56789-4@http.gcc.gnu.org/bugzilla/>
References: <bug-56789-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00048.txt.bz2
Content-length: 520

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

Thomas Koenig <tkoenig at gcc dot gnu.org> changed:

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

--- Comment #5 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
This should be rejected, or at least warned about.
See also PR 49232.
>From gcc-bugs-return-576989-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 19:03:50 2017
Return-Path: <gcc-bugs-return-576989-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 119119 invoked by alias); 1 Oct 2017 19:03: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 119076 invoked by uid 48); 1 Oct 2017 19:03:45 -0000
From: "ubizjak at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug go/82131] FAIL: TestCgoCallbackGC in gotools testsuite; segfaults in morestack.S:529
Date: Sun, 01 Oct 2017 19:03:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: 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:
Message-ID: <bug-82131-4-0q7yfBUOPm@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82131-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82131-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00049.txt.bz2
Content-length: 6357

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

--- Comment #3 from Uroš Bizjak <ubizjak at gmail dot com> ---
(In reply to Ian Lance Taylor from comment #2)
> I have not been able to create this.
> 
> Are you using GNU ld or the gold linker?  I've tried both and for me it
> works either way, but it might help to know.

It is standard Fedora Workstation 26 toolchain:

$ ld --version
GNU ld version 2.27-24.fc26

I don't know which linker is used by default, also installed is:

$ ld.gold --version
GNU gold (version 2.27-24.fc26) 1.12

> Can you find out why it is getting a segmentation violation on the call
> instruction?  Is the problem that the stack pointer has become invalid?

I'm getting new backtrace with current mainline:

...
[Thread 0x2aab1c521700 (LWP 12761) exited]
[Thread 0x2aaafcea5700 (LWP 12758) exited]
[Thread 0x2aaca7752700 (LWP 12895) exited]
[Thread 0x2aab909c3700 (LWP 12800) exited]

Thread 23 "testprogcgo" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x2aaafc9c3700 (LWP 12756)]
0x00002aaaacf68fb6 in free () from /lib64/libc.so.6
(gdb) bt
#0  0x00002aaaacf68fb6 in free () from /lib64/libc.so.6
#1  0x000000000040d99c in free_dynamic_blocks (p=0x2aaaabd34e00 <line_compare>)
at /home/uros/gcc-svn/trunk/libgcc/generic-morestack.c:417
#2  0x000000000040db5e in __morestack_release_segments (pp=0x2aaafc9c36f8,
free_dynamic=1) at /home/uros/gcc-svn/trunk/libgcc/generic-morestack.c:465
#3  0x00002aaaaccc30b8 in __nptl_deallocate_tsd.part.4 () from
/lib64/libpthread.so.0
#4  0x00002aaaaccc442d in start_thread () from /lib64/libpthread.so.0
#5  0x00002aaaacfecbbf in clone () from /lib64/libc.so.6

(gdb) disass
Dump of assembler code for function free:
   ...
   0x00002aaaacf68fa4 <+36>:    test   %rax,%rax
   0x00002aaaacf68fa7 <+39>:    jne    0x2aaaacf69170 <free+496>
   0x00002aaaacf68fad <+45>:    test   %rdi,%rdi
   0x00002aaaacf68fb0 <+48>:    je     0x2aaaacf690b0 <free+304>
=> 0x00002aaaacf68fb6 <+54>:    mov    -0x8(%rdi),%rax
   0x00002aaaacf68fba <+58>:    lea    -0x10(%rdi),%rsi
   ...

(gdb) i r rdi
rdi            0xf097c1447391446        1083533611895428166


Another backtrace:
=================

...
[New Thread 0x2aacc26f8700 (LWP 14495)]
[New Thread 0x2aacc30fb700 (LWP 14496)]
[Thread 0x2aaaebc72700 (LWP 14304) exited]

Thread 136 "testprogcgo" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x2aac1a06d700 (LWP 14418)]
0x00002aaaabd4146c in __generic_morestack (pframe_size=0x2aac6ff7a1f0,
old_stack=0x2aac6ff7a210, param_size=0) at
/home/uros/gcc-svn/trunk/libgcc/generic-morestack.c:560
560       if (*pp != NULL && (*pp)->size < frame_size)
gdb) bt
#0  0x00002aaaabd4146c in __generic_morestack (pframe_size=0x2aac6ff7a1f0,
old_stack=0x2aac6ff7a210, param_size=0) at
/home/uros/gcc-svn/trunk/libgcc/generic-morestack.c:560
#1  0x00002aaaabd423d1 in __morestack () at
/home/uros/gcc-svn/trunk/libgcc/config/i386/morestack.S:510
#2  0x00002aaaabd36bf5 in dwarf_lookup_pc (state=state@entry=0x2aaaaab14000,
ddata=ddata@entry=0x2aaaaab5ee00, pc=pc@entry=4249764, 
    callback=callback@entry=0x2aaaab7a2b40 <callback>,
error_callback=error_callback@entry=0x2aaaab7a2dc0 <error_callback>,
data=data@entry=0x2aac6ff7a720, found=<optimized out>)
    at /home/uros/gcc-svn/trunk/libbacktrace/dwarf.c:2836
#3  0x00002aaaabd3800f in dwarf_fileline (state=0x2aaaaab14000, pc=4249764,
callback=0x2aaaab7a2b40 <callback>, error_callback=0x2aaaab7a2dc0
<error_callback>, data=0x2aac6ff7a720)
    at /home/uros/gcc-svn/trunk/libbacktrace/dwarf.c:2896
#4  0x00002aaaabd39126 in unwind (context=<optimized out>,
vdata=0x2aac6ff7a6e0) at /home/uros/gcc-svn/trunk/libbacktrace/backtrace.c:91
#5  0x00002aaaacab64b9 in _Unwind_Backtrace (trace=trace@entry=0x2aaaabd390a0
<unwind>, trace_argument=trace_argument@entry=0x2aac6ff7a6e0)
    at /home/uros/gcc-svn/trunk/libgcc/unwind.inc:295
#6  0x00002aaaabd39199 in backtrace_full (state=0x2aaaaab14000,
skip=skip@entry=0, callback=callback@entry=0x2aaaab7a2b40 <callback>, 

(gdb) disass
Dump of assembler code for function __generic_morestack:
   ...
   0x00002aaaabd41463 <+67>:    test   %rdi,%rdi
   0x00002aaaabd41466 <+70>:    je     0x2aaaabd41508 <__generic_morestack+232>
=> 0x00002aaaabd4146c <+76>:    mov    0x10(%rdi),%r8
   0x00002aaaabd41470 <+80>:    cmp    0x8(%rsp),%r8
   ...

(gdb) i r rdi
rdi            0x2      2

(gdb) list
555       size_t aligned;
556
557       current = __morestack_current_segment;
558
559       pp = current != NULL ? &current->next : &__morestack_segments;
560       if (*pp != NULL && (*pp)->size < frame_size)
561         dynamic = __morestack_release_segments (pp, 0);
562       else
563         dynamic = NULL;
564       current = *pp;
(gdb) p pp
$1 = (struct stack_segment **) 0x2aac6ff7a008
(gdb) p (*pp)->size
Cannot access memory at address 0x12


Yet another backtrace:
=====================

...
[New Thread 0x2aacbe542700 (LWP 16731)]
[New Thread 0x2aacbe944700 (LWP 16733)]

Thread 56 "testprogcgo" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x2aab706e2700 (LWP 16578)]
__generic_morestack (pframe_size=0x2aac97f841c0, old_stack=0x2aac97f841e0,
param_size=0) at /home/uros/gcc-svn/trunk/libgcc/generic-morestack.c:573
573       current->old_stack = old_stack;

(gdb) disass
Dump of assembler code for function __generic_morestack:
   ...
   0x00002aaaabd4150c <+236>:   test   %rcx,%rcx
   0x00002aaaabd4150f <+239>:   je     0x2aaaabd41926
<__generic_morestack+1286>
=> 0x00002aaaabd41515 <+245>:   mov    %rbp,0x18(%rcx)
   0x00002aaaabd41519 <+249>:   mov    %rcx,0x8(%rsp)
   0x00002aaaabd4151e <+254>:   data16 lea 0x801072(%rip),%rdi        #
0x2aaaac542598
   ...

(gdb) list
568           current = allocate_segment (frame_size + param_size);
569           current->prev = __morestack_current_segment;
570           *pp = current;
571         }
572
573       current->old_stack = old_stack;
574
575       __morestack_current_segment = current;
576
577       if (dynamic != NULL)
(gdb) p current
$4 = (struct stack_segment *) 0x2aaaacab92d8
(gdb) i r rsp
rsp            0x2aac97f840d0   0x2aac97f840d0
>From gcc-bugs-return-576990-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 19:10:59 2017
Return-Path: <gcc-bugs-return-576990-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 126950 invoked by alias); 1 Oct 2017 19:10: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 126881 invoked by uid 48); 1 Oct 2017 19:10:53 -0000
From: "sandra at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/81351] [8 regression] Many LTO testcases FAIL
Date: Sun, 01 Oct 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: lto
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: lto
X-Bugzilla-Severity: normal
X-Bugzilla-Who: sandra at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-81351-4-fRNuQOwYtS@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81351-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81351-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00050.txt.bz2
Content-length: 413

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

sandra at gcc dot gnu.org changed:

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

--- Comment #3 from sandra at gcc dot gnu.org ---
I'm seeing several of these failures on nios2-linux-gnu as well.
>From gcc-bugs-return-576991-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 19:53:38 2017
Return-Path: <gcc-bugs-return-576991-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 15661 invoked by alias); 1 Oct 2017 19:53:38 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 8621 invoked by uid 48); 1 Oct 2017 19:53:33 -0000
From: "krzysio.kurek at wp dot pl" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/82302] LTO producing bad code
Date: Sun, 01 Oct 2017 19:53:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: lto
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: lto, wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: krzysio.kurek at wp dot pl
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82302-4-utfHes4m1y@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82302-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82302-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00051.txt.bz2
Content-length: 268

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

--- Comment #12 from krzysio.kurek at wp dot pl ---
UBSAN errors regarding integer overflow is by design, and is a part of
libnoise.
I can't find any documentation or help on what invalid vptr errors are though.
>From gcc-bugs-return-576992-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 20:30:39 2017
Return-Path: <gcc-bugs-return-576992-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 27721 invoked by alias); 1 Oct 2017 20:30: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 27529 invoked by uid 48); 1 Oct 2017 20:30:24 -0000
From: "daniel.kruegler at googlemail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82247] [concepts] Name deduction in concepts fails depending on the argument type
Date: Sun, 01 Oct 2017 20:30:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords: rejects-valid
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-82247-4-N7J9ic6NVl@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82247-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82247-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00052.txt.bz2
Content-length: 707

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

Daniel Krügler <daniel.kruegler at googlemail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |daniel.kruegler@googlemail.
                   |                            |com

--- Comment #2 from Daniel Krügler <daniel.kruegler at googlemail dot com> ---
You need to provide the concrete compile conditions in the bug report. Using

the compiler flags

-Wall -Wextra -std=c++1z -pedantic "-fconcepts"

I couldn't verify the the result, see

https://wandbox.org/permlink/heubbLxMihDsJSBM
>From gcc-bugs-return-576993-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 20:44:13 2017
Return-Path: <gcc-bugs-return-576993-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 20974 invoked by alias); 1 Oct 2017 20:44: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 20818 invoked by uid 48); 1 Oct 2017 20:43:57 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/82302] LTO producing bad code
Date: Sun, 01 Oct 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: lto
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: lto, wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: 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-82302-4-GsxUlqkC5P@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82302-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82302-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00053.txt.bz2
Content-length: 481

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

--- Comment #13 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to krzysio.kurek from comment #12)
> UBSAN errors regarding integer overflow is by design, and is a part of
> libnoise.
> I can't find any documentation or help on what invalid vptr errors are
> though.

Ok, please take a look here:
https://gcc.gnu.org/onlinedocs/gcc-7.2.0/gcc/Instrumentation-Options.html

If you are not sure, I can help with.
>From gcc-bugs-return-576994-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 20:47:43 2017
Return-Path: <gcc-bugs-return-576994-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 23988 invoked by alias); 1 Oct 2017 20:47: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 23795 invoked by uid 48); 1 Oct 2017 20:47:39 -0000
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/82384] New: [8 Regression] s-taprop.adb failed to compile for x32
Date: Sun, 01 Oct 2017 20:47:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: ada
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hjl.tools at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone cf_gcctarget
Message-ID: <bug-82384-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00054.txt.bz2
Content-length: 1073

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

            Bug ID: 82384
           Summary: [8 Regression] s-taprop.adb failed to compile for x32
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hjl.tools at gmail dot com
                CC: rupp at gnat dot com
  Target Milestone: ---
            Target: x86-64

s-taprop.adb failed to compile for x32:

s-taprop.adb:341:29: operator for type "System.Linux.time_t" is not directly
vis
ible
s-taprop.adb:341:29: add with_clause and use_clause for "Linux"

which is caused by

2017-09-25  Doug Rupp  <rupp@adacore.com>

        * libgnarl/s-taprop__linux.adb (Base_Monotonic_Clock): New variable.
        (Compute_Base_Monotonic_Clock): New function.
        (Timed_Sleep): Adjust to use Base_Monotonic_Clock.
        (Timed_Delay): Likewise.
        (Monotonic_Clock): Likewise.
        * s-oscons-tmplt.c (CLOCK_MONOTONIC): Use on Linux.
>From gcc-bugs-return-576995-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 22:05:03 2017
Return-Path: <gcc-bugs-return-576995-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 110884 invoked by alias); 1 Oct 2017 22: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 109837 invoked by uid 48); 1 Oct 2017 22:04:58 -0000
From: "maarten+gcc at m dot de-vri.es" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/58908] ICE in process_init_constructor_array for std::vector
Date: Sun, 01 Oct 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: 4.9.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: maarten+gcc at m dot de-vri.es
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-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-58908-4-ZyBUgL15Qx@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-58908-4@http.gcc.gnu.org/bugzilla/>
References: <bug-58908-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00055.txt.bz2
Content-length: 1484

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

Maarten de Vries <maarten+gcc at m dot de-vri.es> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |maarten+gcc at m dot de-vri.es

--- Comment #2 from Maarten de Vries <maarten+gcc at m dot de-vri.es> ---
Created attachment 42270
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42270&action=edit
simplified test case

I attached a minimal example (slightly more minimal than the original). Some
additional info:

The ICE only occurs for me when compiling with `-std=c++17` (or `gnu++17`).
With `-std=c++14` or older I get no error.

The problem is not limited to `std::vector`. Any initializer list seems to
trigger the problem.

Removing the custom constructor from `Derived` makes the error go away. Adding
or removing a custom constructor to `Base` doesn't make a difference.

> $ gcc -std=c++14 gcc-internal-error-process_init_constructor_array.cpp && echo "Success"
> Success
> $ gcc -std=c++17 gcc-internal-error-process_init_constructor_array.cpp && echo "Success" 
> gcc-internal-error-process_init_constructor_array.cpp:12:1: internal compiler error: in process_init_constructor_array, at cp/typeck2.c:1308
> };
> ^
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <https://bugs.archlinux.org/> for instructions.
>From gcc-bugs-return-576996-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 22:09:49 2017
Return-Path: <gcc-bugs-return-576996-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 115924 invoked by alias); 1 Oct 2017 22:09:49 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 115873 invoked by uid 48); 1 Oct 2017 22:09:46 -0000
From: "maarten+gcc at m dot de-vri.es" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/58908] ICE in process_init_constructor_array for std::vector
Date: Sun, 01 Oct 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: c++
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: maarten+gcc at m dot de-vri.es
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-58908-4-bSXNl4oBYq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-58908-4@http.gcc.gnu.org/bugzilla/>
References: <bug-58908-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00056.txt.bz2
Content-length: 1151

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

--- Comment #3 from Maarten de Vries <maarten+gcc at m dot de-vri.es> ---
I forgot to mention, I tested that with gcc 7.2.0:

> $ gcc -v
> Using built-in specs.
> COLLECT_GCC=gcc
> COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/lto-wrapper
> Target: x86_64-pc-linux-gnu
> Configured with: /build/gcc/src/gcc/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --enable-libmpx --with-system-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --enable-gnu-indirect-function --disable-multilib --disable-werror --enable-checking=release --enable-default-pie --enable-default-ssp
> Thread model: posix
> gcc version 7.2.0 (GCC)
>From gcc-bugs-return-576997-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 22:10:30 2017
Return-Path: <gcc-bugs-return-576997-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 117833 invoked by alias); 1 Oct 2017 22:10: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 117787 invoked by uid 48); 1 Oct 2017 22:10:26 -0000
From: "mjklaim at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82247] [concepts] Name deduction in concepts fails depending on the argument type
Date: Sun, 01 Oct 2017 22:10:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mjklaim 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-82247-4-78z0HZh9NU@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82247-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82247-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00057.txt.bz2
Content-length: 432

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

--- Comment #3 from Joël Lamotte <mjklaim at gmail dot com> ---
Sorry, I though you would see the flaga in the llink to godbolt I provided:

--std=c++17 -fconcepts -O3

The code I provided in the report do compile, the problem is explained through
the comments that if uncommented will not compile.
All these lines, when uncommented exclusively, 
Should all compile.
>From gcc-bugs-return-576998-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 22:41:14 2017
Return-Path: <gcc-bugs-return-576998-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 33227 invoked by alias); 1 Oct 2017 22:41: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 32768 invoked by uid 48); 1 Oct 2017 22:41:09 -0000
From: "vvulpes0 at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82385] New: ICE in extract_constraint_insn, at recog.c:2213
Date: Sun, 01 Oct 2017 22: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: vvulpes0 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_gcctarget attachments.created
Message-ID: <bug-82385-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00058.txt.bz2
Content-length: 4140

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

            Bug ID: 82385
           Summary: ICE in extract_constraint_insn, at recog.c:2213
           Product: gcc
           Version: 7.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vvulpes0 at gmail dot com
  Target Milestone: ---
            Target: m68k-elf

Created attachment 42271
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42271&action=edit
test.c

A combination of -mpcrel and any -O switch causes an internal compiler error in

$ m68k-elf-gcc -march=isaa -mpcrel -O -c test.c

The error appears for all and only the ColdFire architectures; plain 680x0 and
cpu32 compile fine.  The error reported is:


test.c: In function 'f':
test.c:5:1: error: insn does not satisfy its constraints:
 }
 ^

(insn 7 20 8 2 (set (reg:SI 0 %d0 [36])
        (and:SI (reg:SI 0 %d0 [36])
            (mem/c:SI (symbol_ref:SI ("b") <var_decl 0x7f609df03480 b>) [1 b+0
S4 A16]))) "test.c":3 230 {andsi3_5200}
     (nil))
test.c:5:1: internal compiler error: in extract_constrain_insn, at recog.c:2213


Using this command to turn on nearly every -f* optimization:

$ m68k-elf-gcc -march=isaa -mpcrel \
  $(m68k-elf-gcc -c -Q --help=optimizers,^joined \
    | awk '/ *-f/ { print $1 }') -c test.c

succeeds, creating a test.o output file.  On the other hand, using "-O" and
turning all of these options off with:

$ m68k-elf-gcc -march=isaa -mpcrel -O \
  $(m68k-elf-gcc -c -Q --help=optimizers,^joined \
    | awk '/ *-f/ && !/stack-protector/ {
             sub("^-f","-fno",$1);
             sub("-fno-no-","-f");
             print $1
           }') -c test.c

fails, producing the same error message as previosly shown.

Verbose version information:


$ m68k-elf-gcc -v -march=isaa -O -mpcrel -c test.c
Using built-in specs.
COLLECT_GCC=m68k-elf-gcc
Target: m68k-elf
Configured with: /home/fox/Builds/m68k-elf-gcc/src/gcc-7.2.0/configure
--target=m68k-elf --prefix=/opt/toolchains/m68k --with-cpu=68000
--with-arch=m68k --with-sysroot=/opt/toolchains/m68k
--with-native-system-header-dir=/include --enable-multilib
--enable-target-optspace --enable-languages=c,c++ --disable-decimal-float
--disable-libffi --disable-libgomp --disable-libmudflap --disable-libquadmath
--disable-libsp --disable-libstdcxx-pch --disable-nls --disable-shared
--disable-threads --disable-tls --with-gnu-as --with-gnu-ld --with-system-zlib
--with-newlib --with-headers=/opt/toolchains/m68k/include
--with-python-dir=share/gcc-m68k-elf --with-gmp --with-mpfr --with-mpc
--with-isl --with-libelf --enable-gnu-indirect-function
--with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm'
--enable-checking=release
Thread model: single
gcc version 7.2.0 (GCC)
COLLECT_GCC_OPTIONS='-v' '-march=isaa' '-O' '-mpcrel' '-c'
 /opt/toolchains/m68k/libexec/gcc/m68k-elf/7.2.0/cc1 -quiet -v test.c -quiet
-dumpbase test.c -march=isaa -mpcrel -auxbase test -O -version -o
/tmp/ccM0RTJ2.s
GNU C11 (GCC) version 7.2.0 (m68k-elf)
        compiled by GNU C version 7.2.0, GMP version 6.1.2, MPFR version
3.1.5-p2, MPC version 1.0.3, isl version isl-0.18-GMP

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory "/opt/toolchains/m68k/usr/local/include"
ignoring nonexistent directory "/opt/toolchains/m68k/include"
#include "..." search starts here:
#include <...> search starts here:
 /opt/toolchains/m68k/lib/gcc/m68k-elf/7.2.0/include
 /opt/toolchains/m68k/lib/gcc/m68k-elf/7.2.0/include-fixed
 /opt/toolchains/m68k/lib/gcc/m68k-elf/7.2.0/../../../../m68k-elf/include
End of search list.
GNU C11 (GCC) version 7.2.0 (m68k-elf)
         compiled by GNU C version 7.2.0, GMP version 6.1.2, MPFR version
3.1.5-p2, MPC version 1.0.3, isl version isl-0.18-GMP

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 46dabb81a36eef283e59c52a07bd40c1


followed by the previously-shown error message.
>From gcc-bugs-return-576999-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 22:44:13 2017
Return-Path: <gcc-bugs-return-576999-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 38509 invoked by alias); 1 Oct 2017 22:44: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 38465 invoked by uid 48); 1 Oct 2017 22:44:10 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/82383] Some new toplevel directories are not documented
Date: Sun, 01 Oct 2017 22:44:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: other
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: documentation
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-82383-4-Eay9tpJNNN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82383-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82383-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00059.txt.bz2
Content-length: 674

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

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

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

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed, they should be listed here:
https://gcc.gnu.org/onlinedocs/gccint/Top-Level.html#Top-Level
but they're not.
>From gcc-bugs-return-577000-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 22:45:55 2017
Return-Path: <gcc-bugs-return-577000-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 54997 invoked by alias); 1 Oct 2017 22:45: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 54963 invoked by uid 48); 1 Oct 2017 22:45:49 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/59655] incorrect diagnostic on templatized function with lambda parameter
Date: Sun, 01 Oct 2017 22:45:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-59655-4-ujLcZeRu7S@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-59655-4@http.gcc.gnu.org/bugzilla/>
References: <bug-59655-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00060.txt.bz2
Content-length: 408

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-10-01
     Ever confirmed|0                           |1
>From gcc-bugs-return-577001-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 23:11:10 2017
Return-Path: <gcc-bugs-return-577001-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 95845 invoked by alias); 1 Oct 2017 23:11:10 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 95799 invoked by uid 48); 1 Oct 2017 23:11:06 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/79768] `-Wmaybe-uninitialized' false positive with optimisation
Date: Sun, 01 Oct 2017 23:11:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 5.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:
Message-ID: <bug-79768-4-zeEzsU9pmb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79768-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79768-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00061.txt.bz2
Content-length: 2155

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

--- Comment #7 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Jeffrey A. Law from comment #6)
> Eric.  Thanks for the BZ maintenance.  It's definitely appreciated.
> 
> For bugs like this (very sensitive to unrelated code generator changes) it
> is often worth the time to bisect to what change fixed the bug.  That helps
> us identify something that just went latent vs something that actually got
> fixed.  

I wish I could bisect but I don't exactly have the computing resources on this
old laptop for the whole bisection process; is that something I could do on the
gcc compile farm?

> 
> I happened to have been looking at this yesterday so I had a bit of state. 
> I'm pretty sure this just went latent.  Martin L's recent changes to switch
> handling result in dropping the switch into an if-else which we often
> optimize/analyze better.
> 
> A slight tweak to keep Martin L's changes from firing brings the warning
> back.
> 
> 
> #include <stdio.h>
> #include <stdlib.h>
> 
> static int mk (int **a, int **b, int **c) {
>         if (!(*a = malloc (sizeof (int)))) goto a_err;
>         if (!(*b = malloc (sizeof (int)))) goto b_err;
>         if (!(*c = malloc (sizeof (int)))) goto c_err;
> 
>         return 1; c_err:
>         free (*b); b_err:
>         free (*a); a_err:
>         return 0;
> }
> 
> static void fin (int *a, int *b, int *c) {
>         free (c);
>         free (b);
>         free (a);
> }
> 
> int main (void) {
>         int *a, *b, *c, x, flag = mk (&a, &b, &c);
>         while ((x = getchar ()) != -1) {
>                 if (flag) switch (x) {
>                 case 0:
>                         break;
>                 case 0xdeadbeef:
>                         goto retm;
>                 default:
>                         goto retn;
>                 } else if (x) goto retn;
>         }
>         retn:
>         if (flag) fin (a, b, c);
>         return 0;
>         retm:
>         if (flag) fin (a, b, c);
>         return 0;
> }
> ~

Yup, confirmed that this brings the warning back.
>From gcc-bugs-return-577002-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 23:15:13 2017
Return-Path: <gcc-bugs-return-577002-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 100241 invoked by alias); 1 Oct 2017 23:15: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 100060 invoked by uid 48); 1 Oct 2017 23:15:00 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/64429] Double free when returning std::string from trivial lambda
Date: Sun, 01 Oct 2017 23:15:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.8.3
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle 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: 6.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc resolution target_milestone
Message-ID: <bug-64429-4-WcYJrcOco3@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64429-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64429-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00062.txt.bz2
Content-length: 637

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |paolo.carlini at oracle dot com
         Resolution|---                         |DUPLICATE
   Target Milestone|---                         |6.0

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Dup.

*** This bug has been marked as a duplicate of bug 62052 ***
>From gcc-bugs-return-577003-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 23:15:26 2017
Return-Path: <gcc-bugs-return-577003-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 100289 invoked by alias); 1 Oct 2017 23:15: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 100161 invoked by uid 48); 1 Oct 2017 23:15:02 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/62052] function parameter has wrong address in lambda converted to pointer-to-function
Date: Sun, 01 Oct 2017 23: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.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-62052-4-1LE2S8cpuD@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-62052-4@http.gcc.gnu.org/bugzilla/>
References: <bug-62052-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00063.txt.bz2
Content-length: 188

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

--- Comment #7 from Paolo Carlini <paolo.carlini at oracle dot com> ---
*** Bug 64429 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-577004-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 23:18:06 2017
Return-Path: <gcc-bugs-return-577004-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 108200 invoked by alias); 1 Oct 2017 23:18:06 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 108162 invoked by uid 48); 1 Oct 2017 23:18:02 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/65389] long compile time on incorrect code with lambdas
Date: Sun, 01 Oct 2017 23: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.2
X-Bugzilla-Keywords: compile-time-hog
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-65389-4-j5wuxjIiio@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-65389-4@http.gcc.gnu.org/bugzilla/>
References: <bug-65389-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00064.txt.bz2
Content-length: 408

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-10-01
     Ever confirmed|0                           |1
>From gcc-bugs-return-577005-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 01 23:29:03 2017
Return-Path: <gcc-bugs-return-577005-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 111739 invoked by alias); 1 Oct 2017 23: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 111674 invoked by uid 48); 1 Oct 2017 23:28:59 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/61636] generic lambda: segfault / "cannot call member function without object"
Date: Sun, 01 Oct 2017 23:29:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: nathan at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: target_milestone
Message-ID: <bug-61636-4-3n9HC9KX5T@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-61636-4@http.gcc.gnu.org/bugzilla/>
References: <bug-61636-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00065.txt.bz2
Content-length: 297

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |6.4
>From gcc-bugs-return-577006-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 01:23:52 2017
Return-Path: <gcc-bugs-return-577006-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 87608 invoked by alias); 2 Oct 2017 01: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 87585 invoked by uid 48); 2 Oct 2017 01:23:47 -0000
From: "vvulpes0 at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82385] ICE in extract_constraint_insn, at recog.c:2213
Date: Mon, 02 Oct 2017 01:23:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vvulpes0 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-82385-4-1lASwmuAbS@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82385-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82385-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00066.txt.bz2
Content-length: 186

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

--- Comment #1 from Dakotah Lambert <vvulpes0 at gmail dot com> ---
Simpler failing test case:
int a,b;
void f(void) {
 a &= b;
}
>From gcc-bugs-return-577007-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 01:25:54 2017
Return-Path: <gcc-bugs-return-577007-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 89402 invoked by alias); 2 Oct 2017 01:25:54 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 89385 invoked by uid 48); 2 Oct 2017 01:25:50 -0000
From: "vvulpes0 at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82385] ICE in extract_constraint_insn, at recog.c:2213
Date: Mon, 02 Oct 2017 01:25:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vvulpes0 at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.isobsolete attachments.created
Message-ID: <bug-82385-4-mx4AZ8aogL@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82385-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82385-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00067.txt.bz2
Content-length: 517

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

Dakotah Lambert <vvulpes0 at gmail dot com> changed:

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

--- Comment #2 from Dakotah Lambert <vvulpes0 at gmail dot com> ---
Created attachment 42272
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42272&action=edit
test.c
>From gcc-bugs-return-577008-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 02:07:37 2017
Return-Path: <gcc-bugs-return-577008-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 55344 invoked by alias); 2 Oct 2017 02:07: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 54543 invoked by uid 48); 2 Oct 2017 02:07:31 -0000
From: "jvdelisle at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/40196] [F03] [F08] Type parameter inquiry (str%len, a%kind) and Complex parts (z%re, z%im)
Date: Mon, 02 Oct 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: fortran
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: rejects-valid
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-40196-4-kZEH7HjRo1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-40196-4@http.gcc.gnu.org/bugzilla/>
References: <bug-40196-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00068.txt.bz2
Content-length: 263

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

--- Comment #6 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
This works:

type tp(dim)
  integer, KIND :: dim = 3
  real :: dist(dim)
end type tp
type(tp) :: t(5)

print *, t%dist(2)
print *, t

end
>From gcc-bugs-return-577010-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 04:06:41 2017
Return-Path: <gcc-bugs-return-577010-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 9325 invoked by alias); 2 Oct 2017 04: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 6697 invoked by uid 48); 2 Oct 2017 04:06:37 -0000
From: "asolokha at gmx dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/71751] [7/8 Regression] Segmentation fault in ssa_default_def
Date: Mon, 02 Oct 2017 04:06:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: asolokha at gmx dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: 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-71751-4-YUl069QUIO@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-71751-4@http.gcc.gnu.org/bugzilla/>
References: <bug-71751-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00070.txt.bz2
Content-length: 487

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

Arseny Solokha <asolokha at gmx dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |asolokha at gmx dot com

--- Comment #3 from Arseny Solokha <asolokha at gmx dot com> ---
I can't reproduce it on x86_64-linux anymore. The issue seems to be fixed by
recent graphite changes on trunk.
>From gcc-bugs-return-577009-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 04:06:31 2017
Return-Path: <gcc-bugs-return-577009-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 5174 invoked by alias); 2 Oct 2017 04:06:30 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 5117 invoked by uid 48); 2 Oct 2017 04:06:26 -0000
From: "asolokha at gmx dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82386] New: [8 Regression] internal compiler error: Segmentation fault on 32-bit powerpc BE targets
Date: Mon, 02 Oct 2017 04:06: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: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: asolokha at gmx dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone cf_gcctarget
Message-ID: <bug-82386-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00069.txt.bz2
Content-length: 4503

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

            Bug ID: 82386
           Summary: [8 Regression] internal compiler error: Segmentation
                    fault on 32-bit powerpc BE targets
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
  Target Milestone: ---
            Target: powerpc-*-linux-gnu*, powerpcspe-*-linux-gnu*

gcc-8.0.0-alpha20170924 (r253127) ICEs when compiling the following snippet w/
-misel -O2:

long long int fs;
int vm;

void
sd (void)
{
  fs = 1;
  vm = 2;
  goto zf;

  if (0)
    {
      int y6 = 0;
      int *uu = &y6;
      short int he;
      int of = 0;

 zf:
      for (;;)
      {
          he = of;
          if (he || (fs |= vm))
            {
              *uu = fs;
              fs += vm;
            }
          if (y6 == vm)
            fs |= he;
          he = y6 || fs;
          fs /= 0;
        }
    }
}

% powerpc-e300c3-linux-gnu-gcc-8.0.0-alpha20170924 -misel -O2 -w -c kvslssip.c
during RTL pass: combine
kvslssip.c: In function 'sd':
kvslssip.c:33:1: internal compiler error: Segmentation fault
 }
 ^
0xc71ef9 crash_signal
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-8.0.0_alpha20170924/work/gcc-8-20170924/gcc/toplev.c:326
0x133a5d3 rtx_insn* safe_as_a<rtx_insn*, rtx_def>(rtx_def*)
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-8.0.0_alpha20170924/work/gcc-8-20170924/gcc/is-a.h:214
0x133a5d3 PREV_INSN(rtx_insn const*)
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-8.0.0_alpha20170924/work/gcc-8-20170924/gcc/rtl.h:1403
0x133a5d3 distribute_notes
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-8.0.0_alpha20170924/work/gcc-8-20170924/gcc/combine.c:14572
0x134615f try_combine
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-8.0.0_alpha20170924/work/gcc-8-20170924/gcc/combine.c:4451
0x134ba4f combine_instructions
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-8.0.0_alpha20170924/work/gcc-8-20170924/gcc/combine.c:1296
0x134ba4f rest_of_handle_combine
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-8.0.0_alpha20170924/work/gcc-8-20170924/gcc/combine.c:14778
0x134ba4f execute
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-8.0.0_alpha20170924/work/gcc-8-20170924/gcc/combine.c:14823
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.

==29805== Invalid read of size 2
==29805==    at 0x133A5D3: safe_as_a<rtx_insn*, rtx_def> (is-a.h:214)
==29805==    by 0x133A5D3: PREV_INSN (rtl.h:1403)
==29805==    by 0x133A5D3: distribute_notes(rtx_def*, rtx_insn*, rtx_insn*,
rtx_insn*, rtx_def*, rtx_def*, rtx_def*) (combine.c:14572)
==29805==    by 0x134615F: try_combine(rtx_insn*, rtx_insn*, rtx_insn*,
rtx_insn*, int*, rtx_insn*) (combine.c:4451)
==29805==    by 0x134BA4F: combine_instructions (combine.c:1296)
==29805==    by 0x134BA4F: rest_of_handle_combine (combine.c:14778)
==29805==    by 0x134BA4F: (anonymous
namespace)::pass_combine::execute(function*) (combine.c:14823)
==29805==    by 0xB6D775: execute_one_pass(opt_pass*) (passes.c:2495)
==29805==    by 0xB6E197: execute_pass_list_1(opt_pass*) (passes.c:2584)
==29805==    by 0xB6E1A9: execute_pass_list_1(opt_pass*) (passes.c:2585)
==29805==    by 0xB6E23B: execute_pass_list(function*, opt_pass*)
(passes.c:2595)
==29805==    by 0x7AC4B9: cgraph_node::expand() (cgraphunit.c:2115)
==29805==    by 0x7AD72E: expand_all_functions (cgraphunit.c:2251)
==29805==    by 0x7AD72E: symbol_table::compile() (cgraphunit.c:2599)
==29805==    by 0x7B07E7: symbol_table::finalize_compilation_unit()
(cgraphunit.c:2692)
==29805==    by 0xC722CA: compile_file() (toplev.c:481)
==29805==    by 0x5C148A: do_compile (toplev.c:2037)
==29805==    by 0x5C148A: toplev::main(int, char**) (toplev.c:2172)
==29805==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
>From gcc-bugs-return-577011-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 05:06:18 2017
Return-Path: <gcc-bugs-return-577011-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 26212 invoked by alias); 2 Oct 2017 05: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 26165 invoked by uid 48); 2 Oct 2017 05:06:14 -0000
From: "su at cs dot ucdavis.edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/82387] New: wrong code at -O1 and -Os on x86_64-linux-gnu in 64-bit mode
Date: Mon, 02 Oct 2017 05:06:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: su at cs dot ucdavis.edu
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-82387-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00071.txt.bz2
Content-length: 1682

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

            Bug ID: 82387
           Summary: wrong code at -O1 and -Os on x86_64-linux-gnu in
                    64-bit mode
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: su at cs dot ucdavis.edu
  Target Milestone: ---

$ gcctk -v
Using built-in specs.
COLLECT_GCC=gcctk
COLLECT_LTO_WRAPPER=/home/su/software/tmp/gcc/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/8.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc-source-trunk/configure --enable-languages=c,c++,lto
--prefix=/home/su/software/tmp/gcc/gcc-trunk --disable-bootstrap
Thread model: posix
gcc version 8.0.0 20171001 (experimental) [trunk revision 253330] (GCC) 
$ 
$ gcctk -O0 small.c; ./a.out; echo $?
1
$ gcc-7.2.0 -O1 small.c; ./a.out; echo $?
1
$ 
$ gcctk -O1 small.c; ./a.out; echo $?
0
$ 


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


struct A
{
  int b;
};

int f;

struct A g ()
{
  struct A h[] = { 
    {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1}, 
    {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1}, 
    {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1}, 
    {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1}, 
    {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1}, 
    {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1}, 
    {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1}, 
  };
  return h[24];
}

int main ()
{
  struct A i = g (), j = i;
  j.b && (f = 1);
  return f; 
}
>From gcc-bugs-return-577012-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 05:26:15 2017
Return-Path: <gcc-bugs-return-577012-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 52822 invoked by alias); 2 Oct 2017 05:26: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 52775 invoked by uid 48); 2 Oct 2017 05:26:09 -0000
From: "su at cs dot ucdavis.edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/82388] New: wrong code at -O1 and above on x86_64-linux-gnu in 32-bit mode
Date: Mon, 02 Oct 2017 05:26:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: su at cs dot ucdavis.edu
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-82388-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00072.txt.bz2
Content-length: 1383

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

            Bug ID: 82388
           Summary: wrong code at -O1 and above on x86_64-linux-gnu in
                    32-bit mode
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: su at cs dot ucdavis.edu
  Target Milestone: ---

This might be related to PR 82387, which only manifests in the 64-bit mode,
while this one only in the 32-bit mode. 

$ gcctk -v
Using built-in specs.
COLLECT_GCC=gcctk
COLLECT_LTO_WRAPPER=/home/su/software/tmp/gcc/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/8.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc-source-trunk/configure --enable-languages=c,c++,lto
--prefix=/home/su/software/tmp/gcc/gcc-trunk --disable-bootstrap
Thread model: posix
gcc version 8.0.0 20171001 (experimental) [trunk revision 253330] (GCC) 
$ 
$ gcctk -m32 -O0 small.c; ./a.out; echo $?
0
$ gcc-7.2.0 -m32 -O1 small.c; ./a.out; echo $?
0
$ 
$ gcctk -m32 -O1 small.c; ./a.out; echo $?
251
$ 


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


struct A
{
  int b;
  int c;
  int d;
} e;

struct A g ()
{
  struct A h[30] = {{0,0,0}};
  return h[29]; 
}

int main ()
{
  e = g ();
  return e.b; 
}
>From gcc-bugs-return-577013-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 05:47:40 2017
Return-Path: <gcc-bugs-return-577013-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 1462 invoked by alias); 2 Oct 2017 05:47:40 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 127874 invoked by uid 48); 2 Oct 2017 05:47:36 -0000
From: "su at cs dot ucdavis.edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/82388] wrong code at -O1 and above on x86_64-linux-gnu in 32-bit mode
Date: Mon, 02 Oct 2017 05:47:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: su at cs dot ucdavis.edu
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82388-4-nkBMHliXYF@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82388-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82388-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00073.txt.bz2
Content-length: 609

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

--- Comment #1 from Zhendong Su <su at cs dot ucdavis.edu> ---
This one also seems to be related, but it fails non-deterministically. 

$ gcctk -Os tmp.c; a.out
32767
$ gcctk -Os tmp.c; a.out
0
$ gcctk -Os tmp.c; a.out
32767
$ gcctk -Os tmp.c; a.out
32767
$ gcctk -Os tmp.c; a.out
32767
$


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


int printf (const char *, ...);

struct A
{ 
  int:30;
  int b;
};

struct A fn1 ()
{ 
  struct A e[9][5] = {{{1}}};
  return e[8][0];
}

int main ()
{ 
  struct A f = fn1 ();
  printf ("%d\n", f.b);
  return 0;
}
>From gcc-bugs-return-577014-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 06:56:44 2017
Return-Path: <gcc-bugs-return-577014-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 5755 invoked by alias); 2 Oct 2017 06:56: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 127627 invoked by uid 48); 2 Oct 2017 06:56:37 -0000
From: "andrewm.roberts at sky dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82175] [8 Regression] -march=native fails on armv7 big/little system armv7l-unknown-linux-gnueabihf with gcc 8.0.0
Date: Mon, 02 Oct 2017 06:56:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: andrewm.roberts at sky dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rearnsha at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82175-4-2JKLJFeNvZ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82175-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82175-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00074.txt.bz2
Content-length: 1774

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

--- Comment #6 from Andrew Roberts <andrewm.roberts at sky dot com> ---
Thanks Richard, this is now ok, tested on armv7 and aarch64. 

However I do see differences in what is selected by march=native on arm between
7.2.0 and 8.0.0.20171001. Is this as expected? Or is it a work in progress?
There seem to be significant changes...

On aarch64: The only difference is: (< is gcc-7.2.0, > is gcc-8)

<   -mtls-size=                                 [default]
---
>   -mtls-size=                                 24

On armv7: (tested on RPI, and ODROID XU4)
RPI:
<   -march=                                     armv8-a+crc
---
>   -march=                     		armv8-a+crc+simd (RPI)

ODROID XU4:
<   -march=                                     armv7ve
---
>   -march=                                     armv7ve+vfpv3-d16

Differences ommon to both RPI and ODROID XU4:
>   -mbe32                      		[enabled]
>   -mbe8                       		[disabled]

<   -mcpu=                                      [default]
<   -mfix-cortex-m3-ldrd                        [enabled]
---
>   -mcpu=                      		
>   -mfix-cortex-m3-ldrd        		[disabled]

<   -mrestrict-it                               [enabled]
---
>   -mrestrict-it               		[disabled]

<   -mstructure-size-boundary=                  32
---
>   -mstructure-size-boundary=  		8

<   -mthumb-interwork                           [enabled]
---
>   -mthumb-interwork           		[disabled]

<   -mtp=                                       auto
---
>   -mtp=                       		cp15

<   -mtune=                                     [default]
---
>   -mtune=
>From gcc-bugs-return-577015-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 07:05:46 2017
Return-Path: <gcc-bugs-return-577015-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 56404 invoked by alias); 2 Oct 2017 07:05:46 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 56365 invoked by uid 48); 2 Oct 2017 07:05:41 -0000
From: "helloqirun at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82389] New: ICE on valid code on x86_64-linux-gnu: Segmentation fault
Date: Mon, 02 Oct 2017 07: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: helloqirun at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-82389-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00075.txt.bz2
Content-length: 2075

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

            Bug ID: 82389
           Summary: ICE on valid code on x86_64-linux-gnu: Segmentation
                    fault
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: helloqirun at gmail dot com
  Target Milestone: ---

It crashes at level -O3. Level -O2 works fine.

$ gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
COLLECT_LTO_WRAPPER=/home/absozero/trunk/root-gcc/libexec/gcc/x86_64-pc-linux-gnu/8.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc/configure --prefix=/home/absozero/trunk/root-gcc
--enable-languages=c,c++ --disable-werror --enable-multilib
Thread model: posix
gcc version 8.0.0 20171001 (experimental) [trunk revision 253328] (GCC)



$ gcc-trunk -O3 -c abc.c
during GIMPLE pass: dse
abc.c: In function ‘fn1’:
abc.c:1:6: internal compiler error: Segmentation fault
 void fn1() {
      ^~~
0xd46f2f crash_signal
        ../../gcc/gcc/toplev.c:326
0x1473d19 bitmap_bit_in_range_p(simple_bitmap_def const*, unsigned int,
unsigned int)
        ../../gcc/gcc/sbitmap.c:348
0x707f7f live_bytes_read
        ../../gcc/gcc/tree-ssa-dse.c:496
0x707f7f dse_classify_store
        ../../gcc/gcc/tree-ssa-dse.c:594
0xe2b95b dse_dom_walker::dse_optimize_stmt(gimple_stmt_iterator*)
        ../../gcc/gcc/tree-ssa-dse.c:785
0x708ac5 dse_dom_walker::before_dom_children(basic_block_def*)
        ../../gcc/gcc/tree-ssa-dse.c:852
0x1366d17 dom_walker::walk(basic_block_def*)
        ../../gcc/gcc/domwalk.c:308
0xe2b213 execute
        ../../gcc/gcc/tree-ssa-dse.c:906
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

$ cat abc.c
void fn1() {
  short a[5];
  int b = 3004363298;
  for (; b < 5; b++)
    a[b] = 0;
  fn1(a[3]);
}
>From gcc-bugs-return-577016-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 07:33:28 2017
Return-Path: <gcc-bugs-return-577016-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 36530 invoked by alias); 2 Oct 2017 07:33: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 36487 invoked by uid 55); 2 Oct 2017 07:33:24 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82355] [8 Regression] ICE in outermost_loop_in_sese, at sese.c:301
Date: Mon, 02 Oct 2017 07: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: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82355-4-I7MZkYzlIR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82355-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82355-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00076.txt.bz2
Content-length: 1616

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

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Mon Oct  2 07:32:52 2017
New Revision: 253336

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

        PR tree-optimization/82355
        * graphite-isl-ast-to-gimple.c (build_iv_mapping): Also build
        a mapping for the enclosing loop but avoid generating one for
        the loop tree root.
        (copy_bb_and_scalar_dependences): Remove premature codegen
        error on PHIs in blocks duplicated into multiple places.
        * graphite-scop-detection.c
        (scop_detection::stmt_has_simple_data_refs_p): For a loop not
        in the region use it as loop and nest to analyze the DR in.
        (try_generate_gimple_bb): Likewise.
        * graphite-sese-to-poly.c (extract_affine_chrec): Adjust.
        (add_loop_constraints): For blocks in a loop not in the region
        create a dimension with a single iteration.
        * sese.h (gbb_loop_at_index): Remove assert.

        * gcc.dg/graphite/fuse-1.c: Adjust.
        * gcc.dg/graphite/fuse-2.c: Likewise.
        * gcc.dg/graphite/pr82355.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.dg/graphite/pr82355.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/graphite-isl-ast-to-gimple.c
    trunk/gcc/graphite-scop-detection.c
    trunk/gcc/graphite-sese-to-poly.c
    trunk/gcc/sese.h
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/graphite/fuse-1.c
    trunk/gcc/testsuite/gcc.dg/graphite/fuse-2.c
>From gcc-bugs-return-577017-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 07:38:42 2017
Return-Path: <gcc-bugs-return-577017-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 42100 invoked by alias); 2 Oct 2017 07:38: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 42027 invoked by uid 48); 2 Oct 2017 07:38:37 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82355] [8 Regression] ICE in outermost_loop_in_sese, at sese.c:301
Date: Mon, 02 Oct 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: 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: 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-82355-4-bg3WbDQwIK@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82355-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82355-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00077.txt.bz2
Content-length: 429

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

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

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

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-577018-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 07:40:35 2017
Return-Path: <gcc-bugs-return-577018-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 57009 invoked by alias); 2 Oct 2017 07:40: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 56951 invoked by uid 48); 2 Oct 2017 07:40:31 -0000
From: "derodat at adacore dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/82384] [8 Regression] s-taprop.adb failed to compile for x32
Date: Mon, 02 Oct 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: ada
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: derodat at adacore 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-82384-4-27QojBoyAV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82384-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82384-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00078.txt.bz2
Content-length: 733

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82384

Pierre-Marie de Rodat <derodat at adacore dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |derodat at adacore dot com

--- Comment #1 from Pierre-Marie de Rodat <derodat at adacore dot com> ---
Created attachment 42273
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42273&action=edit
Tentative untested fix

Hello,

Thank you for reporting this. Could you please check that the attached untested
patch fixes the issue you are reporting? (or tell me how to reproduce on my
x86_64-linux box :-)) Thank you in advance!
>From gcc-bugs-return-577019-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 07:43:25 2017
Return-Path: <gcc-bugs-return-577019-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 76399 invoked by alias); 2 Oct 2017 07:43: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 74463 invoked by uid 48); 2 Oct 2017 07:43:20 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/82390] New: gcc.dg/torture tests run with same optimization level
Date: Mon, 02 Oct 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: testsuite
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-82390-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00079.txt.bz2
Content-length: 2518

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82390

            Bug ID: 82390
           Summary: gcc.dg/torture tests run with same optimization level
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: testsuite
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

The gcc.dg/torture testsuite contains some tests that set optimization level
explicitly:
...
$ grep 'dg-options.*-O' gcc/testsuite/gcc.dg/torture/*
gcc/testsuite/gcc.dg/torture/cris-asm-mof-1.c:/* { dg-options "-O2 -march=v10"
} */
gcc/testsuite/gcc.dg/torture/pr36244.c:/* { dg-options "-O3
-ftree-parallelize-loops=4" } */
gcc/testsuite/gcc.dg/torture/pr68906.c:/* { dg-options "-O3" } */
gcc/testsuite/gcc.dg/torture/pr69760.c:/* { dg-options "-O2" } */
gcc/testsuite/gcc.dg/torture/pr70935.c:/* { dg-options "-O3 -g" } */
gcc/testsuite/gcc.dg/torture/pr77916.c:/* { dg-options "-O3
-Wno-int-conversion" } */
gcc/testsuite/gcc.dg/torture/pr77937-1.c:/* { dg-options "-O3" } */
gcc/testsuite/gcc.dg/torture/pr77937-2.c:/* { dg-options "-O3" } */
...

If we run one of those tests, the summary suggests that all optimization levels
were used:
...
PASS: gcc.dg/torture/pr36244.c   -O0  (test for excess errors)
PASS: gcc.dg/torture/pr36244.c   -O1  (test for excess errors)
PASS: gcc.dg/torture/pr36244.c   -O2  (test for excess errors)
PASS: gcc.dg/torture/pr36244.c   -O3 -fomit-frame-pointer -funroll-loops
-fpeel-loops -ftracer -finline-functions  (test for excess errors)
PASS: gcc.dg/torture/pr36244.c   -O3 -g  (test for excess errors)
PASS: gcc.dg/torture/pr36244.c   -Os  (test for excess errors)
PASS: gcc.dg/torture/pr36244.c   -O2 -flto -fno-use-linker-plugin
-flto-partition=none  (test for excess errors)
PASS: gcc.dg/torture/pr36244.c   -O2 -flto -fuse-linker-plugin
-fno-fat-lto-objects  (test for excess errors)
...

But we see that in fact the dg-options setting takes precedence:
...
build/gcc/xgcc -Bbuild/gcc/ gcc/testsuite/gcc.dg/torture/pr36244.c   
-fno-diagnostics-show-caret -fdiagnostics-color=never    -O0  -O3
-ftree-parallelize-loops=4 -S -o pr36244.s
...

So we run the test a number of times with effectively the same option set.

The easiest way to fix this would be to rewrite the dg-options -O<x> into a
dg-skip-if.

OTOH, if we're running these with the same option level, maybe we should just
move them out of torture tests.
>From gcc-bugs-return-577020-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 07:47:13 2017
Return-Path: <gcc-bugs-return-577020-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 58526 invoked by alias); 2 Oct 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 58313 invoked by uid 48); 2 Oct 2017 07:47:03 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/82384] [8 Regression] s-taprop.adb failed to compile for x32
Date: Mon, 02 Oct 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: ada
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ebotcazou at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc target_milestone everconfirmed
Message-ID: <bug-82384-4-0tZYiW9ltR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82384-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82384-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00080.txt.bz2
Content-length: 612

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82384

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-10-02
                 CC|                            |ebotcazou at gcc dot gnu.org
   Target Milestone|---                         |8.0
     Ever confirmed|0                           |1

--- Comment #2 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
.
>From gcc-bugs-return-577021-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 07:49:59 2017
Return-Path: <gcc-bugs-return-577021-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 67206 invoked by alias); 2 Oct 2017 07:49:59 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 66462 invoked by uid 48); 2 Oct 2017 07:49:06 -0000
From: "arnd at linaro dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/82365] stack locations are consolidated if noreturn function is on the path
Date: Mon, 02 Oct 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: middle-end
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: arnd at linaro 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-82365-4-hgYeocIw24@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82365-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82365-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00081.txt.bz2
Content-length: 691

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82365

--- Comment #3 from Arnd Bergmann <arnd at linaro dot org> ---
I tried replacing the call to a noreturn function with a
__builtin_unreachable() statement, same result.

However, adding an empty assembler statement before the noreturn statement or
the __builtin_unreachable() appears to work around the problem:

void __fortify_panic() __noreturn;
extern inline __attribute__((always_inline)) fortify_panic()
{
      asm volatile("");
      __fortify_panic();
}

I need to look at the resulting object code some more to see if that has other
downsides or if we can use that trick in the kernel to work around compilers
without a fix.
>From gcc-bugs-return-577022-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 07:52:31 2017
Return-Path: <gcc-bugs-return-577022-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 70658 invoked by alias); 2 Oct 2017 07:52:31 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 70488 invoked by uid 48); 2 Oct 2017 07:52:27 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/82384] [8 Regression] s-taprop.adb failed to compile for x32
Date: Mon, 02 Oct 2017 07:52:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: ada
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ebotcazou at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82384-4-fDwciUXaKG@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82384-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82384-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00082.txt.bz2
Content-length: 1917

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82384

--- Comment #3 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> Thank you for reporting this. Could you please check that the attached
> untested patch fixes the issue you are reporting? (or tell me how to
> reproduce on my x86_64-linux box :-)) Thank you in advance!

I have essentially the same patch locally:

Index: s-linux__x32.ads
===================================================================
--- s-linux__x32.ads    (revision 253315)
+++ s-linux__x32.ads    (working copy)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                  S p e c                                 --
 --                                                                          --
---             Copyright (C) 2013-2017, Free Software Foundation, Inc.      --
+--          Copyright (C) 2013-2017, Free Software Foundation, Inc.         --
 --
 --                                                                          --
 -- GNARL is free software; you can  redistribute it  and/or modify it under --
@@ -45,8 +45,9 @@ package System.Linux is
    -- Time --
    ----------

-   type time_t       is new Long_Long_Integer;
-   subtype clockid_t is Interfaces.C.int;
+   subtype suseconds_t is Long_Long_Integer;
+   subtype time_t      is Long_Long_Integer;
+   subtype clockid_t   is Interfaces.C.int;

    type timespec is record
       tv_sec  : time_t;
@@ -56,7 +57,7 @@ package System.Linux is

    type timeval is record
       tv_sec  : time_t;
-      tv_usec : Long_Long_Integer;
+      tv_usec : suseconds_t;
    end record;
    pragma Convention (C, timeval);

with additional tweaks to make it resemble s-linux.ads more closely.
>From gcc-bugs-return-577023-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 08:09:44 2017
Return-Path: <gcc-bugs-return-577023-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 122180 invoked by alias); 2 Oct 2017 08:08:42 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 85215 invoked by uid 48); 2 Oct 2017 08:06:40 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82360] [8 Regression]  tree check fail in get_inner_reference, at expr.c:6996
Date: Mon, 02 Oct 2017 08: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: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cf_known_to_work target_milestone short_desc everconfirmed
Message-ID: <bug-82360-4-cBQ722PruJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82360-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82360-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00083.txt.bz2
Content-length: 2588

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82360

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-10-02
      Known to work|                            |7.2.1
   Target Milestone|---                         |8.0
            Summary|tree check fail in          |[8 Regression]  tree check
                   |get_inner_reference, at     |fail in
                   |expr.c:6996                 |get_inner_reference, at
                   |                            |expr.c:6996
     Ever confirmed|0                           |1

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed.

> ./cc1plus  -quiet t.ii
t.ii: In constructor ‘b< <template-parameter-1-1> >::b(b<
<template-parameter-1-1> >&&)’:
t.ii:3:37: internal compiler error: tree check: expected tree that contains
‘decl common’ structure, have ‘identifier_node’ in get_inner_reference, at
expr.c:6996
   b(b &&c) : d(static_cast<a &&>(c.d)) {}
                                     ^
0x155dde4 tree_contains_struct_check_failed(tree_node const*,
tree_node_structure_enum, char const*, int, char const*)
        /tmp/trunk2/gcc/tree.c:9254
0x7ff44f contains_struct_check(tree_node*, tree_node_structure_enum, char
const*, int, char const*)
        /tmp/trunk2/gcc/tree.h:3218
0xd8ff31 get_inner_reference(tree_node*, long*, long*, tree_node**,
machine_mode*, int*, int*, int*)
        /tmp/trunk2/gcc/expr.c:6996
0xdd1d04 fold_unary_loc(unsigned int, tree_code, tree_node*, tree_node*)
        /tmp/trunk2/gcc/fold-const.c:7726
0xde70dd fold_build1_loc(unsigned int, tree_code, tree_node*, tree_node*)
        /tmp/trunk2/gcc/fold-const.c:12226
0xdbce9f fold_convert_loc(unsigned int, tree_node*, tree_node*)
        /tmp/trunk2/gcc/fold-const.c:2257
0x8a3306 cp_fold_convert(tree_node*, tree_node*)
        /tmp/trunk2/gcc/cp/cvt.c:607
0xb0019a build_static_cast_1
        /tmp/trunk2/gcc/cp/typeck.c:6852
0xb012f9 build_static_cast(tree_node*, tree_node*, int)
        /tmp/trunk2/gcc/cp/typeck.c:7079
0x9aec22 cp_parser_postfix_expression
        /tmp/trunk2/gcc/cp/parser.c:6584
0x9b31a3 cp_parser_unary_expression
        /tmp/trunk2/gcc/cp/parser.c:8251
0x9b428a cp_parser_cast_expression
        /tmp/trunk2/gcc/cp/parser.c:9019
>From gcc-bugs-return-577025-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 08:13:17 2017
Return-Path: <gcc-bugs-return-577025-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 86120 invoked by alias); 2 Oct 2017 08:12:52 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 84893 invoked by uid 55); 2 Oct 2017 08:12:13 -0000
From: "rsandifo at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/71307] Poor code quality with lane extraction arm_neon.h intrinsics on aarch64
Date: Mon, 02 Oct 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: tree-optimization
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rsandifo at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-71307-4-cZamYS4AKt@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-71307-4@http.gcc.gnu.org/bugzilla/>
References: <bug-71307-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00085.txt.bz2
Content-length: 1568

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71307

--- Comment #7 from rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> ---
Author: rsandifo
Date: Mon Oct  2 08:11:07 2017
New Revision: 253337

URL: https://gcc.gnu.org/viewcvs?rev=253337&root=gcc&view=rev
Log:
[AArch64] PR71307: Define union class of POINTER+FP

ALL_REGS doesn't function as a union class of POINTER_REGS and FP_REGS
since it includes the CC register as well.  REGNO_REG_CLASS (CC_REGNUM)
is NO_REGS, but of course NO_REGS rightly doesn't include CC_REGNUM.

Adding a union class for POINTER+FP allows the RA to use it as the
preferred or alternative class of a pseudo.  It also works as a
union class of GENERAL+FP for modes that aren't allowed in SP.

This is also needed for the SVE port, which adds predicate registers
to the mix.

2017-09-15  Richard Sandiford  <richard.sandiford@linaro.org>
            Alan Hayward  <alan.hayward@arm.com>
            David Sherwood  <david.sherwood@arm.com>

gcc/
        PR target/71307
        * config/aarch64/aarch64.h (POINTER_AND_FP_REGS): New reg class.
        (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
        * config/aarch64/aarch64.c (aarch64_class_max_nregs): Handle
        POINTER_AND_FP_REGS.

gcc/testsuite/
        PR target/71307
        * gcc.target/aarch64/vect_copy_lane_1.c: Remove XFAIL.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/aarch64/aarch64.c
    trunk/gcc/config/aarch64/aarch64.h
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.target/aarch64/vect_copy_lane_1.c
>From gcc-bugs-return-577024-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 08:12:22 2017
Return-Path: <gcc-bugs-return-577024-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 85013 invoked by alias); 2 Oct 2017 08:12:22 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 84919 invoked by uid 48); 2 Oct 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 fortran/82362] [8 Regression] SPEC CPU2006 436.cactusADM ~7% performance deviation with trunk@251713
Date: Mon, 02 Oct 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: fortran
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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cf_gcctarget bug_status cf_reconfirmed_on component everconfirmed bug_severity
Message-ID: <bug-82362-4-a6INmaCbJb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82362-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82362-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00084.txt.bz2
Content-length: 1344

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82362

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |x86_64-*-*, i?86-*-*
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|2017-09-30 00:00:00         |2017-10-02
          Component|middle-end                  |fortran
     Ever confirmed|0                           |1
           Severity|normal                      |enhancement

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
I think the Fortran FE could help with using alloca-with-align with larger
alignment (maybe using BIGGEST_ALIGNMENT, I see really no good reason for
using sth as large as 64 bytes by default, so yes, for this we'd need an
option that amends -fstack-arrays).

But that Fortran part isn't really a regression.

> Comparing performance for particular 7-runs
> (relative to median performance of r251711):
> r251711: 92,8%   92,9%   93,0%   106,7%  107,0%  107,0%  107,2%
> r251713: 99,5%   99,6%   99,8%   100,0%  100,3%  100,6%  100,6%

I suppose you swapped the revs here as here r251713 looks more stable.

The median looks unchanged here so the regression would be the instability.
>From gcc-bugs-return-577026-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 08:13:22 2017
Return-Path: <gcc-bugs-return-577026-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 86730 invoked by alias); 2 Oct 2017 08: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 86482 invoked by uid 48); 2 Oct 2017 08:13:17 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82363] [8 Regression] wrong code at -O1, -O2 and -O3 on x86_64-linux-gnu
Date: Mon, 02 Oct 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: 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: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords version target_milestone short_desc
Message-ID: <bug-82363-4-TiABHM6j68@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82363-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82363-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00086.txt.bz2
Content-length: 619

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82363

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
            Version|unknown                     |8.0
   Target Milestone|---                         |8.0
            Summary|wrong code at -O1, -O2 and  |[8 Regression] wrong code
                   |-O3 on x86_64-linux-gnu     |at -O1, -O2 and -O3 on
                   |                            |x86_64-linux-gnu
>From gcc-bugs-return-577027-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 08:13:49 2017
Return-Path: <gcc-bugs-return-577027-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 88269 invoked by alias); 2 Oct 2017 08:13: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 88170 invoked by uid 48); 2 Oct 2017 08:13:45 -0000
From: "rsandifo at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/71307] Poor code quality with lane extraction arm_neon.h intrinsics on aarch64
Date: Mon, 02 Oct 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: tree-optimization
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rsandifo 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-71307-4-9A8qDb1V7z@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-71307-4@http.gcc.gnu.org/bugzilla/>
References: <bug-71307-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00087.txt.bz2
Content-length: 467

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71307

rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #8 from rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> ---
Patch applied.
>From gcc-bugs-return-577028-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 08:16:46 2017
Return-Path: <gcc-bugs-return-577028-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 111703 invoked by alias); 2 Oct 2017 08:16: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 92236 invoked by uid 48); 2 Oct 2017 08:15:40 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/82364] [7 Regression] Enormous memory usage when building on 32bit i386 with >= -O1
Date: Mon, 02 Oct 2017 08:16:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: memory-hog
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on target_milestone everconfirmed
Message-ID: <bug-82364-4-BT7QP91nwj@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82364-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82364-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00088.txt.bz2
Content-length: 697

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82364

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2017-10-02
   Target Milestone|---                         |7.3
     Ever confirmed|0                           |1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Can you provide output of the compile command with -v appended so we can see
the different default flags passed for both the 32bit compile and the 64bit
-m32 compile?
>From gcc-bugs-return-577029-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 08:16:50 2017
Return-Path: <gcc-bugs-return-577029-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 112760 invoked by alias); 2 Oct 2017 08: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 111669 invoked by uid 48); 2 Oct 2017 08:16:45 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libgomp/82391] New: [openacc] acc_on_device not folded at -O0
Date: Mon, 02 Oct 2017 08:16:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libgomp
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 cc target_milestone
Message-ID: <bug-82391-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00089.txt.bz2
Content-length: 923

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82391

            Bug ID: 82391
           Summary: [openacc] acc_on_device not folded at -O0
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          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: ---

The openacc spec states: "If the acc_on_device routine has a compile-time
constant argument, it evaluates at compile time to a constant."

This is not the case at -O0. 

At f.i. -O2, the folding is done by gimple_fold_builtin_acc_on_device. This
folds the builtin for all arguments, not just constant. Further
optimizations/folding propagate the constant argument to a situation where the
the acc_on_device routine is reduced to a compile time constant.
>From gcc-bugs-return-577030-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 08:20:19 2017
Return-Path: <gcc-bugs-return-577030-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 69929 invoked by alias); 2 Oct 2017 08: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 51051 invoked by uid 48); 2 Oct 2017 08:18:25 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/82368] [8 regression] with r253275 several new test cases in libbacktrace fail
Date: Mon, 02 Oct 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: 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: 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-82368-4-vgkpJouWmp@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82368-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82368-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00090.txt.bz2
Content-length: 293

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82368

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |8.0
>From gcc-bugs-return-577031-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 08:20:24 2017
Return-Path: <gcc-bugs-return-577031-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 84697 invoked by alias); 2 Oct 2017 08:20: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 84453 invoked by uid 48); 2 Oct 2017 08:20:19 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/82387] [8 Regression] wrong code at -O1 and -Os on x86_64-linux-gnu in 64-bit mode
Date: Mon, 02 Oct 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: rtl-optimization
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc target_milestone short_desc everconfirmed
Message-ID: <bug-82387-4-b3IufyO5Gy@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82387-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82387-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00091.txt.bz2
Content-length: 1043

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82387

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-10-02
                 CC|                            |law at gcc dot gnu.org,
                   |                            |marxin at gcc dot gnu.org
   Target Milestone|---                         |8.0
            Summary|wrong code at -O1 and -Os   |[8 Regression] wrong code
                   |on x86_64-linux-gnu in      |at -O1 and -Os on
                   |64-bit mode                 |x86_64-linux-gnu in 64-bit
                   |                            |mode
     Ever confirmed|0                           |1

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, started with r253305.
>From gcc-bugs-return-577032-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 08:23:15 2017
Return-Path: <gcc-bugs-return-577032-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 87591 invoked by alias); 2 Oct 2017 08: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 87522 invoked by uid 48); 2 Oct 2017 08:23:10 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82389] [8 Regression] ICE on valid code on x86_64-linux-gnu: Segmentation fault
Date: Mon, 02 Oct 2017 08:23:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status keywords cf_reconfirmed_on cc everconfirmed short_desc target_milestone cf_known_to_fail
Message-ID: <bug-82389-4-DgwLVLRwt3@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82389-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82389-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00092.txt.bz2
Content-length: 1051

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82389

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
           Keywords|                            |ice-on-valid-code
   Last reconfirmed|                            |2017-10-02
                 CC|                            |law at gcc dot gnu.org,
                   |                            |marxin at gcc dot gnu.org
     Ever confirmed|0                           |1
            Summary|ICE on valid code on        |[8 Regression] ICE on valid
                   |x86_64-linux-gnu:           |code on x86_64-linux-gnu:
                   |Segmentation fault          |Segmentation fault
   Target Milestone|---                         |8.0
      Known to fail|                            |8.0

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, started with r253305.
>From gcc-bugs-return-577033-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 08:23:41 2017
Return-Path: <gcc-bugs-return-577033-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 88538 invoked by alias); 2 Oct 2017 08:23: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 88433 invoked by uid 48); 2 Oct 2017 08:23:37 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libgomp/82391] [openacc] acc_on_device not folded at -O0
Date: Mon, 02 Oct 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: libgomp
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: openacc
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: attachments.created
Message-ID: <bug-82391-4-5skI09kE3c@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82391-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82391-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00093.txt.bz2
Content-length: 285

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82391

--- Comment #1 from Tom de Vries <vries at gcc dot gnu.org> ---
Created attachment 42274
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42274&action=edit
Tentative patch

Not tested yet on accelerator build & test setup.
>From gcc-bugs-return-577034-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 08:25:31 2017
Return-Path: <gcc-bugs-return-577034-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 91473 invoked by alias); 2 Oct 2017 08:25: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 91016 invoked by uid 48); 2 Oct 2017 08:25:25 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/82388] [8 Regression] wrong code at -O1 and above on x86_64-linux-gnu in 32-bit mode
Date: Mon, 02 Oct 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: rtl-optimization
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc target_milestone short_desc everconfirmed
Message-ID: <bug-82388-4-bzcN11pPL8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82388-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82388-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00094.txt.bz2
Content-length: 3486

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82388

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-10-02
                 CC|                            |law at gcc dot gnu.org,
                   |                            |marxin at gcc dot gnu.org
   Target Milestone|---                         |8.0
            Summary|wrong code at -O1 and above |[8 Regression] wrong code
                   |on x86_64-linux-gnu in      |at -O1 and above on
                   |32-bit mode                 |x86_64-linux-gnu in 32-bit
                   |                            |mode
     Ever confirmed|0                           |1

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
It's related to PR82387, as:

==12691== Invalid read of size 8
==12691==    at 0x1B70E40: bitmap_bit_in_range_p(simple_bitmap_def const*,
unsigned int, unsigned int) (sbitmap.c:348)
==12691==    by 0x10FBD44: live_bytes_read(ao_ref, ao_ref*, simple_bitmap_def*)
(tree-ssa-dse.c:496)
==12691==    by 0x10FC09D: dse_classify_store(ao_ref*, gimple*, gimple**, bool,
simple_bitmap_def*) (tree-ssa-dse.c:594)
==12691==    by 0x10FC7AC:
dse_dom_walker::dse_optimize_stmt(gimple_stmt_iterator*) (tree-ssa-dse.c:820)
==12691==    by 0x10FC8B2:
dse_dom_walker::before_dom_children(basic_block_def*) (tree-ssa-dse.c:852)
==12691==    by 0x19D8C93: dom_walker::walk(basic_block_def*) (domwalk.c:308)
==12691==    by 0x10FC9FD: (anonymous namespace)::pass_dse::execute(function*)
(tree-ssa-dse.c:906)
==12691==    by 0xE33C6C: execute_one_pass(opt_pass*) (passes.c:2495)
==12691==    by 0xE33FBD: execute_pass_list_1(opt_pass*) (passes.c:2584)
==12691==    by 0xE33FEE: execute_pass_list_1(opt_pass*) (passes.c:2585)
==12691==    by 0xE34046: execute_pass_list(function*, opt_pass*)
(passes.c:2595)
==12691==    by 0xE32136: do_per_function_toporder(void (*)(function*, void*),
void*) (passes.c:1737)
==12691==  Address 0x65794e0 is 8 bytes after a block of size 40 alloc'd
==12691==    at 0x4C2E08F: malloc (in
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==12691==    by 0x1BECD44: xmalloc (xmalloc.c:147)
==12691==    by 0x1B705EC: sbitmap_alloc(unsigned int) (sbitmap.c:50)
==12691==    by 0x990C5A: auto_sbitmap::auto_sbitmap(unsigned int)
(sbitmap.h:270)
==12691==    by 0x10FCC97: dse_dom_walker::dse_dom_walker(cdi_direction)
(tree-ssa-dse.c:661)
==12691==    by 0x10FC9E2: (anonymous namespace)::pass_dse::execute(function*)
(tree-ssa-dse.c:906)
==12691==    by 0xE33C6C: execute_one_pass(opt_pass*) (passes.c:2495)
==12691==    by 0xE33FBD: execute_pass_list_1(opt_pass*) (passes.c:2584)
==12691==    by 0xE33FEE: execute_pass_list_1(opt_pass*) (passes.c:2585)
==12691==    by 0xE34046: execute_pass_list(function*, opt_pass*)
(passes.c:2595)
==12691==    by 0xE32136: do_per_function_toporder(void (*)(function*, void*),
void*) (passes.c:1737)
==12691==    by 0xE34C2F: execute_ipa_pass_list(opt_pass*) (passes.c:2935)
>From gcc-bugs-return-577035-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 08:25:40 2017
Return-Path: <gcc-bugs-return-577035-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 92780 invoked by alias); 2 Oct 2017 08:25:39 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 92495 invoked by uid 48); 2 Oct 2017 08:25:34 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82389] [8 Regression] ICE on valid code on x86_64-linux-gnu: Segmentation fault
Date: Mon, 02 Oct 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: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc assigned_to
Message-ID: <bug-82389-4-jWCXtZrgq6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82389-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82389-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00095.txt.bz2
Content-length: 501

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82389

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |jakub at gcc dot gnu.org

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
There is an overflow in the computation.
>From gcc-bugs-return-577036-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 08:26:22 2017
Return-Path: <gcc-bugs-return-577036-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 103752 invoked by alias); 2 Oct 2017 08:26: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 101174 invoked by uid 48); 2 Oct 2017 08:26:16 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/82379] [7/8 Regression] internal_sigreturn not defined in libasan.so or libubsan.so with -mx32
Date: Mon, 02 Oct 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: sanitizer
X-Bugzilla-Version: 7.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: 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-82379-4-8paMiyvZZ7@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82379-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82379-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00096.txt.bz2
Content-length: 353

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82379

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |x86_64-*-*
   Target Milestone|---                         |7.3
>From gcc-bugs-return-577037-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 08:26:44 2017
Return-Path: <gcc-bugs-return-577037-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 109742 invoked by alias); 2 Oct 2017 08: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 107468 invoked by uid 48); 2 Oct 2017 08:26:37 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82377] [8 Regression] wrong code at -O1 and above on x86_64-linux-gnu
Date: Mon, 02 Oct 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: 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: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords version target_milestone short_desc
Message-ID: <bug-82377-4-n3Cj7vJ4dq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82377-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82377-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00097.txt.bz2
Content-length: 616

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82377

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
            Version|unknown                     |8.0
   Target Milestone|---                         |8.0
            Summary|wrong code at -O1 and above |[8 Regression] wrong code
                   |on x86_64-linux-gnu         |at -O1 and above on
                   |                            |x86_64-linux-gnu
>From gcc-bugs-return-577038-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 08:27:42 2017
Return-Path: <gcc-bugs-return-577038-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 13985 invoked by alias); 2 Oct 2017 08:27: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 7943 invoked by uid 48); 2 Oct 2017 08:27:33 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82385] ICE in extract_constraint_insn, at recog.c:2213
Date: Mon, 02 Oct 2017 08:27:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc everconfirmed cf_known_to_fail
Message-ID: <bug-82385-4-69C0Kq166u@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82385-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82385-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00098.txt.bz2
Content-length: 719

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82385

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-10-02
                 CC|                            |marxin at gcc dot gnu.org
     Ever confirmed|0                           |1
      Known to fail|                            |6.4.0, 7.2.0, 8.0

--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, GCC 6 and 7 also ICE.
>From gcc-bugs-return-577039-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 08:28:55 2017
Return-Path: <gcc-bugs-return-577039-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 30640 invoked by alias); 2 Oct 2017 08:28: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 30604 invoked by uid 48); 2 Oct 2017 08:28:51 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82374] #pragma GCC optimize is not applied to openmp-generated functions
Date: Mon, 02 Oct 2017 08:28:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: missed-optimization, 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: keywords cc
Message-ID: <bug-82374-4-PbreYOQTsp@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82374-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82374-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00099.txt.bz2
Content-length: 688

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82374

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
                 CC|                            |jakub at gcc dot gnu.org,
                   |                            |rguenth at gcc dot gnu.org

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
I think it's actually wrong-code (and I suppose target attributes are not
applied either).  The outlining has to copy all attributes of the function we
outline from.
>From gcc-bugs-return-577040-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 08:29:45 2017
Return-Path: <gcc-bugs-return-577040-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 31644 invoked by alias); 2 Oct 2017 08:29: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 31556 invoked by uid 48); 2 Oct 2017 08:29:41 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82382] ICE for template auto parameter specialized for function pointer with variadic arguments
Date: Mon, 02 Oct 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: 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-82382-4-0Mfazdgo2l@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82382-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82382-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00100.txt.bz2
Content-length: 724

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82382

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-10-02
                 CC|                            |jason at gcc dot gnu.org,
                   |                            |marxin at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, we accepted the code in 7.1.0 if I'm correct.
On trunk, started to ICE since r249320.
>From gcc-bugs-return-577042-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 08:31:28 2017
Return-Path: <gcc-bugs-return-577042-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 36815 invoked by alias); 2 Oct 2017 08:31:28 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 36548 invoked by uid 48); 2 Oct 2017 08:31:24 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82369] "optimizes" indexed addressing back into two pointer increments
Date: Mon, 02 Oct 2017 08:31:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc component
Message-ID: <bug-82369-4-AtDmROCq87@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82369-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82369-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00102.txt.bz2
Content-length: 480

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82369

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |amker at gcc dot gnu.org
          Component|target                      |tree-optimization

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Maybe sth for Bin to look at.
>From gcc-bugs-return-577041-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 08:31:10 2017
Return-Path: <gcc-bugs-return-577041-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 35200 invoked by alias); 2 Oct 2017 08:31:10 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 35123 invoked by uid 48); 2 Oct 2017 08:31:06 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/82327] [7 Regression] ICE in equal_mem_array_ref_p, at tree-ssa-scopedtables.c:429 (i686-linux-gnu)
Date: Mon, 02 Oct 2017 08:31:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: other
X-Bugzilla-Version: 7.2.1
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: blocker
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82327-4-NXT0wCNMBB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82327-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82327-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00101.txt.bz2
Content-length: 157

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82327

--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
So can you provide -v output then?
>From gcc-bugs-return-577043-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 08:34:09 2017
Return-Path: <gcc-bugs-return-577043-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 98477 invoked by alias); 2 Oct 2017 08:34:09 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 94962 invoked by uid 48); 2 Oct 2017 08:33:59 -0000
From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82392] New: Allign arrays for faster execution
Date: Mon, 02 Oct 2017 08:34: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: enhancement
X-Bugzilla-Who: tkoenig at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-82392-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00103.txt.bz2
Content-length: 577

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82392

            Bug ID: 82392
           Summary: Allign arrays for faster execution
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: tkoenig at gcc dot gnu.org
  Target Milestone: ---

As shown in PR82362, the alignment of arrays can have
a significant effect on execution speed. Using alloca with
aligment for -fstack-arrays could be a win.
>From gcc-bugs-return-577044-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 08:34:41 2017
Return-Path: <gcc-bugs-return-577044-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 106163 invoked by alias); 2 Oct 2017 08:34: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 104880 invoked by uid 48); 2 Oct 2017 08:34:35 -0000
From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82362] [8 Regression] SPEC CPU2006 436.cactusADM ~7% performance deviation with trunk@251713
Date: Mon, 02 Oct 2017 08:34:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: tkoenig at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82362-4-H4hUGcH0B6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82362-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82362-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00104.txt.bz2
Content-length: 154

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82362

--- Comment #3 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
The Fortran part is now PR82392.
>From gcc-bugs-return-577046-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 08:39:52 2017
Return-Path: <gcc-bugs-return-577046-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 14638 invoked by alias); 2 Oct 2017 08: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 14553 invoked by uid 48); 2 Oct 2017 08:39:47 -0000
From: "jb at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/25829] [F03] Asynchronous IO support
Date: Mon, 02 Oct 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: fortran
X-Bugzilla-Version: 4.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: jb at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: koenigni at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-25829-4-1smYWOVQXz@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-25829-4@http.gcc.gnu.org/bugzilla/>
References: <bug-25829-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00106.txt.bz2
Content-length: 1931

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25829

--- Comment #26 from Janne Blomqvist <jb at gcc dot gnu.org> ---
I though I wrote somewhere why I gave up on this, after thinking a lot about
the problem in general. However, I can't find my writeup now, so I'll add a
short version here so that others who are interested in this problem may
benefit.

So, to begin with, non-blocking socket I/O is widely used on Linux and works
well (select(), epoll() etc.). However, here we're talking about file IO, not
sockets. For file IO, the non-blocking socket programming model doesn't work;
files are always considered "fast" devices and thus always return ready if you
try to poll them. Thus, asynchronous I/O. The choices are roughly:

1) Linux native AIO: syscalls like io_submit() etc. This however works only on
files opened with O_DIRECT, and all I/O must be 512-byte aligned. So clearly
this disqualifies this solution for something general purpose like Fortran AIO.

2) POSIX AIO (aio_read() etc.). This, in principle, could work. Except for 1)
It uses signals for reporting completions, which is horrible. Also, some may
consider it bad form if libgfortran uses (limited) signal numbers for its
internal use, preventing applications from using them.  2) On Linux, glibc
implements POSIX AIO using a userspace thread pool, with the further
restriction that only a single outstanding I/O per file descriptor is possible
(which may or may not matter for Fortran AIO). 

3) Do it yourself with a thread pool. Similar to POSIX AIO on Linux/glibc,
except you can use something more sane than signals for signaling completion
(e.g. pipes or a pure userspace queue).

See also e.g. http://blog.libtorrent.org/2012/10/asynchronous-disk-io/


So, the only solution that has the potential to work well and is portable is
#3. It's a fair amount of work, though, and in the end I wasn't convinced it
was worth the effort.
>From gcc-bugs-return-577045-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 08:39:28 2017
Return-Path: <gcc-bugs-return-577045-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 13669 invoked by alias); 2 Oct 2017 08:39:28 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 13587 invoked by uid 48); 2 Oct 2017 08:39:24 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82381] internal compiler error: qsort checking failed
Date: Mon, 02 Oct 2017 08:39:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc assigned_to everconfirmed
Message-ID: <bug-82381-4-WFNsPEYgwc@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82381-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82381-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00105.txt.bz2
Content-length: 775

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82381

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-10-02
                 CC|                            |marxin at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |marxin at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, started with added qsort checking in r253295. I'll fix that.
>From gcc-bugs-return-577047-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 08:41:29 2017
Return-Path: <gcc-bugs-return-577047-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 16313 invoked by alias); 2 Oct 2017 08:41:29 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 16211 invoked by uid 48); 2 Oct 2017 08:41:19 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82250] Fortran OpenACC acc_on_device early folding
Date: Mon, 02 Oct 2017 08:41:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: 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: cc
Message-ID: <bug-82250-4-Nd4x2TXH26@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82250-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82250-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00107.txt.bz2
Content-length: 1595

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82250

Tom de Vries <vries at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |vries at gcc dot gnu.org

--- Comment #1 from Tom de Vries <vries at gcc dot gnu.org> ---
In libgomp/openacc.f90, we find:
....
module openacc_internal
  use openacc_kinds
  implicit none

  interface
    function acc_on_device_h (d)
      import
      integer (acc_device_kind) d
      logical acc_on_device_h
    end function
  end interface

  interface
    function acc_on_device_l (d) &
        bind (C, name = "acc_on_device")
      use iso_c_binding, only: c_int
      integer (c_int) :: acc_on_device_l
      integer (c_int), value :: d
    end function
  end interface

end module

module openacc
  use openacc_kinds
  use openacc_internal
  implicit none

  public :: acc_on_device

  interface acc_on_device
    procedure :: acc_on_device_h
  end interface

end module

function acc_on_device_h (d)
  use openacc_internal, only: acc_on_device_l
  use openacc_kinds
  integer (acc_device_kind) d
  logical acc_on_device_h
  if (acc_on_device_l (d) .eq. 1) then
    acc_on_device_h = .TRUE.
  else
    acc_on_device_h = .FALSE.
  end if
end function
...

AFAICT, a fortran test-case with an acc_on_device function call is translated
to an acc_on_device_h function call at gimple level. This is treated by the
rest of the compiler as a normal function call, there's no connection to a
builtin.
>From gcc-bugs-return-577048-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 08:41:35 2017
Return-Path: <gcc-bugs-return-577048-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 16885 invoked by alias); 2 Oct 2017 08:41:35 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 16312 invoked by uid 48); 2 Oct 2017 08:41:29 -0000
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/82384] [8 Regression] s-taprop.adb failed to compile for x32
Date: Mon, 02 Oct 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: ada
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hjl.tools at gmail dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82384-4-wzL4XFu16s@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82384-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82384-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00108.txt.bz2
Content-length: 587

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82384

--- Comment #4 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Pierre-Marie de Rodat from comment #1)
> Created attachment 42273 [details]
> Tentative untested fix
> 
> Hello,
> 
> Thank you for reporting this. Could you please check that the attached

I am testing it now.

> untested patch fixes the issue you are reporting? (or tell me how to
> reproduce on my x86_64-linux box :-)) Thank you in advance!

You can install x32 run-time libraries on Ubuntu and configure GCC with

--with-multilib-list=m32,m64,mx32
>From gcc-bugs-return-577049-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 08:43:31 2017
Return-Path: <gcc-bugs-return-577049-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 19176 invoked by alias); 2 Oct 2017 08:43:31 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 19063 invoked by uid 48); 2 Oct 2017 08:43:26 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82389] [8 Regression] ICE on valid code on x86_64-linux-gnu: Segmentation fault
Date: Mon, 02 Oct 2017 08:43:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82389-4-xE6BrZ2tk2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82389-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82389-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00109.txt.bz2
Content-length: 1160

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82389

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
So the fix is very easy:
--- gcc/tree-ssa-dse.c.jj       2017-09-29 23:05:40.000000000 +0200
+++ gcc/tree-ssa-dse.c  2017-10-02 10:40:21.962488571 +0200
@@ -577,10 +577,10 @@ dse_classify_store (ao_ref *ref, gimple
          /* If the statement is a use the store is not dead.  */
          else if (ref_maybe_used_by_stmt_p (use_stmt, ref))
            {
-             /* Handle common cases where we can easily build a ao_ref
+             /* Handle common cases where we can easily build an ao_ref
                 structure for USE_STMT and in doing so we find that the
                 references hit non-live bytes and thus can be ignored.  */
-             if (live_bytes && (!gimple_vdef (use_stmt) || !temp))
+             if (byte_tracking_enabled && (!gimple_vdef (use_stmt) || !temp))
                {
                  if (is_gimple_assign (use_stmt))
                    {
But I want to also think about overflows in the case where ref has small size
(otherwise byte_tracking_enabled is false), but use_ref has huge size.
>From gcc-bugs-return-577050-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 08:43:47 2017
Return-Path: <gcc-bugs-return-577050-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 19968 invoked by alias); 2 Oct 2017 08:43: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 19660 invoked by uid 48); 2 Oct 2017 08:43:38 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82363] [8 Regression] wrong code at -O1, -O2 and -O3 on x86_64-linux-gnu
Date: Mon, 02 Oct 2017 08:43:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-82363-4-FElHvtYbKx@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82363-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82363-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00110.txt.bz2
Content-length: 662

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82363

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-10-02
                 CC|                            |jamborm at gcc dot gnu.org,
                   |                            |marxin at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, started with r249154.
>From gcc-bugs-return-577052-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 08:44:13 2017
Return-Path: <gcc-bugs-return-577052-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 21194 invoked by alias); 2 Oct 2017 08:44: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 20770 invoked by uid 48); 2 Oct 2017 08:44:01 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/82387] [8 Regression] wrong code at -O1 and -Os on x86_64-linux-gnu in 64-bit mode
Date: Mon, 02 Oct 2017 08:44:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82387-4-wKuWUqe23A@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82387-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82387-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00112.txt.bz2
Content-length: 186

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82387

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
*** Bug 82377 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-577051-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 08:44:05 2017
Return-Path: <gcc-bugs-return-577051-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 20826 invoked by alias); 2 Oct 2017 08:44:05 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 20721 invoked by uid 48); 2 Oct 2017 08:44:01 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82377] [8 Regression] wrong code at -O1 and above on x86_64-linux-gnu
Date: Mon, 02 Oct 2017 08:44:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: 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: 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 cc resolution
Message-ID: <bug-82377-4-IemnCrlSMa@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82377-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82377-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00111.txt.bz2
Content-length: 572

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82377

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |marxin at gcc dot gnu.org
         Resolution|---                         |DUPLICATE

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Dup.

*** This bug has been marked as a duplicate of bug 82387 ***
>From gcc-bugs-return-577053-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 08:46:10 2017
Return-Path: <gcc-bugs-return-577053-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 79022 invoked by alias); 2 Oct 2017 08: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 77011 invoked by uid 48); 2 Oct 2017 08:46:02 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82381] [8 Regression] internal compiler error: qsort checking failed
Date: Mon, 02 Oct 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: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-checking
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: 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 cf_reconfirmed_on cc assigned_to target_milestone short_desc
Message-ID: <bug-82381-4-o7Y2USWwcS@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82381-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82381-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00113.txt.bz2
Content-length: 3488

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82381

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|ice-on-valid-code           |ice-checking
   Last reconfirmed|2017-10-02 00:00:00         |
                 CC|                            |amonakov at gcc dot gnu.org,
                   |                            |jakub at gcc dot gnu.org,
                   |                            |kugan at gcc dot gnu.org
           Assignee|marxin at gcc dot gnu.org          |unassigned at gcc dot gnu.org
   Target Milestone|---                         |8.0
            Summary|internal compiler error:    |[8 Regression] internal
                   |qsort checking failed       |compiler error: qsort
                   |                            |checking failed

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Probably simply

2017-09-29  Alexander Monakov  <amonakov@ispras.ru>

        * genmodes.c (calc_wider_mode): Suppress qsort macro.
        * system.h [CHECKING_P] (qsort): Redirect to qsort_chk.
        (qsort_chk): Declare.
        * vec.c [CHECKING_P] (qsort_chk_error): New static function.
        (qsort_chk): New function.

we now check validity of qsort compare functions.

#2  0x0000000001dc91d2 in qsort_chk (base=0x2c2e438, n=4, size=8, cmp=
    0x14074c6 <sort_by_operand_rank(void const*, void const*)>)
    at /tmp/trunk2/gcc/vec.c:274
274                 return ERR3 (i, i1, j);
(gdb) l
269           /* Verify that elements within this span compare less than
270              elements beyond the span.  */
271           for (i = i1; i < i2; i++)
272             for (j = i2; j < i2 + lim2; j++)
273               if (CMP (i, j) >= 0)
274                 return ERR3 (i, i1, j);
275               else if (CMP (j, i) <= 0)
276                 return ERR2 (i, j);

I'm quite sure that

      /* As SSA_NAME_VERSION is assigned pretty randomly, because we reuse
         versions of removed SSA_NAMEs, so if possible, prefer to sort
         based on basic block and gimple_uid of the SSA_NAME_DEF_STMT.
         See PR60418.  */
      if (!SSA_NAME_IS_DEFAULT_DEF (oea->op)
          && !SSA_NAME_IS_DEFAULT_DEF (oeb->op)
          && !oea->stmt_to_insert
          && !oeb->stmt_to_insert
          && SSA_NAME_VERSION (oeb->op) != SSA_NAME_VERSION (oea->op))
        {
          gimple *stmta = SSA_NAME_DEF_STMT (oea->op);
          gimple *stmtb = SSA_NAME_DEF_STMT (oeb->op);
          basic_block bba = gimple_bb (stmta);
          basic_block bbb = gimple_bb (stmtb);
          if (bbb != bba)
            {
              if (bb_rank[bbb->index] != bb_rank[bba->index])
                return bb_rank[bbb->index] - bb_rank[bba->index];
            }
          else
            {
              bool da = reassoc_stmt_dominates_stmt_p (stmta, stmtb);
              bool db = reassoc_stmt_dominates_stmt_p (stmtb, stmta);
              if (da != db)
                return da ? 1 : -1;
            }
        }

breaks transitivity because of the ->stmt_to_insert check.  Here we have
[1] !stmt_to_insert [2] !stmt_to_insert [3] stmt_to_insert

This kind of ordering isn't going to work :/

First introduced by Jakub but then broke with the stmt_to_insert addition
by Kugan...

I guess we need some approximate insert location here.
>From gcc-bugs-return-577055-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 08:48:44 2017
Return-Path: <gcc-bugs-return-577055-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 100356 invoked by alias); 2 Oct 2017 08:48:44 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 99102 invoked by uid 48); 2 Oct 2017 08:48:39 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82386] [8 Regression] internal compiler error: Segmentation fault on 32-bit powerpc BE targets
Date: Mon, 02 Oct 2017 08:48:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: target_milestone
Message-ID: <bug-82386-4-rUJJx840OP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82386-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82386-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00115.txt.bz2
Content-length: 293

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82386

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |8.0
>From gcc-bugs-return-577054-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 08:48:30 2017
Return-Path: <gcc-bugs-return-577054-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 90563 invoked by alias); 2 Oct 2017 08:48: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 75136 invoked by uid 48); 2 Oct 2017 08:48:05 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82382] [7/8 Regression] ICE for template auto parameter specialized for function pointer with variadic arguments
Date: Mon, 02 Oct 2017 08:48:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 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: 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-82382-4-mpVix24sai@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82382-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82382-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00114.txt.bz2
Content-length: 965

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82382

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
           Priority|P3                          |P2
      Known to work|                            |7.1.0
   Target Milestone|---                         |7.3
            Summary|ICE for template auto       |[7/8 Regression] ICE for
                   |parameter specialized for   |template auto parameter
                   |function pointer with       |specialized for function
                   |variadic arguments          |pointer with variadic
                   |                            |arguments
      Known to fail|7.1.0                       |

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
clang++ seems to reject it.
>From gcc-bugs-return-577056-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 08:50:28 2017
Return-Path: <gcc-bugs-return-577056-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 2052 invoked by alias); 2 Oct 2017 08:50: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 977 invoked by uid 48); 2 Oct 2017 08:50:24 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82358] [8 regression] i386/stack-check-11.c fail
Date: Mon, 02 Oct 2017 08:50:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-82358-4-JRKewPm6pp@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82358-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82358-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00116.txt.bz2
Content-length: 1552

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82358

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-10-02
                 CC|                            |law at gcc dot gnu.org,
                   |                            |marxin at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed.

Before:
frob:
.LFB0:
        .cfi_startproc
        subq    $13768, %rsp
        .cfi_def_cfa_offset 13776
        orq     $0, 9672(%rsp)
        orq     $0, 5576(%rsp)
        orq     $0, 1480(%rsp)
        leaq    6880(%rsp), %rdi
        movq    %rsp, %rsi
        call    arf
        addq    $13768, %rsp
        .cfi_def_cfa_offset 8
        ret
        .cfi_endproc

After:
frob:
.LFB0:
        .cfi_startproc
        subq    $4096, %rsp
        .cfi_def_cfa_offset 4104
        orq     $0, (%rsp)
        subq    $4096, %rsp
        .cfi_def_cfa_offset 8200
        orq     $0, (%rsp)
        subq    $4096, %rsp
        .cfi_def_cfa_offset 12296
        orq     $0, (%rsp)
        subq    $1480, %rsp
        .cfi_def_cfa_offset 13776
        leaq    6880(%rsp), %rdi
        movq    %rsp, %rsi
        call    arf
        addq    $13768, %rsp
        .cfi_def_cfa_offset 8
        ret
        .cfi_endproc
>From gcc-bugs-return-577057-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 08:51:45 2017
Return-Path: <gcc-bugs-return-577057-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 20009 invoked by alias); 2 Oct 2017 08:51: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 18824 invoked by uid 48); 2 Oct 2017 08:51:40 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/82390] gcc.dg/torture tests run with same optimization level
Date: Mon, 02 Oct 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: testsuite
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: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82390-4-mGPjoCuRFk@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82390-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82390-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00117.txt.bz2
Content-length: 301

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82390

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
dg-torture testcases should use dg-additional-options and never specify the
optimization level.

Either changing them to do that or moving out-of torture seems like a good fix.
>From gcc-bugs-return-577058-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 08:57:31 2017
Return-Path: <gcc-bugs-return-577058-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 46530 invoked by alias); 2 Oct 2017 08:57:31 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 46335 invoked by uid 48); 2 Oct 2017 08:57:26 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/71751] [8 Regression] Segmentation fault in ssa_default_def
Date: Mon, 02 Oct 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: tree-optimization
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: 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 cf_known_to_work short_desc
Message-ID: <bug-71751-4-4ESJbftBD6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-71751-4@http.gcc.gnu.org/bugzilla/>
References: <bug-71751-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00118.txt.bz2
Content-length: 735

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71751

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rguenth at gcc dot gnu.org
      Known to work|                            |8.0
            Summary|[7/8 Regression]            |[8 Regression] Segmentation
                   |Segmentation fault in       |fault in ssa_default_def
                   |ssa_default_def             |

--- Comment #4 from Martin Liška <marxin at gcc dot gnu.org> ---
Fixed in r253000. Should I close this PR as I guess Richi is not planning to
backport that?
>From gcc-bugs-return-577059-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 09:02:28 2017
Return-Path: <gcc-bugs-return-577059-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 56403 invoked by alias); 2 Oct 2017 09:02:28 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 56301 invoked by uid 48); 2 Oct 2017 09:02:24 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81373] [7 Regression] Graphite ICE in ssa_default_def at gcc/tree-dfa.c:305
Date: Mon, 02 Oct 2017 09:02:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-81373-4-5h2uCJVHt8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81373-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81373-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00119.txt.bz2
Content-length: 448

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81373

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ktkachov at gcc dot gnu.org

--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
*** Bug 71751 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-577060-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 09:02:28 2017
Return-Path: <gcc-bugs-return-577060-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 56420 invoked by alias); 2 Oct 2017 09:02:28 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 56271 invoked by uid 48); 2 Oct 2017 09:02:24 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/71751] [8 Regression] Segmentation fault in ssa_default_def
Date: Mon, 02 Oct 2017 09:02:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: DUPLICATE
X-Bugzilla-Priority: 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-71751-4-fOqW3Y3sj8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-71751-4@http.gcc.gnu.org/bugzilla/>
References: <bug-71751-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00120.txt.bz2
Content-length: 504

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71751

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
Duplicate then.

*** This bug has been marked as a duplicate of bug 81373 ***
>From gcc-bugs-return-577061-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 09:03:33 2017
Return-Path: <gcc-bugs-return-577061-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 58920 invoked by alias); 2 Oct 2017 09:03: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 58585 invoked by uid 48); 2 Oct 2017 09:03:27 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/82302] LTO producing bad code
Date: Mon, 02 Oct 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: lto
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: lto, wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: 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-82302-4-me43V1Ug6b@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82302-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82302-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00121.txt.bz2
Content-length: 1020

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82302

--- Comment #14 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to krzysio.kurek from comment #12)
> UBSAN errors regarding integer overflow is by design, and is a part of
> libnoise.
> I can't find any documentation or help on what invalid vptr errors are
> though.

So it's quite clear what's happening. You can't call member functions before an
object is constructed:

TemperateForestBiome::TemperateForestBiome(int seed)
:   Biome  (getNoiseParameters(), 55, 75, seed)
{

}

...

NoiseParameters TemperateForestBiome::getNoiseParameters()
{
    NoiseParameters heightParams;
    heightParams.octaves       = 5;
    heightParams.amplitude     = 100;
    heightParams.smoothness    = 195;
    heightParams.heightOffset  = -30;
    heightParams.roughness     = 0.52;

    return heightParams;
}

Please take a look here:
https://stackoverflow.com/questions/3899555/is-there-any-problem-of-calling-functions-in-the-initialization-list
>From gcc-bugs-return-577062-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 09:04:10 2017
Return-Path: <gcc-bugs-return-577062-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 60172 invoked by alias); 2 Oct 2017 09:04:10 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 59986 invoked by uid 55); 2 Oct 2017 09:04:05 -0000
From: "paolo at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/59991] Recursive lambda capture in C++1y constexpr function template causes internal compiler error
Date: Mon, 02 Oct 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: 4.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-59991-4-9ZSd2kNCLv@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-59991-4@http.gcc.gnu.org/bugzilla/>
References: <bug-59991-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00122.txt.bz2
Content-length: 508

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59991

--- Comment #3 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Mon Oct  2 09:03:32 2017
New Revision: 253339

URL: https://gcc.gnu.org/viewcvs?rev=253339&root=gcc&view=rev
Log:
2017-10-02  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/59991
        * g++.dg/cpp0x/lambda/lambda-ice23.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ice23.C
Modified:
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-577063-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 09:05:54 2017
Return-Path: <gcc-bugs-return-577063-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 64151 invoked by alias); 2 Oct 2017 09:05: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 63912 invoked by uid 48); 2 Oct 2017 09:05:50 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/59991] Recursive lambda capture in C++1y constexpr function template causes internal compiler error
Date: Mon, 02 Oct 2017 09:05:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle 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: bug_status blocked resolution
Message-ID: <bug-59991-4-UKsF4WA6Hb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-59991-4@http.gcc.gnu.org/bugzilla/>
References: <bug-59991-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00123.txt.bz2
Content-length: 799

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59991

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
             Blocks|                            |54367
         Resolution|---                         |DUPLICATE

--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Thanks Marek. The testcase looks different enough from what I added at the time
that I decided to add it before resolving the bug.

*** This bug has been marked as a duplicate of bug 61088 ***


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54367
[Bug 54367] [meta-bug] lambda expressions
>From gcc-bugs-return-577065-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 09:05:55 2017
Return-Path: <gcc-bugs-return-577065-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 64289 invoked by alias); 2 Oct 2017 09:05: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 63949 invoked by uid 48); 2 Oct 2017 09:05:51 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/61088] segfault with array of lambdas initialized with initializer list that contains a lambda that captures the array
Date: Mon, 02 Oct 2017 09:05:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.8.2
X-Bugzilla-Keywords: ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-61088-4-8t9kmAtWGT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-61088-4@http.gcc.gnu.org/bugzilla/>
References: <bug-61088-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00124.txt.bz2
Content-length: 453

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61088

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pkeir at outlook dot com

--- Comment #7 from Paolo Carlini <paolo.carlini at oracle dot com> ---
*** Bug 59991 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-577064-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 09:05:55 2017
Return-Path: <gcc-bugs-return-577064-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 64228 invoked by alias); 2 Oct 2017 09:05: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 63963 invoked by uid 48); 2 Oct 2017 09:05:51 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/54367] [meta-bug] lambda expressions
Date: Mon, 02 Oct 2017 09:05:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: dep_changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.8.0
X-Bugzilla-Keywords: meta-bug
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-54367-4-uYW33vP8V6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-54367-4@http.gcc.gnu.org/bugzilla/>
References: <bug-54367-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00125.txt.bz2
Content-length: 524

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54367
Bug 54367 depends on bug 59991, which changed state.

Bug 59991 Summary: Recursive lambda capture in C++1y constexpr function template causes internal compiler error
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59991

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE
>From gcc-bugs-return-577066-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 09:06:10 2017
Return-Path: <gcc-bugs-return-577066-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 65127 invoked by alias); 2 Oct 2017 09:06:10 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 64849 invoked by uid 48); 2 Oct 2017 09:06:04 -0000
From: "rearnsha at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82175] [8 Regression] -march=native fails on armv7 big/little system armv7l-unknown-linux-gnueabihf with gcc 8.0.0
Date: Mon, 02 Oct 2017 09:06:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rearnsha at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rearnsha at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82175-4-wbmIc7qxtc@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82175-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82175-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00126.txt.bz2
Content-length: 1716

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82175

--- Comment #7 from Richard Earnshaw <rearnsha at gcc dot gnu.org> ---
(In reply to Andrew Roberts from comment #6)
> Thanks Richard, this is now ok, tested on armv7 and aarch64. 
> 
> However I do see differences in what is selected by march=native on arm
> between 7.2.0 and 8.0.0.20171001. Is this as expected? Or is it a work in
> progress? There seem to be significant changes...
> 
> On aarch64: The only difference is: (< is gcc-7.2.0, > is gcc-8)
> 
> <   -mtls-size=                                 [default]
> ---
> >   -mtls-size=                                 24
> 

This issue has nothing to do with AArch64.  that must be something else.

> On armv7: (tested on RPI, and ODROID XU4)
> RPI:
> <   -march=                     		armv8-a+crc
> ---
> >   -march=                     		armv8-a+crc+simd (RPI)

To be expected.  The compiler now includes the FP and SIMD capabilities in the
architecture string (instead of in -mfpu).

> 
> ODROID XU4:
> <   -march=                                     armv7ve
> ---
> >   -march=                                     armv7ve+vfpv3-d16

Likewise.

> 
> Differences ommon to both RPI and ODROID XU4:
> >   -mbe32                      		[enabled]
> >   -mbe8                       		[disabled]
> 
> <   -mcpu=                      		[default]
> <   -mfix-cortex-m3-ldrd        		[enabled]
> ---
> >   -mcpu=                      		
> >   -mfix-cortex-m3-ldrd        		[disabled]
> 
> <   -mrestrict-it               		[enabled]
> ---
> >   -mrestrict-it               		[disabled]
[...]

How did you generate this list?
>From gcc-bugs-return-577067-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 09:09:58 2017
Return-Path: <gcc-bugs-return-577067-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 82635 invoked by alias); 2 Oct 2017 09:09: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 82582 invoked by uid 48); 2 Oct 2017 09:09:54 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/82302] LTO producing bad code
Date: Mon, 02 Oct 2017 09:09:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: lto
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: lto, wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: 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-82302-4-8I7ODs9Opo@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82302-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82302-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00127.txt.bz2
Content-length: 185

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82302

--- Comment #15 from Martin Liška <marxin at gcc dot gnu.org> ---
I can still see the hang with https://pastebin.com/rL4yHUC2
>From gcc-bugs-return-577068-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 09:13:17 2017
Return-Path: <gcc-bugs-return-577068-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 90085 invoked by alias); 2 Oct 2017 09: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 90041 invoked by uid 48); 2 Oct 2017 09:13:13 -0000
From: "alexander.nesterovskiy at intel dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82362] [8 Regression] SPEC CPU2006 436.cactusADM ~7% performance deviation with trunk@251713
Date: Mon, 02 Oct 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: fortran
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: alexander.nesterovskiy at intel dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82362-4-GvsOaNh9sV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82362-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82362-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00128.txt.bz2
Content-length: 389

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82362

--- Comment #4 from Alexander Nesterovskiy <alexander.nesterovskiy at intel dot com> ---
(In reply to Richard Biener from comment #2)
> I suppose you swapped the revs here
Yep, sorry. It's supposed to be:
r251711: 99,5%   99,6%   99,8%   100,0%  100,3%  100,6%  100,6%
r251713: 92,8%   92,9%   93,0%   106,7%  107,0%  107,0%  107,2%
>From gcc-bugs-return-577069-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 09:19:31 2017
Return-Path: <gcc-bugs-return-577069-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 4940 invoked by alias); 2 Oct 2017 09:19: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 1722 invoked by uid 48); 2 Oct 2017 09:19:25 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/82302] LTO producing bad code
Date: Mon, 02 Oct 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: lto
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: lto, wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: INVALID
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-82302-4-VCkSZV7vFu@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82302-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82302-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00129.txt.bz2
Content-length: 3305

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82302

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |INVALID

--- Comment #16 from Martin Liška <marxin at gcc dot gnu.org> ---
But this is problem:

diff --git a/Source/World/Chunk/Chunk.cpp b/Source/World/Chunk/Chunk.cpp
index 297d3d7..9b75347 100644
--- a/Source/World/Chunk/Chunk.cpp
+++ b/Source/World/Chunk/Chunk.cpp
@@ -43,6 +43,7 @@ void Chunk::setBlock(int x, int y, int z, ChunkBlock block)
         while (!highBlock.getData().isOpaque)
         {
             highBlock = getBlock(x, y--, z);
+         assert (highBlock != 0);
         }
     }
     else if (y > m_highestBlocks.get(x, z))

Triggers even with -O0 and without LTO:

#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#1  0x0000155553909691 in __GI_abort () at abort.c:79
#2  0x00001555539006da in __assert_fail_base (fmt=0x155553a52e68 "%s%s%s:%u:
%s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x43a00b "highBlock
!= 0", 
    file=file@entry=0x439fb8
"/home/marxin/Programming/MineCraft-One-Week-Challenge/Source/World/Chunk/Chunk.cpp",
line=line@entry=46, 
    function=function@entry=0x43a040 <Chunk::setBlock(int, int, int,
ChunkBlock)::__PRETTY_FUNCTION__> "virtual void Chunk::setBlock(int, int, int,
ChunkBlock)") at assert.c:92
#3  0x0000155553900752 in __GI___assert_fail (assertion=0x43a00b "highBlock !=
0", file=0x439fb8
"/home/marxin/Programming/MineCraft-One-Week-Challenge/Source/World/Chunk/Chunk.cpp",
line=46, 
    function=0x43a040 <Chunk::setBlock(int, int, int,
ChunkBlock)::__PRETTY_FUNCTION__> "virtual void Chunk::setBlock(int, int, int,
ChunkBlock)") at assert.c:101
#4  0x000000000042f68f in Chunk::setBlock (this=0x15553c011900, x=13, y=91,
z=8, block=...) at
/home/marxin/Programming/MineCraft-One-Week-Challenge/Source/World/Chunk/Chunk.cpp:46
#5  0x00000000004273b2 in StructureBuilder::build (this=0x1555459d1a50,
chunk=...) at
/home/marxin/Programming/MineCraft-One-Week-Challenge/Source/World/Generation/Structures/StructureBuilder.cpp:11
#6  0x0000000000426d8b in makeOakTree (chunk=..., rand=..., x=13, y=88, z=8) at
/home/marxin/Programming/MineCraft-One-Week-Challenge/Source/World/Generation/Structures/TreeGenerator.cpp:73
#7  0x00000000004242a5 in LightForest::makeTree (this=0x992be8, rand=...,
chunk=..., x=13, y=88, z=8) at
/home/marxin/Programming/MineCraft-One-Week-Challenge/Source/World/Generation/Biome/LightForest.cpp:25
#8  0x00000000004253dc in ClassicOverWorldGenerator::setBlocks (this=0x992290,
maxHeight=105) at
/home/marxin/Programming/MineCraft-One-Week-Challenge/Source/World/Generation/Terrain/ClassicOverWorldGenerator.cpp:198
#9  0x0000000000424aa3 in ClassicOverWorldGenerator::generateTerrainFor
(this=0x992290, chunk=...) at
/home/marxin/Programming/MineCraft-One-Week-Challenge/Source/World/Generation/Terrain/ClassicOverWorldGenerator.cpp:61

Note that you can't call a function for null argument.
>From gcc-bugs-return-577070-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 09:23:32 2017
Return-Path: <gcc-bugs-return-577070-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 103110 invoked by alias); 2 Oct 2017 09:23: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 103052 invoked by uid 48); 2 Oct 2017 09:23:28 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/67274] Inconsistent `this->` required when calling member function in a lambda capturing `this` through another function
Date: Mon, 02 Oct 2017 09:23:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution target_milestone
Message-ID: <bug-67274-4-PdaKcVLALg@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67274-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67274-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00130.txt.bz2
Content-length: 526

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67274

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |7.0

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Fixed in 7.1.0, we already have testcases.
>From gcc-bugs-return-577071-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 09:32:46 2017
Return-Path: <gcc-bugs-return-577071-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 119694 invoked by alias); 2 Oct 2017 09:32:46 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 119539 invoked by uid 48); 2 Oct 2017 09:32:39 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/67247] ICE on std::forward args&& inside nested lambda function
Date: Mon, 02 Oct 2017 09:32:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 5.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution target_milestone
Message-ID: <bug-67247-4-Y1MbJ7GeL5@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67247-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67247-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00131.txt.bz2
Content-length: 512

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67247

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |5.4

--- Comment #5 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Fixed a while ago for 5.4.0.
>From gcc-bugs-return-577072-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 09:33:38 2017
Return-Path: <gcc-bugs-return-577072-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 121042 invoked by alias); 2 Oct 2017 09:33:37 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 120881 invoked by uid 48); 2 Oct 2017 09:33:26 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/67247] ICE on std::forward args&& inside nested lambda function
Date: Mon, 02 Oct 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: 5.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: blocked
Message-ID: <bug-67247-4-qL3BpY5NIy@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67247-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67247-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00132.txt.bz2
Content-length: 516

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67247

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |54367

--- Comment #6 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Fixed a while ago for 5.4.0.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54367
[Bug 54367] [meta-bug] lambda expressions
>From gcc-bugs-return-577073-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 09:38:30 2017
Return-Path: <gcc-bugs-return-577073-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 44474 invoked by alias); 2 Oct 2017 09:38: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 44328 invoked by uid 48); 2 Oct 2017 09:38:26 -0000
From: "antoshkka at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/23383] builtin array operator new is not marked with malloc attribute
Date: Mon, 02 Oct 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: c++
X-Bugzilla-Version: 4.1.0
X-Bugzilla-Keywords: alias, missed-optimization
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: antoshkka at gmail dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-23383-4-eDkKBbBXKk@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-23383-4@http.gcc.gnu.org/bugzilla/>
References: <bug-23383-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00133.txt.bz2
Content-length: 630

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=23383

--- Comment #26 from Antony Polukhin <antoshkka at gmail dot com> ---
> That said, it would be fine to add support for this
> under a non-standards-mode option of some sort of course.

C++14 allows to merge and remove global allocations [expr.new]:

"An implementation is allowed to omit a call to a replaceable global allocation
function (21.6.2.1, 21.6.2.2).
When it does so, the storage is instead provided by the implementation or
provided by extending the allocation
of another new-expression."


Moreover, clang already does the elisions: https://godbolt.org/g/jPGuk6
>From gcc-bugs-return-577074-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 09:42:14 2017
Return-Path: <gcc-bugs-return-577074-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 51902 invoked by alias); 2 Oct 2017 09: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 51829 invoked by uid 55); 2 Oct 2017 09:42:08 -0000
From: "paolo at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/69977] internal compiler error: Segmentation fault when using generic lambdas
Date: Mon, 02 Oct 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: 5.3.1
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-69977-4-8WdzkHEdBA@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-69977-4@http.gcc.gnu.org/bugzilla/>
References: <bug-69977-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00134.txt.bz2
Content-length: 510

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69977

--- Comment #3 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Mon Oct  2 09:41:36 2017
New Revision: 253340

URL: https://gcc.gnu.org/viewcvs?rev=253340&root=gcc&view=rev
Log:
2017-10-02  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/69977
        * g++.dg/cpp1y/lambda-generic-69977.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1y/lambda-generic-69977.C
Modified:
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-577076-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 09:43:59 2017
Return-Path: <gcc-bugs-return-577076-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 54145 invoked by alias); 2 Oct 2017 09:43: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 53929 invoked by uid 48); 2 Oct 2017 09:43:55 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/54367] [meta-bug] lambda expressions
Date: Mon, 02 Oct 2017 09:43:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: dep_changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.8.0
X-Bugzilla-Keywords: meta-bug
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-54367-4-AHwWIOFRGX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-54367-4@http.gcc.gnu.org/bugzilla/>
References: <bug-54367-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00136.txt.bz2
Content-length: 498

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54367
Bug 54367 depends on bug 69977, which changed state.

Bug 69977 Summary: internal compiler error: Segmentation fault when using generic lambdas
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69977

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
>From gcc-bugs-return-577075-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 09:43:58 2017
Return-Path: <gcc-bugs-return-577075-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 54055 invoked by alias); 2 Oct 2017 09:43: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 53874 invoked by uid 48); 2 Oct 2017 09:43:53 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/69977] internal compiler error: Segmentation fault when using generic lambdas
Date: Mon, 02 Oct 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.3.1
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status blocked resolution target_milestone
Message-ID: <bug-69977-4-3mQQ7E9JJv@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-69977-4@http.gcc.gnu.org/bugzilla/>
References: <bug-69977-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00135.txt.bz2
Content-length: 733

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69977

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
             Blocks|                            |54367
         Resolution|---                         |FIXED
   Target Milestone|---                         |6.4

--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Thanks Jon. Confirmed fixed in 6.4.0. To be safe I added the testcase anyway.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54367
[Bug 54367] [meta-bug] lambda expressions
>From gcc-bugs-return-577077-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 09:45:44 2017
Return-Path: <gcc-bugs-return-577077-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 17204 invoked by alias); 2 Oct 2017 09:45: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 12769 invoked by uid 48); 2 Oct 2017 09:45:39 -0000
From: "koenigni at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/25829] [F03] Asynchronous IO support
Date: Mon, 02 Oct 2017 09:45:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 4.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: koenigni at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: koenigni at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-25829-4-vGjrZjHG0e@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-25829-4@http.gcc.gnu.org/bugzilla/>
References: <bug-25829-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00137.txt.bz2
Content-length: 3410

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25829

--- Comment #27 from Nicolas Koenig <koenigni at gcc dot gnu.org> ---
(In reply to Janne Blomqvist from comment #26)
> I though I wrote somewhere why I gave up on this, after thinking a lot about
> the problem in general. However, I can't find my writeup now, so I'll add a
> short version here so that others who are interested in this problem may
> benefit.
> 
> So, to begin with, non-blocking socket I/O is widely used on Linux and works
> well (select(), epoll() etc.). However, here we're talking about file IO,
> not sockets. For file IO, the non-blocking socket programming model doesn't
> work; files are always considered "fast" devices and thus always return
> ready if you try to poll them. Thus, asynchronous I/O. The choices are
> roughly:
> 
> 1) Linux native AIO: syscalls like io_submit() etc. This however works only
> on files opened with O_DIRECT, and all I/O must be 512-byte aligned. So
> clearly this disqualifies this solution for something general purpose like
> Fortran AIO.
> 
> 2) POSIX AIO (aio_read() etc.). This, in principle, could work. Except for
> 1) It uses signals for reporting completions, which is horrible. Also, some
> may consider it bad form if libgfortran uses (limited) signal numbers for
> its internal use, preventing applications from using them.  2) On Linux,
> glibc implements POSIX AIO using a userspace thread pool, with the further
> restriction that only a single outstanding I/O per file descriptor is
> possible (which may or may not matter for Fortran AIO). 
> 
> 3) Do it yourself with a thread pool. Similar to POSIX AIO on Linux/glibc,
> except you can use something more sane than signals for signaling completion
> (e.g. pipes or a pure userspace queue).
> 
> See also e.g. http://blog.libtorrent.org/2012/10/asynchronous-disk-io/
> 
> 
> So, the only solution that has the potential to work well and is portable is
> #3. It's a fair amount of work, though, and in the end I wasn't convinced it
> was worth the effort.

At the moment I only plan on using the normal pthread-API. My Idea for an
algorythm would be something like this:

=> if a unit is opened with the "asynchronous" flag, a new thread is spun up
for this unit.
=> when a TRANSFER_* funktion is called, the buffer and all the other necessary
information is enqueued in a asynchronous work queue. (see below)
=> the thread is notified that work has been added
=> the thread takes care of the io
=> when the unit is closed pthread_join() is called

I plan to enqueue the pdt->transfer() calls with their respective arguments in
the work queue.

I actually already have a small prototype that implements the principal behind
this in c and it works :)

One of the problems I found up until now with this approach is for example the
following code snippet:

program main
    implicit none
    open (10, file='foo.dat', asynchronous='yes')
    call s()
    close(10)
contains
    subroutine s()
        integer, dimension (3)::i !presumably on the stack
        i = [0, 1]
        write(10,*) i
        !Now the stack frame is dropped and the pointer that previously
        !pointed to the array now points to nowhere, but it is still enqueued
    end subroutine
end program

Do you see any fundamental problems with this approach or its integration with
libgfortran?
>From gcc-bugs-return-577078-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 09:50:30 2017
Return-Path: <gcc-bugs-return-577078-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 63945 invoked by alias); 2 Oct 2017 09: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 55504 invoked by uid 48); 2 Oct 2017 09:50:25 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/60228] ICE using lambda in #pragma omp declare reduction
Date: Mon, 02 Oct 2017 09:50:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords: ice-on-valid-code, openmp
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle 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-60228-4-DxTWnacj0s@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-60228-4@http.gcc.gnu.org/bugzilla/>
References: <bug-60228-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00138.txt.bz2
Content-length: 230

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60228

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Would it make sense to reject the testcase a little more gracefully? Or even
accept is as an extension?
>From gcc-bugs-return-577079-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 10:02:38 2017
Return-Path: <gcc-bugs-return-577079-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 67732 invoked by alias); 2 Oct 2017 10: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 67682 invoked by uid 48); 2 Oct 2017 10:02:32 -0000
From: "andrewm.roberts at sky dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82175] [8 Regression] -march=native fails on armv7 big/little system armv7l-unknown-linux-gnueabihf with gcc 8.0.0
Date: Mon, 02 Oct 2017 10:02:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: andrewm.roberts at sky dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rearnsha at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82175-4-2NPOwVfEvJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82175-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82175-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00139.txt.bz2
Content-length: 2545

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82175

--- Comment #8 from Andrew Roberts <andrewm.roberts at sky dot com> ---
I generated it using:
/usr/local/gcc-7.2.0/bin/gcc -march=native -Q --help=target
and
/usr/local/gcc-8.0.0/bin/gcc -march=native -Q --help=target

on each of the systems. Using:

/usr/local/gcc-8.0.0/bin/gcc -v
Using built-in specs.
COLLECT_GCC=/usr/local/gcc-8.0.0/bin/gcc
COLLECT_LTO_WRAPPER=/usr/local/gcc-8.0.0/libexec/gcc/armv7l-unknown-linux-gnueabihf/8.0.0/lto-wrapper
Target: armv7l-unknown-linux-gnueabihf
Configured with: ../gcc-8.0.0/configure --prefix=/usr/local/gcc-8.0.0
--program-suffix= --disable-werror --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-gnu-unique-object
--enable-linker-build-id --with-linker-hash-style=gnu --enable-plugin
--enable-gnu-indirect-function --enable-lto --with-isl
--enable-languages=c,c++,fortran,lto --disable-libgcj --enable-clocale=gnu
--disable-libstdcxx-pch --enable-install-libiberty --disable-multilib
--disable-libssp --enable-default-pie --enable-default-ssp
--host=armv7l-unknown-linux-gnueabihf --build=armv7l-unknown-linux-gnueabihf
--with-arch=armv7-a --with-float=hard --with-fpu=vfpv3-d16 --disable-bootstrap
Thread model: posix
gcc version 8.0.0 20171001 (experimental) (GCC)

and

/usr/local/gcc-7.2.0/bin/gcc -v
Using built-in specs.
COLLECT_GCC=/usr/local/gcc-7.2.0/bin/gcc
COLLECT_LTO_WRAPPER=/usr/local/gcc-7.2.0/libexec/gcc/armv7l-unknown-linux-gnueabihf/7.2.0/lto-wrapper
Target: armv7l-unknown-linux-gnueabihf
Configured with: ../gcc-7.2.0/configure --prefix=/usr/local/gcc-7.2.0
--program-suffix= --disable-werror --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-gnu-unique-object
--enable-linker-build-id --with-linker-hash-style=gnu --enable-plugin
--enable-gnu-indirect-function --enable-lto --with-isl
--enable-languages=c,c++,fortran,lto --disable-libgcj --enable-clocale=gnu
--disable-libstdcxx-pch --enable-install-libiberty --disable-multilib
--disable-libssp --enable-default-pie --enable-default-ssp
--host=armv7l-unknown-linux-gnueabihf --build=armv7l-unknown-linux-gnueabihf
--with-arch=armv7-a --with-float=hard --with-fpu=vfpv3-d16 --disable-bootstrap
Thread model: posix
gcc version 7.2.0 (GCC)

I've attached the full output from the ODROIDXU4 system.
>From gcc-bugs-return-577080-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 10:05:21 2017
Return-Path: <gcc-bugs-return-577080-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 70728 invoked by alias); 2 Oct 2017 10: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 70665 invoked by uid 48); 2 Oct 2017 10:05:16 -0000
From: "andrewm.roberts at sky dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82175] [8 Regression] -march=native fails on armv7 big/little system armv7l-unknown-linux-gnueabihf with gcc 8.0.0
Date: Mon, 02 Oct 2017 10:05:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: andrewm.roberts at sky dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rearnsha at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-82175-4-pJirpFme0I@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82175-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82175-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00140.txt.bz2
Content-length: 371

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82175

--- Comment #9 from Andrew Roberts <andrewm.roberts at sky dot com> ---
Created attachment 42275
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42275&action=edit
Output of gcc -march=native -Q --help=target for gcc 8.0.0.20171001

Output of gcc -march=native -Q --help=target for gcc 8.0.0.20171001
>From gcc-bugs-return-577081-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 10:06:43 2017
Return-Path: <gcc-bugs-return-577081-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 77467 invoked by alias); 2 Oct 2017 10:06: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 77078 invoked by uid 48); 2 Oct 2017 10:06:39 -0000
From: "andrewm.roberts at sky dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82175] [8 Regression] -march=native fails on armv7 big/little system armv7l-unknown-linux-gnueabihf with gcc 8.0.0
Date: Mon, 02 Oct 2017 10:06:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: andrewm.roberts at sky dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rearnsha at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-82175-4-zLiEapif8y@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82175-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82175-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00141.txt.bz2
Content-length: 384

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82175

--- Comment #10 from Andrew Roberts <andrewm.roberts at sky dot com> ---
Created attachment 42276
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42276&action=edit
Output of gcc -march=native -Q --help=target for gcc 7.2.0

Output of gcc -march=native -Q --help=target for gcc 7.2.0
generated on ODROIDXU4, armv7
>From gcc-bugs-return-577083-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 10:10:39 2017
Return-Path: <gcc-bugs-return-577083-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 13453 invoked by alias); 2 Oct 2017 10:10: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 13205 invoked by uid 48); 2 Oct 2017 10:10:33 -0000
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/82384] [8 Regression] s-taprop.adb failed to compile for x32
Date: Mon, 02 Oct 2017 10:10:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: ada
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hjl.tools at gmail dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82384-4-HALcNVzYQU@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82384-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82384-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00143.txt.bz2
Content-length: 2631

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82384

--- Comment #6 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Eric Botcazou from comment #3)
> > Thank you for reporting this. Could you please check that the attached
> > untested patch fixes the issue you are reporting? (or tell me how to
> > reproduce on my x86_64-linux box :-)) Thank you in advance!
> 
> I have essentially the same patch locally:
> 
> Index: s-linux__x32.ads
> ===================================================================
> --- s-linux__x32.ads    (revision 253315)
> +++ s-linux__x32.ads    (working copy)
> @@ -6,7 +6,7 @@
>  --                                                                         
> --
>  --                                  S p e c                                
> --
>  --                                                                         
> --
> ---             Copyright (C) 2013-2017, Free Software Foundation, Inc.     
> --
> +--          Copyright (C) 2013-2017, Free Software Foundation, Inc.        
> --
>  --
>  --                                                                         
> --
>  -- GNARL is free software; you can  redistribute it  and/or modify it under
> --
> @@ -45,8 +45,9 @@ package System.Linux is
>     -- Time --
>     ----------
>  
> -   type time_t       is new Long_Long_Integer;
> -   subtype clockid_t is Interfaces.C.int;
> +   subtype suseconds_t is Long_Long_Integer;
> +   subtype time_t      is Long_Long_Integer;
> +   subtype clockid_t   is Interfaces.C.int;
>  
>     type timespec is record
>        tv_sec  : time_t;
> @@ -56,7 +57,7 @@ package System.Linux is
>  
>     type timeval is record
>        tv_sec  : time_t;
> -      tv_usec : Long_Long_Integer;
> +      tv_usec : suseconds_t;
>     end record;
>     pragma Convention (C, timeval);
>  
> with additional tweaks to make it resemble s-linux.ads more closely.

I am testing this now.
>From gcc-bugs-return-577082-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 10:10:16 2017
Return-Path: <gcc-bugs-return-577082-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 12447 invoked by alias); 2 Oct 2017 10:10:16 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 12400 invoked by uid 48); 2 Oct 2017 10:10:12 -0000
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/82384] [8 Regression] s-taprop.adb failed to compile for x32
Date: Mon, 02 Oct 2017 10:10:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: ada
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hjl.tools at gmail dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82384-4-BLLfxEmpwB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82384-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82384-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00142.txt.bz2
Content-length: 960

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82384

--- Comment #5 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to H.J. Lu from comment #4)
> (In reply to Pierre-Marie de Rodat from comment #1)
> > Created attachment 42273 [details]
> > Tentative untested fix
> > 
> > Hello,
> > 
> > Thank you for reporting this. Could you please check that the attached
> 
> I am testing it now.

It doesn't work:

[hjl@gnu-efi-2 rts_x32]$
/export/build/gnu/gcc-x32/build-x86_64-linux/./gcc/xgcc
-B/export/build/gnu/gcc-x32/build-x86_64-linux/./gcc/
-B/usr/gcc-8.0.0-x32/x86_64-pc-linux-gnu/bin/
-B/usr/gcc-8.0.0-x32/x86_64-pc-linux-gnu/lib/ -isystem
/usr/gcc-8.0.0-x32/x86_64-pc-linux-gnu/include -isystem
/usr/gcc-8.0.0-x32/x86_64-pc-linux-gnu/sys-include    -c -g -O2 -mx32 -fpic  -W
-Wall -gnatpg -nostdinc -mx32  s-osinte.adb -o s-osinte.o
s-osinte.adb:93:07: warning: ineffective use clause for type
"System.Linux.time_t"
[hjl@gnu-efi-2 rts_x32]$
>From gcc-bugs-return-577084-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 10:13:37 2017
Return-Path: <gcc-bugs-return-577084-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 39785 invoked by alias); 2 Oct 2017 10:13:37 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 36483 invoked by uid 48); 2 Oct 2017 10:13:32 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82389] [8 Regression] ICE on valid code on x86_64-linux-gnu: Segmentation fault
Date: Mon, 02 Oct 2017 10:13:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82389-4-DX9IrSGyo7@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82389-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82389-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00144.txt.bz2
Content-length: 272

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82389

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
normalize_ref should handle that case, unless there is UB in the compiler when
computing ref->offset + ref->size (or use_ref->offset + use_ref->size).
>From gcc-bugs-return-577086-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 10:36:14 2017
Return-Path: <gcc-bugs-return-577086-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 108849 invoked by alias); 2 Oct 2017 10:36: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 108035 invoked by uid 48); 2 Oct 2017 10:36:05 -0000
From: "derodat at adacore dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/82384] [8 Regression] s-taprop.adb failed to compile for x32
Date: Mon, 02 Oct 2017 10:36:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: ada
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: derodat at adacore dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82384-4-V79FsiSRLe@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82384-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82384-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00146.txt.bz2
Content-length: 993

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82384

--- Comment #7 from Pierre-Marie de Rodat <derodat at adacore dot com> ---
I think your second test will also fail for the same reason. I suggest you also
add the following patchlet:

diff --git a/gcc/ada/libgnarl/s-osinte__x32.adb
b/gcc/ada/libgnarl/s-osinte__x32.adb
index a2874be3d69..477abcc4176 100644
--- a/gcc/ada/libgnarl/s-osinte__x32.adb
+++ b/gcc/ada/libgnarl/s-osinte__x32.adb
@@ -89,8 +89,6 @@ package body System.OS_Interface is
    function To_Timespec (D : Duration) return timespec is
       S : time_t;
       F : Duration;
-
-      use type System.Linux.time_t;
    begin
       S := time_t (Long_Long_Integer (D));
       F := D - Duration (S);

Unfortunately my Linux distrib does not package a runtime package for x32, so
testing will require me to install a VM and so on. I hope you’ll understand
that I’ll do that only if things get too complex on your side. Thanks again for
your help!
>From gcc-bugs-return-577085-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 10:36:06 2017
Return-Path: <gcc-bugs-return-577085-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 108002 invoked by alias); 2 Oct 2017 10:36:04 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 107377 invoked by uid 48); 2 Oct 2017 10:34:58 -0000
From: "kloedej at knmi dot nl" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/80666] character length parameter fails if declaration order incorrect
Date: Mon, 02 Oct 2017 10:36:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 6.3.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: kloedej at knmi dot nl
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-80666-4-Cjbwzg5cwB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80666-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80666-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00145.txt.bz2
Content-length: 532

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80666

--- Comment #8 from Jos de Kloe <kloedej at knmi dot nl> ---
Yes I would object to closing it.
This issue has a large impact on significant bodies of legacy code in our
institute.

I understand that you wish to enforce "standards", but removing a "Non-standard
extension" that was present in older gfortran versions is wrong in my opinion.
You should at least leave a commandline option or environment switch to allow
users to compile legacy code that worked fine before.
>From gcc-bugs-return-577087-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 10:37:39 2017
Return-Path: <gcc-bugs-return-577087-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 114679 invoked by alias); 2 Oct 2017 10:37:38 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 114520 invoked by uid 48); 2 Oct 2017 10:37:33 -0000
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/82384] [8 Regression] s-taprop.adb failed to compile for x32
Date: Mon, 02 Oct 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: ada
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hjl.tools at gmail dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.isobsolete attachments.created
Message-ID: <bug-82384-4-WTxFQpHt4N@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82384-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82384-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00147.txt.bz2
Content-length: 521

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82384

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #42273|0                           |1
        is obsolete|                            |

--- Comment #8 from H.J. Lu <hjl.tools at gmail dot com> ---
Created attachment 42277
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42277&action=edit
I am testing this patch.
>From gcc-bugs-return-577088-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 11:00:41 2017
Return-Path: <gcc-bugs-return-577088-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 82636 invoked by alias); 2 Oct 2017 11:00:40 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 82560 invoked by uid 48); 2 Oct 2017 11:00:31 -0000
From: "didu31 at hotmail dot fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/82393] New: Compilation error on cygwin64
Date: Mon, 02 Oct 2017 11:00:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: ada
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: didu31 at hotmail dot fr
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-82393-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00148.txt.bz2
Content-length: 6652

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82393

            Bug ID: 82393
           Summary: Compilation error on cygwin64
           Product: gcc
           Version: 7.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
          Assignee: unassigned at gcc dot gnu.org
          Reporter: didu31 at hotmail dot fr
  Target Milestone: ---

System : cygwin64 on windows 10 64bit
configuration :  /cygdrive/c/Users/didier/git/gcc/configure --enable-libada
--enable-lto  --with-cloog=/usr/local --with-isl=/usr/local/ 
--enable-languages=c,c++,ada

When building gcc, compilation complains _O_BINARY and _O_TEXT are undefined.
This seems normal as they are windows-specific.
It seems, regarding similar bug reports (for other open source software) on the
web that they are defined in cygwin32 fcntl.h, nevertheless.

Here is the raw report :

/home/didier/gcc-build-7.2/./gcc/xgcc -v -save-temps
-B/home/didier/gcc-build-7.2/./gcc/ -B/usr/local/x86_64-unknown-cygwin/bin/
-B/usr/local/x86_64-unknown-cygwin/lib/ -isystem
/usr/local/x86_64-unknown-cygwin/include -isystem
/usr/local/x86_64-unknown-cygwin/sys-include -c -DIN_GCC  -W -Wall -g -O2 -g
-O2 -fexceptions -DIN_RTS -DHAVE_GETIPINFO -iquote . -iquote .. -iquote ../..
-iquote /cygdrive/c/Users/didier/git/gcc/gcc/ada -iquote
/cygdrive/c/Users/didier/git/gcc/gcc -I/cygdrive/c/Users/didier/git/gcc/include
 -I./../.. sysdep.c -o sysdep.o

Reading specs from /home/didier/gcc-build-7.2/./gcc/specs
COLLECT_GCC=/home/didier/gcc-build-7.2/./gcc/xgcc
Target: x86_64-unknown-cygwin
Configured with: /cygdrive/c/Users/didier/git/gcc/configure --enable-libada
--enable-lto --with-cloog=yes --with-isl=/usr/local/
--enable-languages=c,c++,ada
Thread model: single
gcc version 7.2.0 (GCC)
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-B' '/home/didier/gcc-build-7.2/./gcc/'
'-B' '/usr/local/x86_64-unknown-cygwin/bin/' '-B'
'/usr/local/x86_64-unknown-cygwin/lib/' '-isystem'
'/usr/local/x86_64-unknown-cygwin/include' '-isystem'
'/usr/local/x86_64-unknown-cygwin/sys-include' '-c' '-D' 'IN_GCC' '-Wextra'
'-Wall' '-g' '-O2' '-g' '-O2' '-fexceptions' '-D' 'IN_RTS' '-D'
'HAVE_GETIPINFO' '-iquote' '.' '-iquote' '..' '-iquote' '../..' '-iquote'
'/cygdrive/c/Users/didier/git/gcc/gcc/ada' '-iquote'
'/cygdrive/c/Users/didier/git/gcc/gcc' '-I'
'/cygdrive/c/Users/didier/git/gcc/include' '-I' './../..' '-o' 'sysdep.o'
'-mtune=generic' '-march=x86-64'
 /home/didier/gcc-build-7.2/./gcc/cc1.exe -E -quiet -v -I
/cygdrive/c/Users/didier/git/gcc/include -I ./../.. -iprefix
/home/didier/gcc-build-7.2/gcc/../lib/gcc/x86_64-unknown-cygwin/7.2.0/ -isystem
/home/didier/gcc-build-7.2/./gcc/include -isystem
/home/didier/gcc-build-7.2/./gcc/include-fixed -Dunix -idirafter
/usr/lib/../lib/../include/w32api -idirafter ../../include/w32api -D IN_GCC -D
IN_RTS -D HAVE_GETIPINFO -isystem /usr/local/x86_64-unknown-cygwin/include
-isystem /usr/local/x86_64-unknown-cygwin/sys-include -iquote . -iquote ..
-iquote ../.. -iquote /cygdrive/c/Users/didier/git/gcc/gcc/ada -iquote
/cygdrive/c/Users/didier/git/gcc/gcc sysdep.c -mtune=generic -march=x86-64
-Wextra -Wall -fexceptions -g -g -fworking-directory -O2 -O2 -fpch-preprocess
-o sysdep.i
ignoring nonexistent directory "/usr/local/x86_64-unknown-cygwin/include"
ignoring nonexistent directory "/usr/local/x86_64-unknown-cygwin/sys-include"
ignoring nonexistent directory
"/home/didier/gcc-build-7.2/gcc/../lib/gcc/x86_64-unknown-cygwin/7.2.0/include"
ignoring nonexistent directory
"/home/didier/gcc-build-7.2/gcc/../lib/gcc/x86_64-unknown-cygwin/7.2.0/include-fixed"
ignoring nonexistent directory
"/home/didier/gcc-build-7.2/gcc/../lib/gcc/x86_64-unknown-cygwin/7.2.0/../../../../x86_64-unknown-cygwin/include"
ignoring nonexistent directory
"/home/didier/gcc-build-7.2/gcc/../lib/gcc/../../lib/gcc/x86_64-unknown-cygwin/7.2.0/include"
ignoring nonexistent directory
"/home/didier/gcc-build-7.2/gcc/../lib/gcc/../../lib/gcc/x86_64-unknown-cygwin/7.2.0/include-fixed"
ignoring nonexistent directory
"/home/didier/gcc-build-7.2/gcc/../lib/gcc/../../lib/gcc/x86_64-unknown-cygwin/7.2.0/../../../../x86_64-unknown-cygwin/include"
ignoring nonexistent directory "../../include/w32api"
#include "..." search starts here:
 .
 ..
 ../..
 /cygdrive/c/Users/didier/git/gcc/gcc/ada
 /cygdrive/c/Users/didier/git/gcc/gcc
#include <...> search starts here:
 /cygdrive/c/Users/didier/git/gcc/include
 ./../..
 /home/didier/gcc-build-7.2/./gcc/include
 /home/didier/gcc-build-7.2/./gcc/include-fixed
 /usr/local/include
 /usr/include
 /usr/lib/../lib/../include/w32api
End of search list.
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-B' '/home/didier/gcc-build-7.2/./gcc/'
'-B' '/usr/local/x86_64-unknown-cygwin/bin/' '-B'
'/usr/local/x86_64-unknown-cygwin/lib/' '-isystem'
'/usr/local/x86_64-unknown-cygwin/include' '-isystem'
'/usr/local/x86_64-unknown-cygwin/sys-include' '-c' '-D' 'IN_GCC' '-Wextra'
'-Wall' '-g' '-O2' '-g' '-O2' '-fexceptions' '-D' 'IN_RTS' '-D'
'HAVE_GETIPINFO' '-iquote' '.' '-iquote' '..' '-iquote' '../..' '-iquote'
'/cygdrive/c/Users/didier/git/gcc/gcc/ada' '-iquote'
'/cygdrive/c/Users/didier/git/gcc/gcc' '-I'
'/cygdrive/c/Users/didier/git/gcc/include' '-I' './../..' '-o' 'sysdep.o'
'-mtune=generic' '-march=x86-64'
 /home/didier/gcc-build-7.2/./gcc/cc1.exe -fpreprocessed sysdep.i -quiet
-dumpbase sysdep.c -mtune=generic -march=x86-64 -auxbase-strip sysdep.o -g -g
-O2 -O2 -Wextra -Wall -version -fexceptions -o sysdep.s
GNU C11 (GCC) version 7.2.0 (x86_64-unknown-cygwin)
        compiled by GNU C version 7.2.0, GMP version 6.1.2, MPFR version
3.1.5-p10, MPC version 1.0.3, isl version isl-0.15-GMP

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU C11 (GCC) version 7.2.0 (x86_64-unknown-cygwin)
        compiled by GNU C version 7.2.0, GMP version 6.1.2, MPFR version
3.1.5-p10, MPC version 1.0.3, isl version isl-0.15-GMP

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 48e22b895796c0b5999b4c63d201b33b
sysdep.c: In function '__gnat_set_mode':
sysdep.c:195:13: error: '_O_BINARY' undeclared (first use in this function)
     case 0 : WIN_SETMODE (handle, _O_BINARY);          break;
             ^~~~~~~~~
sysdep.c:195:13: note: each undeclared identifier is reported only once for
each function it appears in
sysdep.c:197:13: error: '_O_TEXT' undeclared (first use in this function); did
you mean 'CONTEXT'?
     case 2 : WIN_SETMODE (handle, _O_TEXT);            break;
             ^~~~~~~
             CONTEXT
>From gcc-bugs-return-577089-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 11:01:52 2017
Return-Path: <gcc-bugs-return-577089-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 84320 invoked by alias); 2 Oct 2017 11: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 84238 invoked by uid 48); 2 Oct 2017 11:01:48 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82387] [8 Regression] wrong code at -O1 and -Os on x86_64-linux-gnu in 64-bit mode
Date: Mon, 02 Oct 2017 11:01:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-82387-4-fWAQgzNSyR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82387-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82387-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00149.txt.bz2
Content-length: 253

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82387

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 42278
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42278&action=edit
gcc8-pr82387.patch

Untested fix.
>From gcc-bugs-return-577090-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 11:01:57 2017
Return-Path: <gcc-bugs-return-577090-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 84736 invoked by alias); 2 Oct 2017 11:01: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 84297 invoked by uid 48); 2 Oct 2017 11:01:50 -0000
From: "antoshkka at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82394] New: Pointer imposes an optimization barrier
Date: Mon, 02 Oct 2017 11:01:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.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-82394-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00150.txt.bz2
Content-length: 1680

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82394

            Bug ID: 82394
           Summary: Pointer imposes an optimization barrier
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: antoshkka at gmail dot com
  Target Milestone: ---

Following code

unsigned my_sorted_array() {
    unsigned data[6] = {1, 0, 7, 7, 7, 0};

    // Hand written std::min_element

    unsigned m = data[0];
    for (unsigned* it = data + 1; it != data + 6; ++it) {
        if (*it < m) {
            m = *it;
        }
    }

    return m;
}

Produces an unnecessary long assembly:

my_sorted_array():
  movabs rax, 30064771079
  lea rsi, [rsp-40]
  xor ecx, ecx
  mov QWORD PTR [rsp-32], rax
  lea rax, [rsp-40]
  xor edi, edi
  add rsi, 24
  mov QWORD PTR [rsp-40], 1
  mov QWORD PTR [rsp-24], 7
  lea rdx, [rax+4]
  mov eax, 1
  cmp ecx, eax
  cmovb eax, edi
  add rdx, 4
  cmp rdx, rsi
  je .L1
.L6:
  mov ecx, DWORD PTR [rdx]
  cmp ecx, eax
  cmovb eax, edi
  add rdx, 4
  cmp rdx, rsi
  jne .L6
.L1:
  rep ret


Changing pointers to indexes makes the assembly much better:

unsigned my_sorted_array() {
    unsigned data[6] = {1, 0, 7, 7, 7, 0};

    // Hand written std::min_element

    unsigned m = data[0];
    for (unsigned i = 1; i < 6; ++i) {
        if (data[i] < m) {
            m = data[i];
        }
    }

    return m;
}


Assembly:
my_sorted_array():
  xor eax, eax
  ret


Clang in both cases produces the following:
my_sorted_array(): # @my_sorted_array()
  xor eax, eax
  ret
>From gcc-bugs-return-577091-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 11:03:05 2017
Return-Path: <gcc-bugs-return-577091-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 86729 invoked by alias); 2 Oct 2017 11:03: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 86633 invoked by uid 48); 2 Oct 2017 11:03:00 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/82390] gcc.dg/torture tests run with same optimization level
Date: Mon, 02 Oct 2017 11:03:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: testsuite
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: attachments.created
Message-ID: <bug-82390-4-4mmY2Ugd2k@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82390-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82390-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00151.txt.bz2
Content-length: 533

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82390

--- Comment #2 from Tom de Vries <vries at gcc dot gnu.org> ---
Created attachment 42279
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42279&action=edit
Patch disallowing dg-options for dg-torture.exp

(In reply to Richard Biener from comment #1)
> dg-torture testcases should use dg-additional-options and never specify the
> optimization level.

We could use this patch to enforce this (not yet sure whether the dg-options
proc save/restore is needed or correct).
>From gcc-bugs-return-577092-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 11:04:04 2017
Return-Path: <gcc-bugs-return-577092-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 88102 invoked by alias); 2 Oct 2017 11:04: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 87964 invoked by uid 48); 2 Oct 2017 11:03:56 -0000
From: "didu31 at hotmail dot fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/82393] Compilation error on cygwin64
Date: Mon, 02 Oct 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: ada
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: didu31 at hotmail dot fr
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-82393-4-r1DtGAJpvK@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82393-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82393-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00152.txt.bz2
Content-length: 259

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82393

--- Comment #1 from Didier G <didu31 at hotmail dot fr> ---
Created attachment 42280
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42280&action=edit
compressed preprocessed sysdep.c (if useful)
>From gcc-bugs-return-577093-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 11:11:41 2017
Return-Path: <gcc-bugs-return-577093-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 101170 invoked by alias); 2 Oct 2017 11: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 100201 invoked by uid 48); 2 Oct 2017 11:11:36 -0000
From: "glisse at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82394] Pointer imposes an optimization barrier
Date: Mon, 02 Oct 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: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: glisse at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82394-4-PgLkdUgyBk@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82394-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82394-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00153.txt.bz2
Content-length: 176

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82394

--- Comment #1 from Marc Glisse <glisse at gcc dot gnu.org> ---
What compiler flags? At -O3 we do optimize both the same.
>From gcc-bugs-return-577094-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 11:12:37 2017
Return-Path: <gcc-bugs-return-577094-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 108169 invoked by alias); 2 Oct 2017 11:12:37 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 107855 invoked by uid 48); 2 Oct 2017 11:12:33 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82388] [8 Regression] wrong code at -O1 and above on x86_64-linux-gnu in 32-bit mode
Date: Mon, 02 Oct 2017 11:12:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-82388-4-KNXtYmTTPa@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82388-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82388-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00154.txt.bz2
Content-length: 253

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82388

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 42281
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42281&action=edit
gcc8-pr82387.patch

Untested fix.
>From gcc-bugs-return-577095-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 11:18:35 2017
Return-Path: <gcc-bugs-return-577095-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 114854 invoked by alias); 2 Oct 2017 11:18:35 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 114697 invoked by uid 48); 2 Oct 2017 11:18:26 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82389] [8 Regression] ICE on valid code on x86_64-linux-gnu: Segmentation fault
Date: Mon, 02 Oct 2017 11:18:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-82389-4-kVkwH4g9DV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82389-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82389-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00155.txt.bz2
Content-length: 253

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82389

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 42282
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42282&action=edit
gcc8-pr82387.patch

Untested fix.
>From gcc-bugs-return-577096-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 11:19:23 2017
Return-Path: <gcc-bugs-return-577096-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 124773 invoked by alias); 2 Oct 2017 11:19: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 123257 invoked by uid 48); 2 Oct 2017 11:19:19 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82389] [8 Regression] ICE on valid code on x86_64-linux-gnu: Segmentation fault
Date: Mon, 02 Oct 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: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-82389-4-7JAWY1JDCc@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82389-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82389-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00156.txt.bz2
Content-length: 309

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82389

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 42283
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42283&action=edit
gcc8-pr82389-2.patch

Untested patch to avoid UB in ref->offset + ref->size computations.
>From gcc-bugs-return-577097-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 11:31:39 2017
Return-Path: <gcc-bugs-return-577097-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 122540 invoked by alias); 2 Oct 2017 11: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 122459 invoked by uid 55); 2 Oct 2017 11:31:35 -0000
From: "gjl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/41076] [avr] pessimal code for logical OR of 8-bit fields
Date: Mon, 02 Oct 2017 11:31:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 4.6.1
X-Bugzilla-Keywords: missed-optimization
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: gjl at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-41076-4-RduhlHV9Uk@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-41076-4@http.gcc.gnu.org/bugzilla/>
References: <bug-41076-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00157.txt.bz2
Content-length: 440

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41076

--- Comment #10 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
Author: gjl
Date: Mon Oct  2 11:31:03 2017
New Revision: 253343

URL: https://gcc.gnu.org/viewcvs?rev=253343&root=gcc&view=rev
Log:
        PR target/41076
        * confg/avr/avr.md (*iorhi3.ashift8-ext.zerox): Add "r,r,0"
        alternative.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/avr/avr.md
>From gcc-bugs-return-577098-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 11:37:26 2017
Return-Path: <gcc-bugs-return-577098-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 25290 invoked by alias); 2 Oct 2017 11:37: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 25236 invoked by uid 48); 2 Oct 2017 11:37:22 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/81351] [8 regression] Many LTO testcases FAIL
Date: Mon, 02 Oct 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: lto
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: lto
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: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on assigned_to everconfirmed
Message-ID: <bug-81351-4-jomI1rHFva@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81351-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81351-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00158.txt.bz2
Content-length: 579

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81351

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-10-02
           Assignee|unassigned at gcc dot gnu.org      |marxin at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #4 from Martin Liška <marxin at gcc dot gnu.org> ---
I'll take a look.
>From gcc-bugs-return-577099-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 11:39:58 2017
Return-Path: <gcc-bugs-return-577099-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 79825 invoked by alias); 2 Oct 2017 11:39:58 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 79790 invoked by uid 48); 2 Oct 2017 11:39:54 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/82395] New: [8 Regression] qsort comparator non-negative on sorted output: 1 in color_allocnos
Date: Mon, 02 Oct 2017 11:39:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-82395-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00159.txt.bz2
Content-length: 1799

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82395

            Bug ID: 82395
           Summary: [8 Regression] qsort comparator non-negative on sorted
                    output: 1 in color_allocnos
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
  Target Milestone: ---

After Alexander added the validation (r253295), we ICE on:

./xgcc -B.
/home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/tree-prof/pr44777.c 
-fira-algorithm=priority -Og
/home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/tree-prof/pr44777.c: In
function ‘y’:
/home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/tree-prof/pr44777.c:31:5:
error: qsort comparator non-negative on sorted output: 1
     }
     ^
during RTL pass: ira
/home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/tree-prof/pr44777.c:31:5:
internal compiler error: qsort checking failed
0x1b54377 qsort_chk_error
        ../../gcc/vec.c:222
0x1b5473f qsort_chk(void*, unsigned long, unsigned long, int (*)(void const*,
void const*))
        ../../gcc/vec.c:274
0xd12e34 color_allocnos
        ../../gcc/ira-color.c:3087
0xd13887 color_pass
        ../../gcc/ira-color.c:3261
0xcf81b3 ira_traverse_loop_tree(bool, ira_loop_tree_node*, void
(*)(ira_loop_tree_node*), void (*)(ira_loop_tree_node*))
        ../../gcc/ira-build.c:1781
0xd141f6 do_coloring
        ../../gcc/ira-color.c:3412
0xd17f38 color
        ../../gcc/ira-color.c:4782
0xd185a4 ira_color()
        ../../gcc/ira-color.c:4897
0xcf2c3f ira
        ../../gcc/ira.c:5283
0xcf340e execute
        ../../gcc/ira.c:5581
>From gcc-bugs-return-577100-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 11:40:21 2017
Return-Path: <gcc-bugs-return-577100-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 84196 invoked by alias); 2 Oct 2017 11:40:21 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 84112 invoked by uid 48); 2 Oct 2017 11:40:17 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/82395] [8 Regression] qsort comparator non-negative on sorted output: 1 in color_allocnos
Date: Mon, 02 Oct 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: rtl-optimization
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc target_milestone
Message-ID: <bug-82395-4-v3OXb2DTVc@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82395-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82395-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00160.txt.bz2
Content-length: 372

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82395

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |vmakarov at gcc dot gnu.org
   Target Milestone|---                         |8.0
>From gcc-bugs-return-577101-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 11:45:46 2017
Return-Path: <gcc-bugs-return-577101-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 90051 invoked by alias); 2 Oct 2017 11:45: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 89944 invoked by uid 48); 2 Oct 2017 11:45:42 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/82396] New: qsort comparator non-negative on sorted output: 4 in ready_sort_real in haifa scheduler
Date: Mon, 02 Oct 2017 11:45:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone cf_gcchost cf_gcctarget
Message-ID: <bug-82396-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00161.txt.bz2
Content-length: 1964

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82396

            Bug ID: 82396
           Summary: qsort comparator non-negative on sorted output: 4 in
                    ready_sort_real in haifa scheduler
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
  Target Milestone: ---
              Host: x86_64-pc-linux-gnu
            Target: arm-linux-gnueabi-gcc

Using cross-compiler one can see after Alexander's commit (r253295):

$ cat /tmp/tmp4qfnk1d3.i
int a, h;
struct b
{
  int c;
  double d;
  int f;
  double e;
};

struct b g;

int bar () { a = h; }
int i (int j, ...)
{
  __builtin_va_list b;
  while (j--)
    {
      __builtin_va_start (b, j);
      g = __builtin_va_arg(b, struct b);
      bar ();
    }
}

$ arm-linux-gnueabi-gcc -Ofast --param sched-autopref-queue-depth=274589698
/tmp/tmp4qfnk1d3.i
/tmp/tmp4qfnk1d3.i: In function ‘i’:
/tmp/tmp4qfnk1d3.i:22:1: error: qsort comparator non-negative on sorted output:
4
 }
 ^
during RTL pass: sched2
/tmp/tmp4qfnk1d3.i:22:1: internal compiler error: qsort checking failed
0x5925f2 qsort_chk_error
        .././../gcc/vec.c:222
0x13061a5 qsort_chk(void*, unsigned long, unsigned long, int (*)(void const*,
void const*))
        .././../gcc/vec.c:274
0x12233a8 ready_sort_real
        .././../gcc/haifa-sched.c:3087
0x122a60f schedule_block(basic_block_def**, void*)
        .././../gcc/haifa-sched.c:6749
0xb0473a schedule_region
        .././../gcc/sched-rgn.c:3174
0xb0473a schedule_insns()
        .././../gcc/sched-rgn.c:3513
0xb04c9d schedule_insns()
        .././../gcc/sched-rgn.c:3498
0xb04c9d rest_of_handle_sched2
        .././../gcc/sched-rgn.c:3737
0xb04c9d execute
        .././../gcc/sched-rgn.c:3873
>From gcc-bugs-return-577102-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 11:47:49 2017
Return-Path: <gcc-bugs-return-577102-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 42841 invoked by alias); 2 Oct 2017 11:47: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 42751 invoked by uid 48); 2 Oct 2017 11:47:45 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82397] New: qsort comparator non-negative on sorted output: 1 in vect_analyze_data_ref_accesses
Date: Mon, 02 Oct 2017 11:47:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cc target_milestone
Message-ID: <bug-82397-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00162.txt.bz2
Content-length: 1759

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82397

            Bug ID: 82397
           Summary: qsort comparator non-negative on sorted output: 1 in
                    vect_analyze_data_ref_accesses
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: rguenth at gcc dot gnu.org
  Target Milestone: ---

After Alexander's commit (r253295) we ICE on:

gfortran /home/marxin/Programming/gcc/gcc/testsuite/gfortran.dg/pr77498.f
/dev/null -Ofast
/home/marxin/Programming/gcc/gcc/testsuite/gfortran.dg/pr77498.f:4:0:

       subroutine foo(U,V,R,N,A)

Error: qsort comparator non-negative on sorted output: 1
during GIMPLE pass: slp
/home/marxin/Programming/gcc/gcc/testsuite/gfortran.dg/pr77498.f:4:0: internal
compiler error: qsort checking failed
0x5e4340 qsort_chk_error
        .././../gcc/vec.c:222
0x148ec15 qsort_chk(void*, unsigned long, unsigned long, int (*)(void const*,
void const*))
        .././../gcc/vec.c:274
0x145a541 vec<data_reference*, va_heap, vl_embed>::qsort(int (*)(void const*,
void const*))
        .././../gcc/vec.h:973
0x145a541 vec<data_reference*, va_heap, vl_ptr>::qsort(int (*)(void const*,
void const*))
        .././../gcc/vec.h:1735
0x145a541 vect_analyze_data_ref_accesses(vec_info*)
        .././../gcc/tree-vect-data-refs.c:2802
0xe9a6b2 vect_slp_analyze_bb_1
        .././../gcc/tree-vect-slp.c:2869
0xe9a6b2 vect_slp_bb(basic_block_def*)
        .././../gcc/tree-vect-slp.c:3033
0xe9c005 execute
        .././../gcc/tree-vectorizer.c:998
>From gcc-bugs-return-577103-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 11:52:33 2017
Return-Path: <gcc-bugs-return-577103-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 47559 invoked by alias); 2 Oct 2017 11:52: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 47511 invoked by uid 48); 2 Oct 2017 11:52:29 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82398] New: error: qsort comparator non-negative on sorted output: 2 in fill_vec_av_set at gcc/sel-sched.c:3725
Date: Mon, 02 Oct 2017 11:52: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: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone cf_gcchost cf_gcctarget
Message-ID: <bug-82398-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00163.txt.bz2
Content-length: 2295

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82398

            Bug ID: 82398
           Summary: error: qsort comparator non-negative on sorted output:
                    2 in fill_vec_av_set at gcc/sel-sched.c:3725
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
  Target Milestone: ---
              Host: x86_64-pc-linux-gnu
            Target: ppc64le-linux-gnu

Using cross-compiler one can see after Alexander's commit r253295:

$ ppc64-linux-gnu-gcc
/home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/torture/pr56195.c  -Ofast
-fselective-scheduling
/home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/torture/pr56195.c: In
function ‘fn’:
/home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/torture/pr56195.c:31:1:
error: qsort comparator non-negative on sorted output: 2
 }
 ^
during RTL pass: sched1
/home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/torture/pr56195.c:31:1:
internal compiler error: qsort checking failed
0x57afe6 qsort_chk_error
        .././../gcc/vec.c:222
0x128f3b5 qsort_chk(void*, unsigned long, unsigned long, int (*)(void const*,
void const*))
        .././../gcc/vec.c:274
0xb11ca3 vec<_expr*, va_heap, vl_embed>::qsort(int (*)(void const*, void
const*))
        .././../gcc/vec.h:973
0xb11ca3 vec<_expr*, va_heap, vl_ptr>::qsort(int (*)(void const*, void const*))
        .././../gcc/vec.h:1735
0xb11ca3 fill_vec_av_set
        .././../gcc/sel-sched.c:3725
0xb14493 fill_ready_list
        .././../gcc/sel-sched.c:4022
0xb14493 find_best_expr
        .././../gcc/sel-sched.c:4382
0xb14493 fill_insns
        .././../gcc/sel-sched.c:5539
0xb165b0 schedule_on_fences
        .././../gcc/sel-sched.c:7356
0xb165b0 sel_sched_region_2
        .././../gcc/sel-sched.c:7494
0xb18ae1 sel_sched_region_1
        .././../gcc/sel-sched.c:7536
0xb18ae1 sel_sched_region(int)
        .././../gcc/sel-sched.c:7637
0xb190c9 run_selective_scheduling()
        .././../gcc/sel-sched.c:7713
0xaf182d rest_of_handle_sched
        .././../gcc/sched-rgn.c:3715
0xaf182d execute
        .././../gcc/sched-rgn.c:3825
>From gcc-bugs-return-577104-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 11:53:21 2017
Return-Path: <gcc-bugs-return-577104-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 48757 invoked by alias); 2 Oct 2017 11:53:21 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 48698 invoked by uid 48); 2 Oct 2017 11:53:17 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82399] New: [openacc, nvptx] Optimize complex reduction
Date: Mon, 02 Oct 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: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vries at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-82399-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00164.txt.bz2
Content-length: 1451

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82399

            Bug ID: 82399
           Summary: [openacc, nvptx] Optimize complex reduction
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

Currently reduction updates are implemented like this:
...
/* Emit a sequence to update a reduction accumlator at *PTR with the            
   value held in VAR using operator OP.  Return the updated value.              

   TODO: optimize for atomic ops and indepedent complex ops.  */

static tree
nvptx_reduction_update (location_t loc, gimple_stmt_iterator *gsi,
                        tree ptr, tree var, tree_code op)
{
  tree type = TREE_TYPE (var);
  tree size = TYPE_SIZE (type);

  if (size == TYPE_SIZE (unsigned_type_node)
      || size == TYPE_SIZE (long_long_unsigned_type_node))
    return nvptx_lockless_update (loc, gsi, ptr, var, op);
  else
    return nvptx_lockfull_update (loc, gsi, ptr, var, op);
}
...

This means that for f.i. a complex long long addition we choose the
nvptx_lockfull_update.

The real and the complex part of the addition are independent, so instead we
could call nvptx_lockless_update twice (as the TODO implies).
>From gcc-bugs-return-577105-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 11:54:40 2017
Return-Path: <gcc-bugs-return-577105-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 50390 invoked by alias); 2 Oct 2017 11:54: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 50348 invoked by uid 48); 2 Oct 2017 11:54:36 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82399] [openacc, nvptx] Optimize complex reduction
Date: Mon, 02 Oct 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: target
X-Bugzilla-Version: unknown
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: keywords cc bug_severity
Message-ID: <bug-82399-4-dOgLVD0mKv@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82399-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82399-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00165.txt.bz2
Content-length: 434

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82399

Tom de Vries <vries at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |openacc
                 CC|                            |tschwinge at gcc dot gnu.org
           Severity|normal                      |enhancement
>From gcc-bugs-return-577107-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 11:57:17 2017
Return-Path: <gcc-bugs-return-577107-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 54549 invoked by alias); 2 Oct 2017 11:57:16 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 54427 invoked by uid 55); 2 Oct 2017 11:57:12 -0000
From: "tschwinge at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/67165] please enable libbacktrace to work with compressed debug sections
Date: Mon, 02 Oct 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: other
X-Bugzilla-Version: 5.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: tschwinge at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-67165-4-RdGHfU46jP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67165-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67165-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00167.txt.bz2
Content-length: 788

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67165

--- Comment #6 from Thomas Schwinge <tschwinge at gcc dot gnu.org> ---
Author: tschwinge
Date: Mon Oct  2 11:56:39 2017
New Revision: 253345

URL: https://gcc.gnu.org/viewcvs?rev=253345&root=gcc&view=rev
Log:
libbacktrace: Support the case that clock_gettime is in librt

        libbacktrace/
        PR other/67165
        * Makefile.am: Append the content of clock_gettime_link to
        ztest_LDADD.
        * configure.ac: Test for the case that clock_gettime is in librt.
        * Makefile.in: Regenerate.
        * configure: Likewise.

Modified:
    trunk/libbacktrace/ChangeLog
    trunk/libbacktrace/Makefile.am
    trunk/libbacktrace/Makefile.in
    trunk/libbacktrace/configure
    trunk/libbacktrace/configure.ac
>From gcc-bugs-return-577106-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 11:57:04 2017
Return-Path: <gcc-bugs-return-577106-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 53633 invoked by alias); 2 Oct 2017 11:57:04 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 53496 invoked by uid 55); 2 Oct 2017 11:56:58 -0000
From: "tschwinge at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/67165] please enable libbacktrace to work with compressed debug sections
Date: Mon, 02 Oct 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: other
X-Bugzilla-Version: 5.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: tschwinge at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-67165-4-AHyhHuPDic@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67165-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67165-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00166.txt.bz2
Content-length: 792

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67165

--- Comment #5 from Thomas Schwinge <tschwinge at gcc dot gnu.org> ---
Author: tschwinge
Date: Mon Oct  2 11:56:25 2017
New Revision: 253344

URL: https://gcc.gnu.org/viewcvs?rev=253344&root=gcc&view=rev
Log:
libbacktrace: Conditionalize test timing on clock_gettime availability

        libbacktrace/
        PR other/67165
        * configure.ac: Check for clock_gettime.
        * config.h.in: Regenerate.
        * configure: Likewise.
        * ztest.c (average_time, test_large): Conditionalize test timing
        on clock_gettime availability.

Modified:
    trunk/libbacktrace/ChangeLog
    trunk/libbacktrace/config.h.in
    trunk/libbacktrace/configure
    trunk/libbacktrace/configure.ac
    trunk/libbacktrace/ztest.c
>From gcc-bugs-return-577109-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 12:03:41 2017
Return-Path: <gcc-bugs-return-577109-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 66069 invoked by alias); 2 Oct 2017 12:03: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 65765 invoked by uid 48); 2 Oct 2017 12:03:36 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82400] New: [openacc, nvptx] Use ptx atomic operators for reductions
Date: Mon, 02 Oct 2017 12: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: 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-82400-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00169.txt.bz2
Content-length: 2963

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82400

            Bug ID: 82400
           Summary: [openacc, nvptx] Use ptx atomic operators for
                    reductions
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

Atm the nvptx_reduction_update uses nvptx_lockless_update for types with size
<= 8 bytes:
...
/* Insert code to locklessly update *PTR with *PTR OP VAR just before           
   GSI.  We use a lockless scheme for nearly all case, which looks              
   like:                                                                        
     actual = initval(OP);                                                      
     do {                                                                       
       guess = actual;                                                          
       write = guess OP myval;                                                  
       actual = cmp&swap (ptr, guess, write)                                    
     } while (actual bit-different-to guess);                                   
   return write;                                                                

   This relies on a cmp&swap instruction, which is available for 32-            
   and 64-bit types.  Larger types must use a locking scheme.  */

static tree
nvptx_lockless_update (location_t loc, gimple_stmt_iterator *gsi,
                       tree ptr, tree var, tree_code op)
...

The scheme is the same for all operators, using the compare-and-swap atomic ptx
instruction (atom.cas).

However, some of the operators are supported natively for the ptx:
...
.op = { .and, .or, .xor, .cas, .exch, .add, .inc, .dec, .min, .max };
...
so for f.i. addition we could use an atom.add instead.
>From gcc-bugs-return-577108-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 12:03:33 2017
Return-Path: <gcc-bugs-return-577108-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 65448 invoked by alias); 2 Oct 2017 12:03: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 64939 invoked by uid 48); 2 Oct 2017 12:03:23 -0000
From: "didu31 at hotmail dot fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/82393] Compilation error on cygwin64
Date: Mon, 02 Oct 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: ada
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: didu31 at hotmail dot fr
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82393-4-5fdlcqXNZR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82393-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82393-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00168.txt.bz2
Content-length: 167

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82393

--- Comment #2 from Didier G <didu31 at hotmail dot fr> ---
Not tested but 
rtinit.c 
should be checked too.
>From gcc-bugs-return-577110-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 12:06:04 2017
Return-Path: <gcc-bugs-return-577110-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 96148 invoked by alias); 2 Oct 2017 12:06: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 86293 invoked by uid 48); 2 Oct 2017 12:05:59 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82400] [openacc, nvptx] Use ptx atomic operators for reductions
Date: Mon, 02 Oct 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: 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:
Message-ID: <bug-82400-4-9oYjUyOPFB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82400-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82400-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00170.txt.bz2
Content-length: 593

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82400

--- Comment #1 from Tom de Vries <vries at gcc dot gnu.org> ---
(In reply to Tom de Vries from comment #0)
> The scheme is the same for all operators, using the compare-and-swap atomic
> ptx instruction (atom.cas).
> 
> However, some of the operators are supported natively for the ptx:
> ...
> .op = { .and, .or, .xor, .cas, .exch, .add, .inc, .dec, .min, .max };
> ...
> so for f.i. addition we could use an atom.add instead.

[ As implied by the nvptx_reduction_update todo: optimize for atomic ops and
independent complex ops. ]
>From gcc-bugs-return-577111-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 12:15:34 2017
Return-Path: <gcc-bugs-return-577111-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 7654 invoked by alias); 2 Oct 2017 12:15:33 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 7447 invoked by uid 48); 2 Oct 2017 12:15:24 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82401] New: error: qsort comparator non-negative on sorted output: 1 in insert_late_enum_def_bindings on an invalid code
Date: Mon, 02 Oct 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: c++
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cc target_milestone
Message-ID: <bug-82401-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00171.txt.bz2
Content-length: 2420

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82401

            Bug ID: 82401
           Summary: error: qsort comparator non-negative on sorted output:
                    1 in insert_late_enum_def_bindings on an invalid code
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: jason at gcc dot gnu.org
  Target Milestone: ---

After Alexander's commit (r253295) I see:

$ cat ice.cpp
template <typename T> struct A
{
  enum E : T;
  void h ();
};
template <typename T> enum A<T>::E : T { e1, e2 };
template <> enum A<long long>::E : long long {};
template <typename T> struct C
{
  enum class E : T;
};
C<int>::E c3 = C<int>::E::e6;

$ g++-7 ice.cpp
ice.cpp:12:27: error: ‘e6’ is not a member of ‘C<int>::E’
 C<int>::E c3 = C<int>::E::e6;
                           ^~
$ g++-trunk ice.cpp
ice.cpp:7:47: error: qsort comparator non-negative on sorted output: 1
 template <> enum A<long long>::E : long long {};
                                               ^
ice.cpp:7:47: internal compiler error: qsort checking failed
0x5ee434 qsort_chk_error
        .././../gcc/vec.c:222
0x16207c5 qsort_chk(void*, unsigned long, unsigned long, int (*)(void const*,
void const*))
        .././../gcc/vec.c:274
0x7287ef insert_late_enum_def_bindings(tree_node*, tree_node*)
        .././../gcc/cp/name-lookup.c:1727
0x6923d1 finish_enum_value_list(tree_node*)
        .././../gcc/cp/decl.c:14322
0x76058c cp_parser_enum_specifier
        .././../gcc/cp/parser.c:18222
0x76058c cp_parser_type_specifier
        .././../gcc/cp/parser.c:16644
0x76e156 cp_parser_decl_specifier_seq
        .././../gcc/cp/parser.c:13568
0x773355 cp_parser_single_declaration
        .././../gcc/cp/parser.c:26972
0x774467 cp_parser_explicit_specialization
        .././../gcc/cp/parser.c:16564
0x77a426 cp_parser_declaration
        .././../gcc/cp/parser.c:12669
0x77a6eb cp_parser_declaration_seq_opt
        .././../gcc/cp/parser.c:12599
0x77a9fa cp_parser_translation_unit
        .././../gcc/cp/parser.c:4390
0x77a9fa c_parse_file()
        .././../gcc/cp/parser.c:38907
0x8c0df6 c_common_parse_file()
        .././../gcc/c-family/c-opts.c:1113
>From gcc-bugs-return-577112-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 12:16:04 2017
Return-Path: <gcc-bugs-return-577112-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 8714 invoked by alias); 2 Oct 2017 12:16:03 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 8577 invoked by uid 48); 2 Oct 2017 12:15:53 -0000
From: "schwab@linux-m68k.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/82398] error: qsort comparator non-negative on sorted output: 2 in fill_vec_av_set at gcc/sel-sched.c:3725
Date: Mon, 02 Oct 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: rtl-optimization
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: schwab@linux-m68k.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cf_gcctarget cf_gcchost
Message-ID: <bug-82398-4-gf1ZZoAUHe@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82398-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82398-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00172.txt.bz2
Content-length: 2117

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82398

Andreas Schwab <schwab@linux-m68k.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|ppc64le-linux-gnu           |ppc64le-*-*, ia64-*-*
               Host|x86_64-pc-linux-gnu         |

--- Comment #1 from Andreas Schwab <schwab@linux-m68k.org> ---
This is probably the same bug (on ia64):

FAIL: gcc.c-torture/execute/pr57861.c   -O3 -fomit-frame-pointer -funroll-loops
-fpeel-loops -ftracer -finline-functions  (test for excess errors)

/usr/local/gcc/gcc-20171002/gcc/testsuite/gcc.c-torture/execute/pr57861.c:33:1:
error: qsort comparator non-negative on sorted output: 1
during RTL pass: mach
/usr/local/gcc/gcc-20171002/gcc/testsuite/gcc.c-torture/execute/pr57861.c:33:1:
internal compiler error: qsort checking failed
0x40000000001b2d9f qsort_chk_error
        ../../gcc/vec.c:222
0x400000000209cecf qsort_chk(void*, unsigned long, unsigned long, int (*)(void
const*, void const*))
        ../../gcc/vec.c:274
0x4000000001015d9f vec<_expr*, va_heap, vl_embed>::qsort(int (*)(void const*,
void const*))
        ../../gcc/vec.h:973
0x4000000001015d9f vec<_expr*, va_heap, vl_ptr>::qsort(int (*)(void const*,
void const*))
        ../../gcc/vec.h:1735
0x4000000001015d9f fill_vec_av_set
        ../../gcc/sel-sched.c:3725
0x400000000101be4f fill_ready_list
        ../../gcc/sel-sched.c:4022
0x400000000101be4f find_best_expr
        ../../gcc/sel-sched.c:4382
0x400000000101be4f fill_insns
        ../../gcc/sel-sched.c:5539
0x400000000101be4f schedule_on_fences
        ../../gcc/sel-sched.c:7356
0x400000000101be4f sel_sched_region_2
        ../../gcc/sel-sched.c:7494
0x40000000010252cf sel_sched_region_1
        ../../gcc/sel-sched.c:7536
0x40000000010252cf sel_sched_region(int)
        ../../gcc/sel-sched.c:7637
0x400000000102666f run_selective_scheduling()
        ../../gcc/sel-sched.c:7713
0x400000000190fd7f ia64_reorg
        ../../gcc/config/ia64/ia64.c:9854
0x4000000000f85acf execute
        ../../gcc/reorg.c:3947
>From gcc-bugs-return-577113-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 12:21:09 2017
Return-Path: <gcc-bugs-return-577113-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 5415 invoked by alias); 2 Oct 2017 12: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 2605 invoked by uid 48); 2 Oct 2017 12:21:04 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82402] New: [5/6/7/8 Regression] error: SSA_NAME_OCCURS_IN_ABNORMAL_PHI should be set
Date: Mon, 02 Oct 2017 12:21:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_file_loc bug_status keywords bug_severity priority component assigned_to reporter cc target_milestone
Message-ID: <bug-82402-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00173.txt.bz2
Content-length: 3991

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82402

            Bug ID: 82402
           Summary: [5/6/7/8 Regression] error:
                    SSA_NAME_OCCURS_IN_ABNORMAL_PHI should be set
           Product: gcc
           Version: unknown
               URL: https://raw.githubusercontent.com/byronh/school-simple
                    scalar/master/tests/src/anagram.c
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: edlinger at gcc dot gnu.org
  Target Milestone: ---

Starting with GCC 4.9, we ICE on anagram.c:

$ gcc anagram.c -O3 -c --param max-inline-insns-auto=1352250387
anagram.c: In function ‘BuildMask’:
anagram.c:315:5: warning: implicit declaration of function ‘bzero’
[-Wimplicit-function-declaration]
     bzero(alPhrase, sizeof(Letter)*ALPHABET);
     ^~~~~
anagram.c:315:5: warning: incompatible implicit declaration of built-in
function ‘bzero’
anagram.c: In function ‘BuildWord’:
anagram.c:406:5: warning: incompatible implicit declaration of built-in
function ‘bzero’
     bzero(cchFrequency, sizeof(unsigned char)*ALPHABET);
     ^~~~~
anagram.c: In function ‘GetPhrase’:
anagram.c:603:9: warning: implicit declaration of function ‘gets’; did you mean
‘fgets’? [-Wimplicit-function-declaration]
     if (gets(pch) == NULL) {
         ^~~~
         fgets
anagram.c:603:19: warning: comparison between pointer and integer
     if (gets(pch) == NULL) {
                   ^~
anagram.c: In function ‘main’:
anagram.c:623:20: warning: implicit declaration of function ‘isatty’
[-Wimplicit-function-declaration]
     fInteractive = isatty(1);
                    ^~~~~~
anagram.c:615:11: error: SSA_NAME_OCCURS_IN_ABNORMAL_PHI should be set
 int Cdecl main(int cpchArgc, char **ppchArgv) {
           ^~~~
for SSA_NAME: .MEM_184 in statement:
.MEM_17(ab) = PHI <.MEM_20(D)(ab)(3), .MEM_24(ab)(6), .MEM_27(ab)(7),
.MEM_36(ab)(10), .MEM_34(ab)(12), .MEM_218(ab)(27), .MEM_204(ab)(35),
.MEM_33(ab)(67), .MEM_38(ab)(68), .MEM_40(ab)(72), .MEM_197(ab)(77),
.MEM_207(ab)(57), .MEM_184(54), .MEM_195(ab)(76), .MEM_196(ab)(75)>
PHI argument
.MEM_184
for PHI node
.MEM_17(ab) = PHI <.MEM_20(D)(ab)(3), .MEM_24(ab)(6), .MEM_27(ab)(7),
.MEM_36(ab)(10), .MEM_34(ab)(12), .MEM_218(ab)(27), .MEM_204(ab)(35),
.MEM_33(ab)(67), .MEM_38(ab)(68), .MEM_40(ab)(72), .MEM_197(ab)(77),
.MEM_207(ab)(57), .MEM_184(54), .MEM_195(ab)(76), .MEM_196(ab)(75)>
during GIMPLE pass: vect
anagram.c:615:11: internal compiler error: verify_ssa failed
0xdd382b verify_ssa(bool, bool)
        .././../gcc/tree-ssa.c:1188
0xabe537 execute_function_todo
        .././../gcc/passes.c:1999
0xabf462 execute_todo
        .././../gcc/passes.c:2046

I have a reduced test-case that started to ICE with r239092:

$ cat ice.c
#include <stdlib.h>
#include <setjmp.h>

jmp_buf jbAnagram;
int a[6];
int d;
int b () { exit (1); }
int c () { b (); }
int e ()
{
  int f = 0;
  for (; f < 6; f++)
    a[f] = d;
  c ();
  setjmp (jbAnagram);
}

$ gcc ice.c -O3 -c --param max-inline-insns-auto=1352250387
ice.c: In function ‘e’:
ice.c:9:5: error: SSA_NAME_OCCURS_IN_ABNORMAL_PHI should be set
 int e ()
     ^
for SSA_NAME: .MEM_12 in statement:
.MEM_4(ab) = PHI <.MEM_12(8), .MEM_6(ab)(9)>
PHI argument
.MEM_12
for PHI node
.MEM_4(ab) = PHI <.MEM_12(8), .MEM_6(ab)(9)>
during GIMPLE pass: vect
ice.c:9:5: internal compiler error: verify_ssa failed
0xdd382b verify_ssa(bool, bool)
        .././../gcc/tree-ssa.c:1188
0xabe537 execute_function_todo
        .././../gcc/passes.c:1999
0xabf462 execute_todo
        .././../gcc/passes.c:2046

But it's probably just path of original problem.
>From gcc-bugs-return-577114-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 12:23:26 2017
Return-Path: <gcc-bugs-return-577114-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 126453 invoked by alias); 2 Oct 2017 12:23:26 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 118969 invoked by uid 48); 2 Oct 2017 12:23:21 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82403] New: [openacc, nvptx] Optimize binary shuffle tree
Date: Mon, 02 Oct 2017 12:23:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 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-82403-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00174.txt.bz2
Content-length: 950

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82403

            Bug ID: 82403
           Summary: [openacc, nvptx] Optimize binary shuffle tree
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

In nvptx_goacc_reduction_fini we find the following todo:
...
  if (level == GOMP_DIM_VECTOR)
    {
      /* Emit binary shuffle tree.  TODO. Emit this as an actual loop,          
         but that requires a method of emitting a unified jump at the           
         gimple level.  */
...

A fix for this was committed to the gomp4 branch in august 2016 (submitted
here: https://gcc.gnu.org/ml/gcc-patches/2016-08/msg02147.html ), but it's not
yet present on trunk.
>From gcc-bugs-return-577115-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 12:41:13 2017
Return-Path: <gcc-bugs-return-577115-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 11111 invoked by alias); 2 Oct 2017 12:41: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 10950 invoked by uid 55); 2 Oct 2017 12:40:59 -0000
From: "paolo at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79180] Nested lambda-capture causes segfault for parameter pack
Date: Mon, 02 Oct 2017 12:41:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 6.3.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79180-4-26oVy9NDh1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79180-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79180-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00175.txt.bz2
Content-length: 745

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79180

--- Comment #5 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Mon Oct  2 12:40:26 2017
New Revision: 253350

URL: https://gcc.gnu.org/viewcvs?rev=253350&root=gcc&view=rev
Log:
2017-10-02  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/79180
        * g++.dg/cpp0x/lambda/lambda-nested8.C: New.
        * g++.dg/torture/pr79180.C: Likewise.

        PR c++/71386
        * g++.dg/cpp1y/lambda-generic-nested1.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-nested8.C
    trunk/gcc/testsuite/g++.dg/cpp1y/lambda-generic-nested1.C
    trunk/gcc/testsuite/g++.dg/torture/pr79180.C
Modified:
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-577117-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 12:41:38 2017
Return-Path: <gcc-bugs-return-577117-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 14580 invoked by alias); 2 Oct 2017 12:41:38 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 12518 invoked by uid 48); 2 Oct 2017 12:41:25 -0000
From: "antoshkka at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82394] Pointer imposes an optimization barrier
Date: Mon, 02 Oct 2017 12: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:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: antoshkka at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82394-4-CS8Pp5ReJQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82394-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82394-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00177.txt.bz2
Content-length: 137

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82394

--- Comment #2 from Antony Polukhin <antoshkka at gmail dot com> ---
Used -O2 flag
>From gcc-bugs-return-577116-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 12:41:13 2017
Return-Path: <gcc-bugs-return-577116-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 11115 invoked by alias); 2 Oct 2017 12:41: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 10878 invoked by uid 55); 2 Oct 2017 12:40:57 -0000
From: "paolo at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/71386] Wrong code on c++14 (GCC trunk)
Date: Mon, 02 Oct 2017 12:41:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-71386-4-8zO2eQrBHl@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-71386-4@http.gcc.gnu.org/bugzilla/>
References: <bug-71386-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00176.txt.bz2
Content-length: 745

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71386

--- Comment #9 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Mon Oct  2 12:40:26 2017
New Revision: 253350

URL: https://gcc.gnu.org/viewcvs?rev=253350&root=gcc&view=rev
Log:
2017-10-02  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/79180
        * g++.dg/cpp0x/lambda/lambda-nested8.C: New.
        * g++.dg/torture/pr79180.C: Likewise.

        PR c++/71386
        * g++.dg/cpp1y/lambda-generic-nested1.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-nested8.C
    trunk/gcc/testsuite/g++.dg/cpp1y/lambda-generic-nested1.C
    trunk/gcc/testsuite/g++.dg/torture/pr79180.C
Modified:
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-577119-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 12:48:58 2017
Return-Path: <gcc-bugs-return-577119-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 24062 invoked by alias); 2 Oct 2017 12:48: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 23835 invoked by uid 48); 2 Oct 2017 12:48:52 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/54367] [meta-bug] lambda expressions
Date: Mon, 02 Oct 2017 12:48:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: dep_changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.8.0
X-Bugzilla-Keywords: meta-bug
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-54367-4-Jh1ebmhUw5@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-54367-4@http.gcc.gnu.org/bugzilla/>
References: <bug-54367-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00179.txt.bz2
Content-length: 482

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54367
Bug 54367 depends on bug 79180, which changed state.

Bug 79180 Summary: Nested lambda-capture causes segfault for parameter pack
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79180

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
>From gcc-bugs-return-577118-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 12:48:56 2017
Return-Path: <gcc-bugs-return-577118-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 23886 invoked by alias); 2 Oct 2017 12:48:56 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 23795 invoked by uid 48); 2 Oct 2017 12:48:52 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79180] Nested lambda-capture causes segfault for parameter pack
Date: Mon, 02 Oct 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: c++
X-Bugzilla-Version: 6.3.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: 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-79180-4-EoUftDQ8fA@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79180-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79180-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00178.txt.bz2
Content-length: 518

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79180

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |8.0

--- Comment #6 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Fixed in trunk, I added testcases.
>From gcc-bugs-return-577120-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 12:49:58 2017
Return-Path: <gcc-bugs-return-577120-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 25885 invoked by alias); 2 Oct 2017 12:49:58 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 25803 invoked by uid 48); 2 Oct 2017 12:49:53 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/54367] [meta-bug] lambda expressions
Date: Mon, 02 Oct 2017 12:49:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: dep_changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.8.0
X-Bugzilla-Keywords: meta-bug
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-54367-4-3YLNNhfPcn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-54367-4@http.gcc.gnu.org/bugzilla/>
References: <bug-54367-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00180.txt.bz2
Content-length: 457

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54367
Bug 54367 depends on bug 71386, which changed state.

Bug 71386 Summary: Wrong code on c++14 (GCC trunk)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71386

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
>From gcc-bugs-return-577121-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 12:50:01 2017
Return-Path: <gcc-bugs-return-577121-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 26172 invoked by alias); 2 Oct 2017 12:50: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 25759 invoked by uid 48); 2 Oct 2017 12:49:52 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/71386] Wrong code on c++14 (GCC trunk)
Date: Mon, 02 Oct 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: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: 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-71386-4-pPmoFAKjT1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-71386-4@http.gcc.gnu.org/bugzilla/>
References: <bug-71386-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00181.txt.bz2
Content-length: 500

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71386

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |8.0

--- Comment #10 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Fixed in trunk.
>From gcc-bugs-return-577122-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 12:51:16 2017
Return-Path: <gcc-bugs-return-577122-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 29184 invoked by alias); 2 Oct 2017 12: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 29064 invoked by uid 48); 2 Oct 2017 12:51:12 -0000
From: "jamborm at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82363] [8 Regression] wrong code at -O1, -O2 and -O3 on x86_64-linux-gnu
Date: Mon, 02 Oct 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: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jamborm at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jamborm at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to
Message-ID: <bug-82363-4-BaGNewT5E4@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82363-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82363-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00182.txt.bz2
Content-length: 574

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82363

Martin Jambor <jamborm at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |jamborm at gcc dot gnu.org

--- Comment #2 from Martin Jambor <jamborm at gcc dot gnu.org> ---
For some reasons the contains_data (well, actually grp_write) SRA flag is not
copied over from q.k.h.c to p.k.h.c.  Mine.
>From gcc-bugs-return-577123-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 12:56:40 2017
Return-Path: <gcc-bugs-return-577123-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 63616 invoked by alias); 2 Oct 2017 12: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 63547 invoked by uid 48); 2 Oct 2017 12:56:35 -0000
From: "edlinger at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82402] [5/6/7/8 Regression] error: SSA_NAME_OCCURS_IN_ABNORMAL_PHI should be set
Date: Mon, 02 Oct 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: tree-optimization
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: edlinger at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82402-4-RyRgcx9vp8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82402-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82402-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00183.txt.bz2
Content-length: 483

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82402

--- Comment #1 from Bernd Edlinger <edlinger at gcc dot gnu.org> ---
Martin, try this modified test case:

cat ice.c
typedef int jmp_buf[1];

extern exit(int) __attribute__((__noreturn__));
extern int setjmpx(jmp_buf) __attribute__((__returns_twice__));

jmp_buf jbAnagram;
int a[6];
int d;
int b () { exit (1); }
int c () { b (); }
int e ()
{
  int f = 0;
  for (; f < 6; f++)
    a[f] = d;
  c ();
  setjmpx (jbAnagram);
}
>From gcc-bugs-return-577124-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 13:00:29 2017
Return-Path: <gcc-bugs-return-577124-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 72912 invoked by alias); 2 Oct 2017 13:00: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 72351 invoked by uid 48); 2 Oct 2017 13:00:01 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82386] [8 Regression] internal compiler error: Segmentation fault on 32-bit powerpc BE targets
Date: Mon, 02 Oct 2017 13:00:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-82386-4-H66S9H8Xd4@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82386-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82386-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00184.txt.bz2
Content-length: 1630

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82386

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-10-02
                 CC|                            |jakub at gcc dot gnu.org,
                   |                            |segher at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
The problem is that try_combine has two spots where it calls split_block:
      remove_edge (split_block (bb, i3));
and
      remove_edge (split_block (bb, undobuf.other_insn));
When LOG_LINKS are created, they point only within the same basic block, so
without those two calls, combine_instruction calls to try_combine should have
all insns belonging to the same basic block - this_basic_block.
But when the bb is split, we reach end of that bb earlier, then start
processing perhaps the new basic block created from there and through LOG_LINKS
reach back the old basic block, so this_basic_block doesn't necessarily mean
the bb of all the instructions that are being combined anymore.
this_basic_block is used in multiple spots, in some (e.g. calls to
propagate_for_debug) we use its BB_END, in other cases (e.g. in
distribute_notes) we use its BB_HEAD.
Makes me wonder if it wouldn't be better to defer the splitting until later,
then we'd restore the invariant that this_basic_block is the bb of i[3210].
>From gcc-bugs-return-577125-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 13:02:35 2017
Return-Path: <gcc-bugs-return-577125-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 75411 invoked by alias); 2 Oct 2017 13:02:35 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 75258 invoked by uid 48); 2 Oct 2017 13:02:22 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82402] [5/6/7/8 Regression] error: SSA_NAME_OCCURS_IN_ABNORMAL_PHI should be set
Date: Mon, 02 Oct 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: tree-optimization
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82402-4-XdmfiVzLJA@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82402-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82402-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00185.txt.bz2
Content-length: 609

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82402

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to Bernd Edlinger from comment #1)
> Martin, try this modified test case:
> 
> cat ice.c
> typedef int jmp_buf[1];
> 
> extern exit(int) __attribute__((__noreturn__));
> extern int setjmpx(jmp_buf) __attribute__((__returns_twice__));
> 
> jmp_buf jbAnagram;
> int a[6];
> int d;
> int b () { exit (1); }
> int c () { b (); }
> int e ()
> {
>   int f = 0;
>   for (; f < 6; f++)
>     a[f] = d;
>   c ();
>   setjmpx (jbAnagram);
> }

Thanks, fails with GCC 4.9.0+.
>From gcc-bugs-return-577126-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 13:06:22 2017
Return-Path: <gcc-bugs-return-577126-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 85269 invoked by alias); 2 Oct 2017 13: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 85199 invoked by uid 48); 2 Oct 2017 13:06:09 -0000
From: "edlinger at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82402] [5/6/7/8 Regression] error: SSA_NAME_OCCURS_IN_ABNORMAL_PHI should be set
Date: Mon, 02 Oct 2017 13:06:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: edlinger at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82402-4-ziPYYDguY2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82402-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82402-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00186.txt.bz2
Content-length: 428

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82402

--- Comment #3 from Bernd Edlinger <edlinger at gcc dot gnu.org> ---
The leaf attribute seems to make a difference,
before my patch the compiler assumed returns_twice + leaf,
but that may be unsafe for free standing environment.
the crash goes away if the header file adds leaf attribute.

I asked glibc-people to add that to their header file,
but nothing happened so far.
>From gcc-bugs-return-577127-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 13:42:28 2017
Return-Path: <gcc-bugs-return-577127-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 58871 invoked by alias); 2 Oct 2017 13:42: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 58777 invoked by uid 48); 2 Oct 2017 13:42:22 -0000
From: "amonakov at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/82398] error: qsort comparator non-negative on sorted output: 2 in fill_vec_av_set at gcc/sel-sched.c:3725
Date: Mon, 02 Oct 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: rtl-optimization
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: ice-on-valid-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: cc
Message-ID: <bug-82398-4-wpKv1BfqTn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82398-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82398-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00187.txt.bz2
Content-length: 1579

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82398

Alexander Monakov <amonakov at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |abel at gcc dot gnu.org,
                   |                            |amonakov at gcc dot gnu.org

--- Comment #2 from Alexander Monakov <amonakov at gcc dot gnu.org> ---
This might be a typo in treatment of EXPR_USEFULNESS in comparator, adding
Andrey.

Tentative patch:
diff --git a/gcc/sel-sched.c b/gcc/sel-sched.c
index 87a483a231e..88d8c50b508 100644
--- a/gcc/sel-sched.c
+++ b/gcc/sel-sched.c
@@ -3369,6 +3369,8 @@ sel_rank_for_schedule (const void *x, const void *y)
       if (VINSN_UNIQUE_P (tmp_vinsn) && VINSN_UNIQUE_P (tmp2_vinsn))
         return SCHED_GROUP_P (tmp2_insn) ? 1 : -1;

+      gcc_checking_assert (VINSN_UNIQUE_P (tmp_vinsn)
+                           || VINSN_UNIQUE_P (tmp2_vinsn));
       /* Now uniqueness means SCHED_GROUP_P is set, because schedule groups
          cannot be cloned.  */
       if (VINSN_UNIQUE_P (tmp2_vinsn))
@@ -3397,7 +3399,7 @@ sel_rank_for_schedule (const void *x, const void *y)
     return 1;

   /* Prefer an expr with greater priority.  */
-  if (EXPR_USEFULNESS (tmp) != 0 && EXPR_USEFULNESS (tmp2) != 0)
+  if (EXPR_USEFULNESS (tmp) != 0 || EXPR_USEFULNESS (tmp2) != 0)
     {
       int p2 = EXPR_PRIORITY (tmp2) + EXPR_PRIORITY_ADJ (tmp2),
           p1 = EXPR_PRIORITY (tmp) + EXPR_PRIORITY_ADJ (tmp);
>From gcc-bugs-return-577128-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 13:44:24 2017
Return-Path: <gcc-bugs-return-577128-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 74186 invoked by alias); 2 Oct 2017 13:44: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 69593 invoked by uid 48); 2 Oct 2017 13:44:19 -0000
From: "antoshkka at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82404] New: Unnecessary instructions in switch table
Date: Mon, 02 Oct 2017 13:44:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: 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-82404-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00188.txt.bz2
Content-length: 1687

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82404

            Bug ID: 82404
           Summary: Unnecessary instructions in switch table
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: antoshkka at gmail dot com
  Target Milestone: ---

Following code

enum class eShape { eSquare, eCircle, eShpere, eTetraeder };

double test_switch_native(eShape shape, double r) {
    switch(shape) {
    case eShape::eSquare:    return 17;
    case eShape::eCircle:    return 16;
    case eShape::eShpere:    return 21;
    case eShape::eTetraeder: return 0;
    }
}

with flags -O2 and -O3 produces assembly:

test_switch_native(eShape, double):
  cmp edi, 3       <== do not need this
  ja .L2           <== do not need this
  mov edi, edi     <== do not need this
  movsd xmm0, QWORD PTR CSWTCH.0[0+rdi*8]
  ret
.L2:
  rep ret          <== do not need this
CSWTCH.0:
  .long 0
  .long 1076953088
  .long 0
  .long 1076887552
  .long 0
  .long 1077215232
  .long 0
  .long 0


Clang produces much sorter assembly:

test_switch_native(eShape, double):         # @test_switch_native(eShape,
double)
        movsxd  rax, edi
        movsd   xmm0, qword ptr [8*rax +
.Lswitch.table._Z18test_switch_native6eShaped] # xmm0 = mem[0],zero
        ret
.Lswitch.table._Z18test_switch_native6eShaped:
        .quad   4625478292286210048     # double 17
        .quad   4625196817309499392     # double 16
        .quad   4626604192193052672     # double 21
        .quad   0                       # double 0
>From gcc-bugs-return-577129-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 13:46:16 2017
Return-Path: <gcc-bugs-return-577129-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 86679 invoked by alias); 2 Oct 2017 13:46: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 86623 invoked by uid 48); 2 Oct 2017 13:46:12 -0000
From: "pault at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82375] PDT components in PDT declarations fail to compile
Date: Mon, 02 Oct 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: fortran
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pault at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: pault at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-82375-4-u92VcGpFYc@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82375-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82375-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00189.txt.bz2
Content-length: 387

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82375

--- Comment #4 from Paul Thomas <pault at gcc dot gnu.org> ---
Created attachment 42284
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42284&action=edit
Provisional patch for the PR

I need to do a bit more to complete this fix in order that allocatable
components are treated correctly.

It is regtesting right now.

Paul
>From gcc-bugs-return-577130-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 13:47:08 2017
Return-Path: <gcc-bugs-return-577130-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 96878 invoked by alias); 2 Oct 2017 13:47: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 96765 invoked by uid 48); 2 Oct 2017 13:47:03 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82386] [8 Regression] internal compiler error: Segmentation fault on 32-bit powerpc BE targets
Date: Mon, 02 Oct 2017 13:47:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82386-4-HULcd1lbYj@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82386-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82386-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00190.txt.bz2
Content-length: 4139

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82386

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
So one option is to defer the splitting after we've processed the whole
this_basic_block, like:
--- combine.c.jj        2017-09-15 17:53:28.000000000 +0200
+++ combine.c   2017-10-02 15:43:53.102116326 +0200
@@ -1498,6 +1498,36 @@ combine_instructions (rtx_insn *f, unsig
 retry:
          ;
        }
+      if ((new_direct_jump_p & 2) != 0)
+       {
+         /* Some conditional traps were turned into unconditional ones.
+            Split basic block after them.  */
+         new_direct_jump_p = 1;
+         for (insn = BB_HEAD (this_basic_block);
+              insn != NEXT_INSN (BB_END (this_basic_block));
+              insn = next)
+           {
+             next = NEXT_INSN (insn);
+             if (NONDEBUG_INSN_P (insn)
+                 && GET_CODE (PATTERN (insn)) == TRAP_IF
+                 && XEXP (PATTERN (insn), 0) == const1_rtx)
+               {
+                 if (insn == BB_END (this_basic_block)
+                     && EDGE_COUNT (this_basic_block->succs) == 0)
+                   {
+                     emit_barrier_after_bb (this_basic_block);
+                     break;
+                   }
+                 basic_block bb = BLOCK_FOR_INSN (insn);
+                 gcc_assert (bb == this_basic_block);
+                 edge e = split_block (bb, insn);
+                 this_basic_block = e->dest;
+                 remove_edge (e);
+                 emit_barrier_after_bb (bb);
+                 next = BB_HEAD (this_basic_block);
+               }
+           }
+       }
     }

   default_rtl_profile ();
@@ -4659,7 +4689,7 @@ try_combine (rtx_insn *i3, rtx_insn *i2,
      has been created.  Adjust the CFG accordingly.  */
   if (returnjump_p (i3) || any_uncondjump_p (i3))
     {
-      *new_direct_jump_p = 1;
+      *new_direct_jump_p |= 1;
       mark_jump_label (PATTERN (i3), i3, 0);
       update_cfg_for_uncondjump (i3);
     }
@@ -4668,7 +4698,7 @@ try_combine (rtx_insn *i3, rtx_insn *i2,
       && (returnjump_p (undobuf.other_insn)
          || any_uncondjump_p (undobuf.other_insn)))
     {
-      *new_direct_jump_p = 1;
+      *new_direct_jump_p |= 1;
       update_cfg_for_uncondjump (undobuf.other_insn);
     }

@@ -4676,10 +4706,8 @@ try_combine (rtx_insn *i3, rtx_insn *i2,
       && XEXP (PATTERN (i3), 0) == const1_rtx)
     {
       basic_block bb = BLOCK_FOR_INSN (i3);
-      gcc_assert (bb);
-      remove_edge (split_block (bb, i3));
-      emit_barrier_after_bb (bb);
-      *new_direct_jump_p = 1;
+      gcc_assert (bb && this_basic_block == bb);
+      *new_direct_jump_p |= 2;
     }

   if (undobuf.other_insn
@@ -4687,10 +4715,8 @@ try_combine (rtx_insn *i3, rtx_insn *i2,
       && XEXP (PATTERN (undobuf.other_insn), 0) == const1_rtx)
     {
       basic_block bb = BLOCK_FOR_INSN (undobuf.other_insn);
-      gcc_assert (bb);
-      remove_edge (split_block (bb, undobuf.other_insn));
-      emit_barrier_after_bb (bb);
-      *new_direct_jump_p = 1;
+      gcc_assert (bb && this_basic_block == bb);
+      *new_direct_jump_p |= 2;
     }

   /* A noop might also need cleaning up of CFG, if it comes from the
@@ -4700,7 +4726,7 @@ try_combine (rtx_insn *i3, rtx_insn *i2,
       && SET_SRC (newpat) == pc_rtx
       && SET_DEST (newpat) == pc_rtx)
     {
-      *new_direct_jump_p = 1;
+      *new_direct_jump_p |= 1;
       update_cfg_for_uncondjump (i3);
     }

@@ -4710,7 +4736,7 @@ try_combine (rtx_insn *i3, rtx_insn *i2,
       && SET_SRC (PATTERN (undobuf.other_insn)) == pc_rtx
       && SET_DEST (PATTERN (undobuf.other_insn)) == pc_rtx)
     {
-      *new_direct_jump_p = 1;
+      *new_direct_jump_p |= 1;
       update_cfg_for_uncondjump (undobuf.other_insn);
     }

Another option I'm going to try next is ignore any try_combine in basic blocks
without predecessors, those are necessarily dead and going to be purged
afterwards, so I fail to see why we should be wasting time to combine anything
in there.
>From gcc-bugs-return-577131-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 13:49:10 2017
Return-Path: <gcc-bugs-return-577131-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 22690 invoked by alias); 2 Oct 2017 13:49: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 17974 invoked by uid 48); 2 Oct 2017 13:49:06 -0000
From: "jamborm at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82363] [8 Regression] wrong code at -O1, -O2 and -O3 on x86_64-linux-gnu
Date: Mon, 02 Oct 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: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jamborm at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jamborm at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82363-4-u4IRlJx6rV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82363-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82363-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00191.txt.bz2
Content-length: 624

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82363

--- Comment #3 from Martin Jambor <jamborm at gcc dot gnu.org> ---
I'm testing the following fix:

diff --git a/gcc/tree-sra.c b/gcc/tree-sra.c
index f5675edc7f1..bac593951e7 100644
--- a/gcc/tree-sra.c
+++ b/gcc/tree-sra.c
@@ -2691,7 +2691,7 @@ propagate_subaccesses_across_link (struct access *lacc,
struct access *racc)
            }
          else
            {
-             if (rchild->grp_write && !lacc->grp_write)
+             if (!lacc->grp_write)
                {
                  ret = true;
                  subtree_mark_written_and_enqueue (lacc);
>From gcc-bugs-return-577132-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 13:49:10 2017
Return-Path: <gcc-bugs-return-577132-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 22940 invoked by alias); 2 Oct 2017 13:49: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 18623 invoked by uid 48); 2 Oct 2017 13:49:06 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/82404] Unnecessary instructions in switch table
Date: Mon, 02 Oct 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:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pinskia at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: component
Message-ID: <bug-82404-4-HBiF0zOVwi@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82404-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82404-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00192.txt.bz2
Content-length: 443

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82404

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|target                      |middle-end

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Is this c or c++ code?  The rules for enum are different between c and c++.
>From gcc-bugs-return-577133-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 13:50:39 2017
Return-Path: <gcc-bugs-return-577133-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 68724 invoked by alias); 2 Oct 2017 13:50: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 59891 invoked by uid 48); 2 Oct 2017 13:50:34 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/82404] Unnecessary instructions in switch table
Date: Mon, 02 Oct 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: middle-end
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pinskia at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82404-4-qiRj9Xg9w4@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82404-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82404-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00193.txt.bz2
Content-length: 223

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82404

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Oh this has to be c++ because of enum class.  


So gcc just does not use the undefinedness here.
>From gcc-bugs-return-577134-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 13:51:10 2017
Return-Path: <gcc-bugs-return-577134-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 93068 invoked by alias); 2 Oct 2017 13:51: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 92978 invoked by uid 48); 2 Oct 2017 13:51:06 -0000
From: "antoshkka at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82405] New: Function not inlined for switch and suboptimal assembly is generated
Date: Mon, 02 Oct 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: 8.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-82405-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00194.txt.bz2
Content-length: 1837

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82405

            Bug ID: 82405
           Summary: Function not inlined for switch and suboptimal
                    assembly is generated
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: antoshkka at gmail dot com
  Target Milestone: ---

Following code 

enum class eShape { eSquare, eCircle, eShpere, eTetraeder };

static inline double eval_square(double r) { return 4 * r*r; }
static inline double eval_circle(double r) { return 3.1415 * r * r; }
static inline double eval_sphere(double r) { return 4 * 3.1415 * r * r; }
static inline double eval_tetraeder(double r) { return 24 * 1.73205 * r*r; }

double test_switch_native(eShape shape, double r) {
    switch(shape) {
    case eShape::eSquare:    return eval_square(r);
    case eShape::eCircle:    return eval_circle(r);
    case eShape::eShpere:    return eval_sphere(r);
    case eShape::eTetraeder: return eval_tetraeder(r);
    }
}

Produces very long suboptimal assembly output with -O2 and -O3.

Clang inlines the functions and merges the common `r*r` part:

test_switch_native(eShape, double):         # @test_switch_native(eShape,
double)
        movsxd  rax, edi
        movsd   xmm1, qword ptr [8*rax +
.Lswitch.table._Z18test_switch_native6eShaped] # xmm1 = mem[0],zero
        mulsd   xmm1, xmm0
        mulsd   xmm0, xmm1
        ret
.Lswitch.table._Z18test_switch_native6eShaped:
        .quad   4616189618054758400     # double 4
        .quad   4614256447914709615     # double 3.1415000000000002
        .quad   4623263647169450607     # double 12.566000000000001
        .quad   4631047162110439693     # double 41.569200000000002
>From gcc-bugs-return-577135-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 14:06:28 2017
Return-Path: <gcc-bugs-return-577135-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 118899 invoked by alias); 2 Oct 2017 14:06: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 118823 invoked by uid 48); 2 Oct 2017 14:06:23 -0000
From: "wilco at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/82396] qsort comparator non-negative on sorted output: 4 in ready_sort_real in haifa scheduler
Date: Mon, 02 Oct 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: rtl-optimization
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wilco at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: wilco at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc assigned_to everconfirmed
Message-ID: <bug-82396-4-cWv3TDpJC5@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82396-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82396-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00195.txt.bz2
Content-length: 550

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82396

Wilco <wilco at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-10-02
                 CC|                            |wilco at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |wilco at gcc dot gnu.org
     Ever confirmed|0                           |1
>From gcc-bugs-return-577137-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 14:16:02 2017
Return-Path: <gcc-bugs-return-577137-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 15380 invoked by alias); 2 Oct 2017 14:16:02 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 15191 invoked by uid 48); 2 Oct 2017 14:15:58 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82386] [8 Regression] internal compiler error: Segmentation fault on 32-bit powerpc BE targets
Date: Mon, 02 Oct 2017 14:16:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-82386-4-uHfOj4pikh@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82386-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82386-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00197.txt.bz2
Content-length: 280

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82386

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 42285
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42285&action=edit
gcc8-pr82386.patch

This patch implements the latter option.
>From gcc-bugs-return-577136-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 14:16:02 2017
Return-Path: <gcc-bugs-return-577136-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 15368 invoked by alias); 2 Oct 2017 14:16:02 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 15154 invoked by uid 48); 2 Oct 2017 14:15:57 -0000
From: "qing.zhao at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81357] Extra mov for zero extend of add
Date: Mon, 02 Oct 2017 14: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: missed-optimization, ra
X-Bugzilla-Severity: normal
X-Bugzilla-Who: qing.zhao at oracle dot com
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: qing.zhao at oracle dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81357-4-O2a0m9qsAr@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81357-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81357-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00196.txt.bz2
Content-length: 1433

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81357

--- Comment #10 from Qing Zhao <qing.zhao at oracle dot com> ---
the following is my conclusion on this bug based on previous discussion and
study, for this testing case:

  1. due to the fact that  "mov" and "uxtw" are the same instruction, the
assembly generated by -O1 and -O2 are exactly the same except 
     A. the order of the instructions (this is due to the instruction
scheduling applied in -O2). 
     B. the registers used in difference instructions. 

  2. I agree with Wilco's comments in comment 7:
"The compiler believes there are 2 distinct values so it uses 2 registers
irrespectively of the order"

i.e, for the testing case:

 1 unsigned long long d;
 2 unsigned int test1(unsigned int fParm)
 3 {
 4   d = fParm + 1;
 5   return fParm + 1;
 6 }

at line 4 and 5,  the result of fparm + 1 has two different usages:
        * one is at line 4,  convert to unsigned long long first,  and then
assign to the global d;
        * the other is at line 5, directly return as the return result of the
routine. 

the compiler has to use 2 different registers for these two different values. 

So, I think that the compiler does NOT do anything wrong for this testing case.
the additional "mov" or "uxtw" instruction that is claimed in comment 1
actually is necessary and should NOT be deleted. 

I think that this bug could be closed as not a bug.
>From gcc-bugs-return-577138-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 14:28:15 2017
Return-Path: <gcc-bugs-return-577138-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 71992 invoked by alias); 2 Oct 2017 14:28: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 71458 invoked by uid 48); 2 Oct 2017 14:28:09 -0000
From: "schwab@linux-m68k.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/82396] qsort comparator non-negative on sorted output: 4 in ready_sort_real in haifa scheduler
Date: Mon, 02 Oct 2017 14:28:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: build, ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: schwab@linux-m68k.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: wilco at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords cf_gcctarget cf_gcchost target_milestone
Message-ID: <bug-82396-4-mDyNsQaYNT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82396-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82396-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00198.txt.bz2
Content-length: 2291

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82396

Andreas Schwab <schwab@linux-m68k.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |build
             Target|arm-linux-gnueabi-gcc       |arm-*-*, aarch64-*-*
               Host|x86_64-pc-linux-gnu         |
   Target Milestone|---                         |8.0

--- Comment #1 from Andreas Schwab <schwab@linux-m68k.org> ---
This also fails on aarch64, during boostrap:

In file included from
/opt/gcc/gcc-20171002/Build/aarch64-suse-linux/libstdc++-v3/include/deque:66:0,
                 from
/opt/gcc/gcc-20171002/Build/aarch64-suse-linux/libstdc++-v3/include/stack:60,
                 from ../../../../../libstdc++-v3/src/filesystem/ops.cc:32:
/opt/gcc/gcc-20171002/Build/aarch64-suse-linux/libstdc++-v3/include/bits/deque.tcc:
In member function 'void std::deque<_Tp,
_Alloc>::_M_range_insert_aux(std::deque<_Tp, _Alloc>::iterator,
_ForwardIterator, _ForwardIterator, std::forward_iterator_tag) [with
_ForwardIterator = std::experimental::filesystem::v1::__cxx11::path::iterator;
_Tp = std::experimental::filesystem::v1::__cxx11::path; _Alloc =
std::allocator<std::experimental::filesystem::v1::__cxx11::path>]':
/opt/gcc/gcc-20171002/Build/aarch64-suse-linux/libstdc++-v3/include/bits/deque.tcc:626:7:
error: qsort comparator non-negative on sorted output: 8
       }
       ^
during RTL pass: sched2
/opt/gcc/gcc-20171002/Build/aarch64-suse-linux/libstdc++-v3/include/bits/deque.tcc:626:7:
internal compiler error: qsort checking failed
0x5c2cf3 qsort_chk_error
        ../../gcc/vec.c:222
0x15242f3 qsort_chk(void*, unsigned long, unsigned long, int (*)(void const*,
void const*))
        ../../gcc/vec.c:274
0x1433717 ready_sort_real
        ../../gcc/haifa-sched.c:3087
0x143af53 schedule_block(basic_block_def**, void*)
        ../../gcc/haifa-sched.c:6749
0xd84a5b schedule_region
        ../../gcc/sched-rgn.c:3174
0xd84a5b schedule_insns()
        ../../gcc/sched-rgn.c:3513
0xd84f03 schedule_insns()
        ../../gcc/sched-rgn.c:3498
0xd84f03 rest_of_handle_sched2
        ../../gcc/sched-rgn.c:3737
0xd84f03 execute
        ../../gcc/sched-rgn.c:3873
>From gcc-bugs-return-577139-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 14:32:25 2017
Return-Path: <gcc-bugs-return-577139-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 79188 invoked by alias); 2 Oct 2017 14:32: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 79060 invoked by uid 48); 2 Oct 2017 14:32:19 -0000
From: "wilco at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/82396] qsort comparator non-negative on sorted output: 4 in ready_sort_real in haifa scheduler
Date: Mon, 02 Oct 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: rtl-optimization
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: build, ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wilco at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: wilco at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82396-4-9Jol0z2zXY@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82396-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82396-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00199.txt.bz2
Content-length: 208

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82396

--- Comment #2 from Wilco <wilco at gcc dot gnu.org> ---
I've got a simple patch that fixes the AArch64 bootstrap failure. This should
fix ARM as well.
>From gcc-bugs-return-577140-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 14:36:28 2017
Return-Path: <gcc-bugs-return-577140-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 82654 invoked by alias); 2 Oct 2017 14:36:28 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 82608 invoked by uid 48); 2 Oct 2017 14:36:23 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82406] New: [7 Regression] Rejects a valid snippet
Date: Mon, 02 Oct 2017 14:36:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cc target_milestone
Message-ID: <bug-82406-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00200.txt.bz2
Content-length: 1327

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82406

            Bug ID: 82406
           Summary: [7 Regression] Rejects a valid snippet
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: jason at gcc dot gnu.org
  Target Milestone: ---

Following code snippet (reduced from Chromium) is rejected with GCC 7.x:

$ cat error.ii
class a
{
public:
  template <typename b> void operator() (b &&);
};
void c () throw () __attribute__ ((__nonnull__));
void
d ()
{
  a e;
  e (c);
}

$ g++-7 -std=c++17 -c error.ii
error.ii: In function ‘void d()’:
error.ii:11:7: error: no match for call to ‘(a) (void (&)() noexcept)’
   e (c);
       ^
error.ii:4:30: note: candidate: void a::operator()(b&&) [with b = void (&)()
noexcept]
   template <typename b> void operator() (b &&);
                              ^~~~~~~~
error.ii:4:30: note:   no known conversion for argument 1 from ‘void()
noexcept’ to ‘void (&)() noexcept’

It's accepted on trunk since r251911 and started to be rejected with r241944.
>From gcc-bugs-return-577141-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 14:36:54 2017
Return-Path: <gcc-bugs-return-577141-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 83585 invoked by alias); 2 Oct 2017 14:36:54 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 83546 invoked by uid 48); 2 Oct 2017 14:36:51 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82406] [7 Regression] Rejects a valid snippet
Date: Mon, 02 Oct 2017 14:36:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cf_reconfirmed_on target_milestone
Message-ID: <bug-82406-4-UK1somNX5Y@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82406-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82406-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00201.txt.bz2
Content-length: 354

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82406

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2017-10-2
   Target Milestone|---                         |7.3
>From gcc-bugs-return-577142-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 14:38:04 2017
Return-Path: <gcc-bugs-return-577142-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 95140 invoked by alias); 2 Oct 2017 14:38: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 91980 invoked by uid 48); 2 Oct 2017 14:38:00 -0000
From: "xerofoify at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug translation/80188] calls.c: reason argument to maybe_complain_about_tail_call must be marked for translation
Date: Mon, 02 Oct 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: translation
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: diagnostic, easyhack
X-Bugzilla-Severity: trivial
X-Bugzilla-Who: xerofoify 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-80188-4-OKqvQczkOV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80188-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80188-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00202.txt.bz2
Content-length: 420

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80188

nik <xerofoify at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |xerofoify at gmail dot com

--- Comment #2 from nik <xerofoify at gmail dot com> ---
I am working on this but the tester was breaking for me.
>From gcc-bugs-return-577143-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 14:39:36 2017
Return-Path: <gcc-bugs-return-577143-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 109806 invoked by alias); 2 Oct 2017 14:39:36 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 109750 invoked by uid 48); 2 Oct 2017 14:39:32 -0000
From: "wilco at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81357] Extra mov for zero extend of add
Date: Mon, 02 Oct 2017 14:39:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization, ra
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wilco at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: qing.zhao at oracle dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81357-4-gTx8UDg6Sb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81357-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81357-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00203.txt.bz2
Content-length: 1798

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81357

--- Comment #11 from Wilco <wilco at gcc dot gnu.org> ---
(In reply to Qing Zhao from comment #10)
> the following is my conclusion on this bug based on previous discussion and
> study, for this testing case:
> 
>   1. due to the fact that  "mov" and "uxtw" are the same instruction, the
> assembly generated by -O1 and -O2 are exactly the same except 
>      A. the order of the instructions (this is due to the instruction
> scheduling applied in -O2). 
>      B. the registers used in difference instructions. 
> 
>   2. I agree with Wilco's comments in comment 7:
> "The compiler believes there are 2 distinct values so it uses 2 registers
> irrespectively of the order"
> 
> i.e, for the testing case:
> 
>  1 unsigned long long d;
>  2 unsigned int test1(unsigned int fParm)
>  3 {
>  4   d = fParm + 1;
>  5   return fParm + 1;
>  6 }
> 
> at line 4 and 5,  the result of fparm + 1 has two different usages:
> 	* one is at line 4,  convert to unsigned long long first,  and then assign
> to the global d;
> 	* the other is at line 5, directly return as the return result of the
> routine. 
> 
> the compiler has to use 2 different registers for these two different
> values. 
> 
> So, I think that the compiler does NOT do anything wrong for this testing
> case.
> the additional "mov" or "uxtw" instruction that is claimed in comment 1
> actually is necessary and should NOT be deleted. 
> 
> I think that this bug could be closed as not a bug.

Well it is not wrong, just non-optimal. It is possible to use a single register
here but it means teaching GCC that these values are identical, which is
non-trivial as it likely affects various places in the mid-end (this issue is
target-independent).
>From gcc-bugs-return-577144-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 14:56:51 2017
Return-Path: <gcc-bugs-return-577144-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 64539 invoked by alias); 2 Oct 2017 14:56:51 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 31149 invoked by uid 48); 2 Oct 2017 14:56:43 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82381] [8 Regression] internal compiler error: qsort checking failed
Date: Mon, 02 Oct 2017 14:56:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-checking
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82381-4-vRJxp30hlx@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82381-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82381-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00204.txt.bz2
Content-length: 507

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82381

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Richard, this is something you've suggested in:
http://gcc.gnu.org/ml/gcc-patches/2016-05/msg01871.html
To answer my question from:
http://gcc.gnu.org/ml/gcc-patches/2016-05/msg01873.html
the bb_rank can be the same for different bbs, if we have more than 65536 basic
blocks on 32-bit hosts.

So, I think we should go for reversion of msg01871.html and instead apply the
other patch.
>From gcc-bugs-return-577145-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 14:57:06 2017
Return-Path: <gcc-bugs-return-577145-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 113004 invoked by alias); 2 Oct 2017 14:57:06 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 94361 invoked by uid 48); 2 Oct 2017 14:57:02 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82406] [7 Regression] Rejects a valid snippet
Date: Mon, 02 Oct 2017 14:57:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: 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: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_known_to_work version everconfirmed cf_known_to_fail
Message-ID: <bug-82406-4-JqNKPfKmu6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82406-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82406-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00205.txt.bz2
Content-length: 512

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82406

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
      Known to work|                            |6.4.0, 8.0
            Version|unknown                     |7.2.1
     Ever confirmed|0                           |1
      Known to fail|                            |7.2.1
>From gcc-bugs-return-577146-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 14:59:48 2017
Return-Path: <gcc-bugs-return-577146-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 63077 invoked by alias); 2 Oct 2017 14: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 59476 invoked by uid 48); 2 Oct 2017 14:59:44 -0000
From: "amonakov at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82397] qsort comparator non-negative on sorted output: 1 in vect_analyze_data_ref_accesses
Date: Mon, 02 Oct 2017 14:59:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: ice-on-valid-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: cc
Message-ID: <bug-82397-4-i2Hws1g4uY@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82397-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82397-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00206.txt.bz2
Content-length: 1131

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82397

Alexander Monakov <amonakov at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |amonakov at gcc dot gnu.org

--- Comment #1 from Alexander Monakov <amonakov at gcc dot gnu.org> ---
This is because operand_equal_p is "smarter" than data_ref_compare_tree. We
have something like

A: (long)_1 + (_2 + _3)
B: (_2 + _4) + (long)_1
C: (_2 + _3) + (long)_1

with A == C != B according to operand_equal_p (and A < B < C according to
data_ref_compare_tree), making comparison steps like this non-transitive:

  if (!operand_equal_p (DR_BASE_ADDRESS (dra), DR_BASE_ADDRESS (drb), 0))
    {
      cmp = data_ref_compare_tree (DR_BASE_ADDRESS (dra),
                                   DR_BASE_ADDRESS (drb));


Perhaps additive chains in compared operands should be canonicalized first so
that if two items are equal according to operand_equal_p they're also
guaranteed to be equal according to data_ref_compare_tree?
>From gcc-bugs-return-577147-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 15:31:45 2017
Return-Path: <gcc-bugs-return-577147-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 67872 invoked by alias); 2 Oct 2017 15:31: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 67779 invoked by uid 48); 2 Oct 2017 15:31:41 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82381] [8 Regression] internal compiler error: qsort checking failed
Date: Mon, 02 Oct 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: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-checking
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to attachments.created
Message-ID: <bug-82381-4-vPgh04WXro@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82381-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82381-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00207.txt.bz2
Content-length: 585

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82381

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |jakub at gcc dot gnu.org

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 42286
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42286&action=edit
gcc8-pr82381.patch

Something like this.
>From gcc-bugs-return-577148-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 15:34:51 2017
Return-Path: <gcc-bugs-return-577148-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 70505 invoked by alias); 2 Oct 2017 15:34:50 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 70445 invoked by uid 48); 2 Oct 2017 15:34:47 -0000
From: "bunk at stusta dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/82364] [7 Regression] Enormous memory usage when building for 32bit i386 with >= -O1
Date: Mon, 02 Oct 2017 15:34:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: memory-hog
X-Bugzilla-Severity: normal
X-Bugzilla-Who: bunk at stusta dot de
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: short_desc
Message-ID: <bug-82364-4-QFoXbP51PU@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82364-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82364-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00208.txt.bz2
Content-length: 962

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82364

Adrian Bunk <bunk at stusta dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[7 Regression] Enormous     |[7 Regression] Enormous
                   |memory usage when building  |memory usage when building
                   |on 32bit i386 with >= -O1   |for 32bit i386 with >= -O1

--- Comment #2 from Adrian Bunk <bunk at stusta dot de> ---
(In reply to Richard Biener from comment #1)
> Can you provide output of the compile command with -v appended so we can see
> the different default flags passed for both the 32bit compile and the 64bit
> -m32 compile?

Thanks for asking, looking at the output I realized that I made the stupid
mistake of running gcc 6 in the 64bit -m32 compile.

The 64bit -m32 compile succeeds with gcc-7, but it actually has 5.5 GB memory
usage.
>From gcc-bugs-return-577149-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 15:38:20 2017
Return-Path: <gcc-bugs-return-577149-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 82322 invoked by alias); 2 Oct 2017 15:38: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 82122 invoked by uid 48); 2 Oct 2017 15:38:16 -0000
From: "amonakov at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/82407] New: [8 Regression][meta-bug] qsort_chk fallout tracking
Date: Mon, 02 Oct 2017 15:38: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: ice-checking
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 dependson target_milestone
Message-ID: <bug-82407-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00209.txt.bz2
Content-length: 1791

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82407

            Bug ID: 82407
           Summary: [8 Regression][meta-bug] qsort_chk fallout tracking
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Keywords: ice-checking
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: amonakov at gcc dot gnu.org
        Depends on: 82381, 82395, 82396, 82397, 82398, 82401
  Target Milestone: ---

Checking qsort comparator validity (transitivity and anti-commutativity
properties) reveals some inconsistent comparators. This meta-bug depends on
bugs filed for individual issues.

This is not strictly a gcc-8 regression, issues could have been present for a
long time, they just started causing a non-release-checking ICE.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82381
[Bug 82381] [8 Regression] internal compiler error: qsort checking failed
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82395
[Bug 82395] [8 Regression] qsort comparator non-negative on sorted output: 1 in
color_allocnos
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82396
[Bug 82396] qsort comparator non-negative on sorted output: 4 in
ready_sort_real in haifa scheduler
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82397
[Bug 82397] qsort comparator non-negative on sorted output: 1 in
vect_analyze_data_ref_accesses
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82398
[Bug 82398] error: qsort comparator non-negative on sorted output: 2 in
fill_vec_av_set at gcc/sel-sched.c:3725
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82401
[Bug 82401] error: qsort comparator non-negative on sorted output: 1 in
insert_late_enum_def_bindings on an invalid code
>From gcc-bugs-return-577150-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 15:42:19 2017
Return-Path: <gcc-bugs-return-577150-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 17846 invoked by alias); 2 Oct 2017 15: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 15169 invoked by uid 48); 2 Oct 2017 15:42:15 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/82390] gcc.dg/torture tests run with same optimization level
Date: Mon, 02 Oct 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:
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: attachments.created
Message-ID: <bug-82390-4-CyyPzz8HBW@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82390-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82390-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00210.txt.bz2
Content-length: 234

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82390

--- Comment #3 from Tom de Vries <vries at gcc dot gnu.org> ---
Created attachment 42287
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42287&action=edit
tentative patch
>From gcc-bugs-return-577151-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 15:44:51 2017
Return-Path: <gcc-bugs-return-577151-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 28316 invoked by alias); 2 Oct 2017 15: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 28157 invoked by uid 55); 2 Oct 2017 15:44:43 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82387] [8 Regression] wrong code at -O1 and -Os on x86_64-linux-gnu in 64-bit mode
Date: Mon, 02 Oct 2017 15:44:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82387-4-kswfd7t98M@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82387-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82387-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00213.txt.bz2
Content-length: 911

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82387

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Mon Oct  2 15:44:10 2017
New Revision: 253356

URL: https://gcc.gnu.org/viewcvs?rev=253356&root=gcc&view=rev
Log:
        PR tree-optimization/82387
        PR tree-optimization/82388
        PR tree-optimization/82389
        * tree-ssa-dse.c (dse_classify_store): Test byte_tracking_enabled
        instead of live_bytes non-NULL.

        * gcc.c-torture/compile/pr82389.c: New test.
        * gcc.c-torture/execute/pr82387.c: New test.
        * gcc.c-torture/execute/pr82388.c: New test.

Added:
    trunk/gcc/testsuite/gcc.c-torture/compile/pr82389.c
    trunk/gcc/testsuite/gcc.c-torture/execute/pr82387.c
    trunk/gcc/testsuite/gcc.c-torture/execute/pr82388.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-ssa-dse.c
>From gcc-bugs-return-577153-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 15:44:51 2017
Return-Path: <gcc-bugs-return-577153-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 28354 invoked by alias); 2 Oct 2017 15: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 28161 invoked by uid 55); 2 Oct 2017 15:44:43 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82388] [8 Regression] wrong code at -O1 and above on x86_64-linux-gnu in 32-bit mode
Date: Mon, 02 Oct 2017 15:44:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82388-4-seflLiprLj@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82388-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82388-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00212.txt.bz2
Content-length: 911

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82388

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Mon Oct  2 15:44:10 2017
New Revision: 253356

URL: https://gcc.gnu.org/viewcvs?rev=253356&root=gcc&view=rev
Log:
        PR tree-optimization/82387
        PR tree-optimization/82388
        PR tree-optimization/82389
        * tree-ssa-dse.c (dse_classify_store): Test byte_tracking_enabled
        instead of live_bytes non-NULL.

        * gcc.c-torture/compile/pr82389.c: New test.
        * gcc.c-torture/execute/pr82387.c: New test.
        * gcc.c-torture/execute/pr82388.c: New test.

Added:
    trunk/gcc/testsuite/gcc.c-torture/compile/pr82389.c
    trunk/gcc/testsuite/gcc.c-torture/execute/pr82387.c
    trunk/gcc/testsuite/gcc.c-torture/execute/pr82388.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-ssa-dse.c
>From gcc-bugs-return-577152-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 15:44:50 2017
Return-Path: <gcc-bugs-return-577152-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 28335 invoked by alias); 2 Oct 2017 15: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 28164 invoked by uid 55); 2 Oct 2017 15:44:43 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82389] [8 Regression] ICE on valid code on x86_64-linux-gnu: Segmentation fault
Date: Mon, 02 Oct 2017 15:44:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82389-4-CPZG7jz10D@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82389-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82389-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00211.txt.bz2
Content-length: 911

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82389

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Mon Oct  2 15:44:10 2017
New Revision: 253356

URL: https://gcc.gnu.org/viewcvs?rev=253356&root=gcc&view=rev
Log:
        PR tree-optimization/82387
        PR tree-optimization/82388
        PR tree-optimization/82389
        * tree-ssa-dse.c (dse_classify_store): Test byte_tracking_enabled
        instead of live_bytes non-NULL.

        * gcc.c-torture/compile/pr82389.c: New test.
        * gcc.c-torture/execute/pr82387.c: New test.
        * gcc.c-torture/execute/pr82388.c: New test.

Added:
    trunk/gcc/testsuite/gcc.c-torture/compile/pr82389.c
    trunk/gcc/testsuite/gcc.c-torture/execute/pr82387.c
    trunk/gcc/testsuite/gcc.c-torture/execute/pr82388.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-ssa-dse.c
>From gcc-bugs-return-577154-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 15:51:45 2017
Return-Path: <gcc-bugs-return-577154-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 60848 invoked by alias); 2 Oct 2017 15:51: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 60789 invoked by uid 48); 2 Oct 2017 15:51:41 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/79768] `-Wmaybe-uninitialized' false positive with optimisation
Date: Mon, 02 Oct 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: middle-end
X-Bugzilla-Version: 5.3.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: law at redhat dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79768-4-mJRlNS84ae@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79768-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79768-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00214.txt.bz2
Content-length: 286

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79768

--- Comment #8 from Jeffrey A. Law <law at redhat dot com> ---
Understood on your hardware limitations.

You could certainly do bisection work on the compile farm.

Again, thanks for your work on cleaning up some of this old stuff.
>From gcc-bugs-return-577155-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 16:03:41 2017
Return-Path: <gcc-bugs-return-577155-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 129714 invoked by alias); 2 Oct 2017 16:03: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 129658 invoked by uid 48); 2 Oct 2017 16:03:38 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/82384] [8 Regression] s-taprop.adb failed to compile for x32
Date: Mon, 02 Oct 2017 16:03:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: ada
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ebotcazou at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ebotcazou at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.isobsolete bug_status assigned_to attachments.created
Message-ID: <bug-82384-4-NbUFEjYGLt@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82384-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82384-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00215.txt.bz2
Content-length: 722

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82384

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #42277|0                           |1
        is obsolete|                            |
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |ebotcazou at gcc dot gnu.org

--- Comment #9 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Created attachment 42288
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42288&action=edit
Better fix

Let's use this one instead to avoid future problems.
>From gcc-bugs-return-577156-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 16:13:03 2017
Return-Path: <gcc-bugs-return-577156-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 29466 invoked by alias); 2 Oct 2017 16:13: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 29403 invoked by uid 48); 2 Oct 2017 16:12:59 -0000
From: "segher at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82386] [8 Regression] internal compiler error: Segmentation fault on 32-bit powerpc BE targets
Date: Mon, 02 Oct 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: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: segher at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: 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-82386-4-dRpkL87zfs@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82386-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82386-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00216.txt.bz2
Content-length: 188

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82386

--- Comment #4 from Segher Boessenkool <segher at gcc dot gnu.org> ---
I like that last patch.  Pre-approved if it works :-)

Thanks!
>From gcc-bugs-return-577157-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 16:18:53 2017
Return-Path: <gcc-bugs-return-577157-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 33123 invoked by alias); 2 Oct 2017 16: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 33080 invoked by uid 48); 2 Oct 2017 16:18:48 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/82390] gcc.dg/torture tests run with same optimization level
Date: Mon, 02 Oct 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: testsuite
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: attachments.isobsolete attachments.created
Message-ID: <bug-82390-4-sEUWkM4k2Q@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82390-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82390-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00217.txt.bz2
Content-length: 553

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82390

Tom de Vries <vries at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #42279|0                           |1
        is obsolete|                            |

--- Comment #4 from Tom de Vries <vries at gcc dot gnu.org> ---
Created attachment 42289
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42289&action=edit
v2 Patch disallowing dg-options for dg-torture.exp
>From gcc-bugs-return-577158-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 16:20:58 2017
Return-Path: <gcc-bugs-return-577158-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 34814 invoked by alias); 2 Oct 2017 16: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 34761 invoked by uid 48); 2 Oct 2017 16:20:55 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/82396] qsort comparator non-negative on sorted output: 4 in ready_sort_real in haifa scheduler
Date: Mon, 02 Oct 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: rtl-optimization
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: build, ice-on-valid-code
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: wilco at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status
Message-ID: <bug-82396-4-savQ5dR1tz@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82396-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82396-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00218.txt.bz2
Content-length: 590

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82396

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED

--- Comment #3 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Wilco from comment #2)
> I've got a simple patch that fixes the AArch64 bootstrap failure. This
> should fix ARM as well.

Remember when adding yourself as an assignee to change the status to ASSIGNED
too.
>From gcc-bugs-return-577159-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 16:47:46 2017
Return-Path: <gcc-bugs-return-577159-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 88692 invoked by alias); 2 Oct 2017 16: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 82730 invoked by uid 48); 2 Oct 2017 16:47:41 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/82407] [8 Regression][meta-bug] qsort_chk fallout tracking
Date: Mon, 02 Oct 2017 16:47:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-checking, meta-bug
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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords component target_milestone
Message-ID: <bug-82407-4-2sZ6krN0wO@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82407-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82407-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00219.txt.bz2
Content-length: 410

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82407

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |meta-bug
          Component|other                       |middle-end
   Target Milestone|---                         |8.0
>From gcc-bugs-return-577160-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 16:51:04 2017
Return-Path: <gcc-bugs-return-577160-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 20346 invoked by alias); 2 Oct 2017 16:51: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 18347 invoked by uid 48); 2 Oct 2017 16:51:01 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82381] [8 Regression] internal compiler error: qsort checking failed
Date: Mon, 02 Oct 2017 16:51:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-checking
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.isobsolete attachments.created
Message-ID: <bug-82381-4-ybM9akt4xC@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82381-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82381-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00220.txt.bz2
Content-length: 654

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82381

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #42286|0                           |1
        is obsolete|                            |

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 42290
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42290&action=edit
gcc8-pr82381.patch

Actually better like this.  The case when one SSA_NAME is (D) and the other is
not still could result in transitivity problems.
>From gcc-bugs-return-577161-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 16:51:46 2017
Return-Path: <gcc-bugs-return-577161-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 41535 invoked by alias); 2 Oct 2017 16:51: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 39243 invoked by uid 48); 2 Oct 2017 16:51:41 -0000
From: "peter.bohning at gmx dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82408] New: cross-compiling for arm64 problems
Date: Mon, 02 Oct 2017 16:51:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: peter.bohning 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 bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-82408-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00221.txt.bz2
Content-length: 2557

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82408

            Bug ID: 82408
           Summary: cross-compiling for arm64 problems
           Product: gcc
           Version: 7.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: peter.bohning at gmx dot com
  Target Milestone: ---

Hi,
   I'm trying to compile gcc-7.2.0 for arm64, mostly for libstdc++ being
required by libcrypt being required by glib.  Probably I'm just doing something
wrong, but nevertheless, I feel this should be far easier and cleaner.

   I do not want a compiler on the target system, I cannot chroot or reboot. 
It seems to me I should be able to install to whatever sysroot I choose.

   I am using linaro gcc 6.3.1-20017.05-x84_64_aarch64-linux-gnu toolchain.

   The first issue is no support "mode (HF)" in half.h... I changed this to be
a simple float?  soft-fp/half.h ... I tried removing the soft-fp targets from
the target files for arm under the assumption that if there was a hard float,
the soft-fp was simply unnecessary.  But the targets didn't seem to affect the
usage of soft-fp so eventually I just changed that mode line in half.h to
float.

   Second issue, __builtin_addressof was not declared in scope, so I replaced
it with: { return
reinterpret_cast<_Tp*>(&const_cast<char&>(reinterpret_cast<const volatile char
&>(__r))); }  This is in bits/move.h in libstdc++

   Third issue, std/type_traits has all these "inline" definitions and they
wouldn't compile, so I removed all the "inline" qualifiers.

   This recent issue though has me a bit tired and stumped, and I worry that it
was the type_traits inline removal somehow causing this problem.  To start
with, there are duplicate definitions of the "new, new[], delete, delete[]
operators, and then there's this strange "expected declaration before } token"
error on include/ccomplex... I tried to find out what it was from, it might be
from sstream?  I'm not sure.  The error messages are just really unhelpful and
it's hard for me to imagine that gcc-7.2.0 has a missing bracket somewhere, so
I assume it's a combination of defines that aren't working but... I'm stumped
as to what to do.

   Hopefully someone can help me out with this and then maybe it would be some
bug for some arm64/toolchain combination.

    Thanks
         Peter

PS:  I also removed the "selftest" target which seemed like cross compiling
should have disabled?
>From gcc-bugs-return-577162-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 16:55:01 2017
Return-Path: <gcc-bugs-return-577162-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 119665 invoked by alias); 2 Oct 2017 16:55:01 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 116746 invoked by uid 48); 2 Oct 2017 16:54:57 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82408] cross-compiling for arm64 problems
Date: Mon, 02 Oct 2017 16:55:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pinskia 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-82408-4-K6u84nl13X@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82408-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82408-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00222.txt.bz2
Content-length: 627

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82408

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2017-10-02
     Ever confirmed|0                           |1

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I have no problems doing cross compilers to aarch64-linux-gnu or aarch64-elf
with a combined build.

Can you describe your configure options/build env?
>From gcc-bugs-return-577163-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 16:57:38 2017
Return-Path: <gcc-bugs-return-577163-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 122132 invoked by alias); 2 Oct 2017 16:57:38 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 122029 invoked by uid 55); 2 Oct 2017 16:57:32 -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: Mon, 02 Oct 2017 16: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: 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-5lMsNEJv8O@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-10/txt/msg00223.txt.bz2
Content-length: 1203

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80210

--- Comment #18 from Peter Bergner <bergner at gcc dot gnu.org> ---
Author: bergner
Date: Mon Oct  2 16:56:58 2017
New Revision: 253358

URL: https://gcc.gnu.org/viewcvs?rev=253358&root=gcc&view=rev
Log:
gcc/
        PR target/80210
        * config/rs6000/rs6000.c (rs6000_option_override_internal): Rewrite
        function to not use the have_cpu variable.  Do not set cpu_index,
        rs6000_cpu_index or rs6000_tune_index if we end up using TARGET_DEFAULT
        or the default cpu.
        (rs6000_valid_attribute_p): Remove duplicate initializations of
        old_optimize and func_optimize.
        (rs6000_pragma_target_parse): Call rs6000_activate_target_options ().
        (rs6000_activate_target_options): Make global.
        * config/rs6000/rs6000-protos.h (rs6000_activate_target_options): Add
        prototype.

gcc/testsuite/
        PR target/80210
        * gcc.target/powerpc/pr80210-2.c: New test.

Added:
    trunk/gcc/testsuite/gcc.target/powerpc/pr80210-2.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/rs6000/rs6000-protos.h
    trunk/gcc/config/rs6000/rs6000.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-577164-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 17:03:50 2017
Return-Path: <gcc-bugs-return-577164-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 94473 invoked by alias); 2 Oct 2017 17:03: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 94418 invoked by uid 48); 2 Oct 2017 17:03:45 -0000
From: "peter.bohning at gmx dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82408] cross-compiling for arm64 problems
Date: Mon, 02 Oct 2017 17:03:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: peter.bohning at gmx 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-82408-4-AHmMveVX4e@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82408-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82408-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00224.txt.bz2
Content-length: 2313

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82408

--- Comment #2 from Peter Bohning <peter.bohning at gmx dot com> ---
export CFLAGS="-Wl,--sysroot=$SYSROOT -I$SYSROOT/../gcc-7.2.0/include
-I$SYSROOT/include -I$SYSROOT/usr/include"
export CC_FOR_TARGET="$CROSS_COMPILE"gcc
export GCC_FOR_TARGET="$CROSS_COMPILE"gcc
export CXX_FOR_TARGET="$CROSS_COMPILE"g++
export AR_FOR_TARGET="$CROSS_COMPILE"ar
export AS_FOR_TARGET="$CROSS_COMPILE"as
export NM_FOR_TARGET="$CROSS_COMPILE"nm
export LD_FOR_TARGET="$CROSS_COMPILE"ld
export STRIP_FOR_TARGET='"$CROSS_COMPILE"strip'
export RANLIB_FOR_TARGET="$CROSS_COMPILE"ranlib
export READELF_FOR_TARGET="$CROSS_COMPILE"readelf
export OBJCOPY_FOR_TARGET="$CROSS_COMPILE"objcopy
export OBJDUMP_FOR_TARGET="$CROSS_COMPILE"objdump
if ! [ -e system/usr/bin/gcc ] ; then
        if ! [ -e gcc-7.2.0 ] ; then
                if ! [ -e gcc-7.2.0.tar.xz ] ; then
                        if ! `curl -O
ftp.gnu.org/gnu/gcc/gcc-7.2.0/gcc-7.2.0.tar.xz` ; then
                                die "Can't get gcc source"
                        fi
                fi
                tar xJf gcc-7.2.0.tar.xz
        fi
        cd gcc-7.2.0 
        patch gcc/Makefile.in < $PATCHDIR/gcc-7.2.0-no-selftest.patch
        patch libgcc/soft-fp/half.h < $PATCHDIR/gcc-7.2.0-half-HFType.patch
        patch libstdc++-v3/include/bits/move.h <
$PATCHDIR/gcc-7.2.0-builtin_addressof.patch
        patch libstdc++-v3/include/std/type_traits <
$PATCHDIR/gcc-7.2.0-type_traits.patch
        # really unsure about this one... maybe something unnecessary
        # and this should have worked... 
        patch libstdc++-v3/libsupc++/new < $PATCHDIR/gcc-7.2.0-new.patch
        mkdir -p build
 cd build
        ../configure --host=aarch64-linux-gnu \
                        --enable-languages=c,c++ --enable-__cxa_atexit
--enable-c99 --enable-long-long \
                        --enable-threads=posix \
                        --with-mpfr=$SYSROOT/usr --with-mpc=$SYSROOT/usr
--with-gmp=$SYSROOT/usr \
                        --with-sysroot=$SYSROOT \
                        --prefix=/usr || die "Can't configure gcc"
        make -j4 || die "Can't compile gcc"
        $FTINSTALL $SYSROOT make install || die "Can't install gcc"
        cd ../../
fi
>From gcc-bugs-return-577165-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 17:06:51 2017
Return-Path: <gcc-bugs-return-577165-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 30905 invoked by alias); 2 Oct 2017 17:06: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 19905 invoked by uid 48); 2 Oct 2017 17:06:47 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82408] cross-compiling for arm64 problems
Date: Mon, 02 Oct 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: target
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pinskia 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-82408-4-4F1QhaDJrc@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82408-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82408-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00225.txt.bz2
Content-length: 253

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82408

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
So you are trying to compile a compiler that is hosted on aarch64-linux-gnu but
targeting the target on what you are building on?
>From gcc-bugs-return-577166-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 17:12:30 2017
Return-Path: <gcc-bugs-return-577166-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 34376 invoked by alias); 2 Oct 2017 17:12: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 34339 invoked by uid 48); 2 Oct 2017 17:12:26 -0000
From: "peter.bohning at gmx dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82408] cross-compiling for arm64 problems
Date: Mon, 02 Oct 2017 17:12:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: peter.bohning at gmx 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-82408-4-dACpJrZEZr@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82408-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82408-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00226.txt.bz2
Content-length: 242

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82408

--- Comment #4 from Peter Bohning <peter.bohning at gmx dot com> ---
Is that really it?  I saw a warning about that but... I assumed BUILD was the
build machine and HOST was the target?
>From gcc-bugs-return-577167-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 17:20:25 2017
Return-Path: <gcc-bugs-return-577167-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 42255 invoked by alias); 2 Oct 2017 17: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 42198 invoked by uid 48); 2 Oct 2017 17:20:21 -0000
From: "jamborm at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82363] [8 Regression] wrong code at -O1, -O2 and -O3 on x86_64-linux-gnu
Date: Mon, 02 Oct 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: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jamborm at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jamborm at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82363-4-JWVr9LzBP0@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82363-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82363-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00227.txt.bz2
Content-length: 221

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82363

--- Comment #4 from Martin Jambor <jamborm at gcc dot gnu.org> ---
I have proposed a fix on the mailing list:
https://gcc.gnu.org/ml/gcc-patches/2017-10/msg00070.html
>From gcc-bugs-return-577168-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 17:21:15 2017
Return-Path: <gcc-bugs-return-577168-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 45310 invoked by alias); 2 Oct 2017 17:21:14 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 45252 invoked by uid 48); 2 Oct 2017 17:21:10 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82408] cross-compiling for arm64 problems
Date: Mon, 02 Oct 2017 17:21:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pinskia 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-82408-4-ssKRBDzAXl@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82408-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82408-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00228.txt.bz2
Content-length: 313

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82408

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Gcc has three different triplets.
Host
Build
Target

Host is where the newly compiled compiler will run on.
Build is where you are building
Target is what processor the compiler is targeting.
>From gcc-bugs-return-577169-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 17:23:57 2017
Return-Path: <gcc-bugs-return-577169-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 53677 invoked by alias); 2 Oct 2017 17:23: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 53570 invoked by uid 48); 2 Oct 2017 17:23:54 -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: Mon, 02 Oct 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: 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-wehiA0QXE1@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-10/txt/msg00229.txt.bz2
Content-length: 541

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 #19 from Peter Bergner <bergner at gcc dot gnu.org> ---
Fixed on trunk.  I will back port this to the GCC 6 and 7 release branches
after it has had some burn in time on trunk.
>From gcc-bugs-return-577170-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 17:30:43 2017
Return-Path: <gcc-bugs-return-577170-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 18553 invoked by alias); 2 Oct 2017 17:30: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 10353 invoked by uid 48); 2 Oct 2017 17:30:25 -0000
From: "peter.bohning at gmx dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82408] cross-compiling for arm64 problems
Date: Mon, 02 Oct 2017 17:30:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: peter.bohning at gmx 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-82408-4-0hlXzca0LN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82408-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82408-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00230.txt.bz2
Content-length: 420

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82408

--- Comment #6 from Peter Bohning <peter.bohning at gmx dot com> ---
Well I can't say I understand why the host and the target would ever be
different, but are you saying that I need to add another flag for something?  I
mean I never set the target, so it can't determine the target from the host? 
All the other packages seemed to be fine with just "--host"?
>From gcc-bugs-return-577171-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 17:38:56 2017
Return-Path: <gcc-bugs-return-577171-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 29008 invoked by alias); 2 Oct 2017 17:38:56 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 28911 invoked by uid 55); 2 Oct 2017 17:38:51 -0000
From: "joseph at codesourcery dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/82390] gcc.dg/torture tests run with same optimization level
Date: Mon, 02 Oct 2017 17:38:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: testsuite
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: joseph at codesourcery dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82390-4-FHNlD1gsM3@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82390-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82390-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00231.txt.bz2
Content-length: 595

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82390

--- Comment #5 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
dg-options is absolutely fine in torture directories, as long as the 
options specified are not among the -O options that the test should be 
looping over.  For example, it's fine for a torture test to specify a -std 
option, or -D_GNU_SOURCE, or -fsignaling-nans.  I don't see any advantage 
to using dg-additional-options, except in the cases where you have a base 
set of dg-options and then some target-specific dg-additional-options.
>From gcc-bugs-return-577172-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 17:39:12 2017
Return-Path: <gcc-bugs-return-577172-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 29742 invoked by alias); 2 Oct 2017 17:39:12 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 29692 invoked by uid 48); 2 Oct 2017 17:39:09 -0000
From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/25829] [F03] Asynchronous IO support
Date: Mon, 02 Oct 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: fortran
X-Bugzilla-Version: 4.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: tkoenig at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: koenigni at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-25829-4-iUv6135Z9m@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-25829-4@http.gcc.gnu.org/bugzilla/>
References: <bug-25829-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00232.txt.bz2
Content-length: 905

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25829

--- Comment #28 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
(In reply to Nicolas Koenig from comment #27)

> program main
>     implicit none
>     open (10, file='foo.dat', asynchronous='yes')
>     call s()
>     close(10)
> contains
>     subroutine s()
>         integer, dimension (3)::i !presumably on the stack
>         i = [0, 1]
>         write(10,*) i
>         !Now the stack frame is dropped and the pointer that previously
>         !pointed to the array now points to nowhere, but it is still enqueued
>     end subroutine
> end program

This program is illegal (J3/09-007r3, 9.6.4.1, paragraph 4),
so you do not have to do anything about it.

An interesting case is mixing of synchronous and
asynchronous I/O for the same unit, which is permitted.
I think this is like an implicit WAIT, same as a BACKSPACE,
FLUSH, ...
>From gcc-bugs-return-577173-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 18:00:40 2017
Return-Path: <gcc-bugs-return-577173-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 117127 invoked by alias); 2 Oct 2017 18:00: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 114799 invoked by uid 48); 2 Oct 2017 18:00:35 -0000
From: "maxim.yegorushkin at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82409] New: Superflous pxor instructions in the generated assembly.
Date: Mon, 02 Oct 2017 18:00:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: maxim.yegorushkin 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-82409-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00233.txt.bz2
Content-length: 1105

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82409

            Bug ID: 82409
           Summary: Superflous pxor instructions in the generated
                    assembly.
           Product: gcc
           Version: 7.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: maxim.yegorushkin at gmail dot com
  Target Milestone: ---

For the following function:

    double f(int a, int b) {
       return static_cast<double>(a - b) / (a + b);
    }

g++-7.2 with flags "-O3 -std=c++14" generates the following code:

    f(int, int):
        pxor    %xmm0, %xmm0
        movl    %edi, %eax
        pxor    %xmm1, %xmm1
        subl    %esi, %eax
        addl    %esi, %edi
        cvtsi2sd        %eax, %xmm0
        cvtsi2sd        %edi, %xmm1
        divsd   %xmm1, %xmm0
        ret

Note pxor instructions in there to zero out the unused upper bits of xmm
registers. Are they necessary?

clang++-3.5 and newer generates similar code but without these pxor
instructions.
>From gcc-bugs-return-577174-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 18:05:44 2017
Return-Path: <gcc-bugs-return-577174-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 105796 invoked by alias); 2 Oct 2017 18: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 97130 invoked by uid 48); 2 Oct 2017 18:05:38 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82358] [8 regression] i386/stack-check-11.c fail
Date: Mon, 02 Oct 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: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: law at redhat dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-82358-4-p0wJwLEmO8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82358-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82358-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00234.txt.bz2
Content-length: 884

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82358

Jeffrey A. Law <law at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |law at redhat dot com

--- Comment #2 from Jeffrey A. Law <law at redhat dot com> ---
?!?

First, I don't get this failure.  Andrey, what is your precise target
configuration?

Martin -- the code you show is exactly what is should be.

In the "before" case we have a stack allocation of 13768 bytes, then probes
into that allocation.  That is not safe WRT stack-clash as you could get an
async signal between the allocation and probing points and the async handler
would be running with a clashed stack/heap.

The "after" case we see 4 distinct allocations and probes, which is exactly
what we want.
>From gcc-bugs-return-577175-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 18:08:22 2017
Return-Path: <gcc-bugs-return-577175-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 11311 invoked by alias); 2 Oct 2017 18:08:21 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 11228 invoked by uid 55); 2 Oct 2017 18:08:16 -0000
From: "wschmidt at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82337] [5/6/7/8 Regression] ICE: SSA corruption at tree-ssa-coalesce.c:1010
Date: Mon, 02 Oct 2017 18:08:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wschmidt at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: wschmidt at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82337-4-kccCrnHvu7@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82337-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82337-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00235.txt.bz2
Content-length: 1211

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82337

--- Comment #13 from Bill Schmidt <wschmidt at gcc dot gnu.org> ---
Author: wschmidt
Date: Mon Oct  2 18:07:45 2017
New Revision: 253359

URL: https://gcc.gnu.org/viewcvs?rev=253359&root=gcc&view=rev
Log:
[gcc]

2017-10-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

        Backport from mainline
        2017-09-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

        PR tree-optimization/82337
        * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
        phi definition if the PHI result appears in an abnormal PHI.
        (find_basis_for_base_expr): Don't record a basis if the LHS of the
        basis appears in an abnormal PHI.

[gcc]

2017-10-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

        Backport from mainline
        2017-09-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

        PR tree-optimization/82337
        * gcc.c-torture/compile/pr82337.c: New file.


Added:
    branches/gcc-7-branch/gcc/testsuite/gcc.c-torture/compile/pr82337.c
Modified:
    branches/gcc-7-branch/gcc/ChangeLog
    branches/gcc-7-branch/gcc/gimple-ssa-strength-reduction.c
    branches/gcc-7-branch/gcc/testsuite/ChangeLog
>From gcc-bugs-return-577176-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 18:09:56 2017
Return-Path: <gcc-bugs-return-577176-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 12933 invoked by alias); 2 Oct 2017 18: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 12872 invoked by uid 55); 2 Oct 2017 18:09:51 -0000
From: "wschmidt at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82337] [5/6/7/8 Regression] ICE: SSA corruption at tree-ssa-coalesce.c:1010
Date: Mon, 02 Oct 2017 18:09:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wschmidt at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: wschmidt at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82337-4-OWf1QKuiiO@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82337-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82337-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00236.txt.bz2
Content-length: 1211

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82337

--- Comment #14 from Bill Schmidt <wschmidt at gcc dot gnu.org> ---
Author: wschmidt
Date: Mon Oct  2 18:09:20 2017
New Revision: 253360

URL: https://gcc.gnu.org/viewcvs?rev=253360&root=gcc&view=rev
Log:
[gcc]

2017-10-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

        Backport from mainline
        2017-09-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

        PR tree-optimization/82337
        * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
        phi definition if the PHI result appears in an abnormal PHI.
        (find_basis_for_base_expr): Don't record a basis if the LHS of the
        basis appears in an abnormal PHI.

[gcc]

2017-10-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

        Backport from mainline
        2017-09-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

        PR tree-optimization/82337
        * gcc.c-torture/compile/pr82337.c: New file.


Added:
    branches/gcc-6-branch/gcc/testsuite/gcc.c-torture/compile/pr82337.c
Modified:
    branches/gcc-6-branch/gcc/ChangeLog
    branches/gcc-6-branch/gcc/gimple-ssa-strength-reduction.c
    branches/gcc-6-branch/gcc/testsuite/ChangeLog
>From gcc-bugs-return-577178-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 18:11:16 2017
Return-Path: <gcc-bugs-return-577178-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 20270 invoked by alias); 2 Oct 2017 18:11:16 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 19838 invoked by uid 55); 2 Oct 2017 18:11:12 -0000
From: "wschmidt at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82337] [5/6/7/8 Regression] ICE: SSA corruption at tree-ssa-coalesce.c:1010
Date: Mon, 02 Oct 2017 18:11:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wschmidt at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: wschmidt at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82337-4-GUDxcQWeDF@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82337-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82337-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00238.txt.bz2
Content-length: 1211

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82337

--- Comment #15 from Bill Schmidt <wschmidt at gcc dot gnu.org> ---
Author: wschmidt
Date: Mon Oct  2 18:10:40 2017
New Revision: 253361

URL: https://gcc.gnu.org/viewcvs?rev=253361&root=gcc&view=rev
Log:
[gcc]

2017-10-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

        Backport from mainline
        2017-09-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

        PR tree-optimization/82337
        * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
        phi definition if the PHI result appears in an abnormal PHI.
        (find_basis_for_base_expr): Don't record a basis if the LHS of the
        basis appears in an abnormal PHI.

[gcc]

2017-10-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

        Backport from mainline
        2017-09-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

        PR tree-optimization/82337
        * gcc.c-torture/compile/pr82337.c: New file.


Added:
    branches/gcc-5-branch/gcc/testsuite/gcc.c-torture/compile/pr82337.c
Modified:
    branches/gcc-5-branch/gcc/ChangeLog
    branches/gcc-5-branch/gcc/gimple-ssa-strength-reduction.c
    branches/gcc-5-branch/gcc/testsuite/ChangeLog
>From gcc-bugs-return-577177-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 18:11:10 2017
Return-Path: <gcc-bugs-return-577177-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 19547 invoked by alias); 2 Oct 2017 18:11:10 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 19360 invoked by uid 48); 2 Oct 2017 18:11:06 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82408] cross-compiling for arm64 problems
Date: Mon, 02 Oct 2017 18:11:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.2.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-82408-4-WUQ2jnF0tU@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82408-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82408-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00237.txt.bz2
Content-length: 1386

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82408

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|---                         |INVALID

--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Peter Bohning from comment #6)
> Well I can't say I understand why the host and the target would ever be
> different, but are you saying that I need to add another flag for something?

I can think of one.
You are building a cross compiler that will run on windows targeting an
embedded target but you are building on a linux box.


> I mean I never set the target, so it can't determine the target from the
> host?  All the other packages seemed to be fine with just "--host"?

Just use --target= and not --host here.


So the question now becomes do you want a compiler that runs on x86_64 or
aarch64?

If you want one that runs on x86_64 just use --target.
If you want one that runs on aarch64 that targets aarch64, you need to first
build a (new) cross compiler that runs on x86_64 [because the target libraries
can only be built with the newer version of the compiler(7)] and then build one
that is configured with
--target= --host= .
>From gcc-bugs-return-577179-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 18:12:57 2017
Return-Path: <gcc-bugs-return-577179-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 28879 invoked by alias); 2 Oct 2017 18:12: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 27032 invoked by uid 48); 2 Oct 2017 18:12:54 -0000
From: "wschmidt at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82337] [5/6/7/8 Regression] ICE: SSA corruption at tree-ssa-coalesce.c:1010
Date: Mon, 02 Oct 2017 18:12:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wschmidt at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: 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-82337-4-F9t7FznQZt@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82337-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82337-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00239.txt.bz2
Content-length: 452

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82337

Bill Schmidt <wschmidt at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #16 from Bill Schmidt <wschmidt at gcc dot gnu.org> ---
Now fixed everywhere, closing.
>From gcc-bugs-return-577180-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 18:18:20 2017
Return-Path: <gcc-bugs-return-577180-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 76144 invoked by alias); 2 Oct 2017 18:18:20 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 75996 invoked by uid 55); 2 Oct 2017 18:18:11 -0000
From: "pault at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82312] [7/8 Regression] Pointer assignment to component of class variable results wrong vptr for the variable.
Date: Mon, 02 Oct 2017 18:18:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pault at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
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-82312-4-t8Ioz8gsG9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82312-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82312-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00240.txt.bz2
Content-length: 1091

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82312

--- Comment #3 from Paul Thomas <pault at gcc dot gnu.org> ---
Author: pault
Date: Mon Oct  2 18:17:39 2017
New Revision: 253362

URL: https://gcc.gnu.org/viewcvs?rev=253362&root=gcc&view=rev
Log:
2017-10-02  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/82312
        * resolve.c (gfc_resolve_code): Simplify condition for class
        pointer assignments becoming regular assignments by asserting
        that only class valued targets are permitted.
        * trans-expr.c (trans_class_pointer_fcn): New function using a
        block of code from gfc_trans_pointer_assignment.
        (gfc_trans_pointer_assignment): Call the new function. Tidy up
        a minor whitespace issue.

2017-10-02  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/82312
        * gfortran.dg/typebound_proc_36.f90 : New test.

Added:
    trunk/gcc/testsuite/gfortran.dg/typebound_proc_36.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/resolve.c
    trunk/gcc/fortran/trans-expr.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-577181-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 18:25:05 2017
Return-Path: <gcc-bugs-return-577181-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 62129 invoked by alias); 2 Oct 2017 18:25: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 62065 invoked by uid 48); 2 Oct 2017 18:25:01 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82409] Superflous pxor instructions in the generated assembly.
Date: Mon, 02 Oct 2017 18:25:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pinskia at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cf_gcctarget component
Message-ID: <bug-82409-4-IYmblyd2jT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82409-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82409-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00241.txt.bz2
Content-length: 621

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82409

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |x86_64-pc-linux-gnu
          Component|c++                         |target

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
>Note pxor instructions in there to zero out the unused upper bits of xmm registers.

It could be done to avoid false dependencies on previous instructions which
touched xmm0/1 register.
>From gcc-bugs-return-577182-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 18:33:41 2017
Return-Path: <gcc-bugs-return-577182-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 66031 invoked by alias); 2 Oct 2017 18: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 65986 invoked by uid 48); 2 Oct 2017 18:33:37 -0000
From: "ubizjak at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82409] Superflous pxor instructions in the generated assembly.
Date: Mon, 02 Oct 2017 18:33:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ubizjak 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-82409-4-KpTMnDN6yx@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82409-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82409-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00242.txt.bz2
Content-length: 1107

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82409

Uroš Bizjak <ubizjak at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #2 from Uroš Bizjak <ubizjak at gmail dot com> ---
This is by design, to break partial SSE reg dependency on:

/* X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY: This knob promotes all store
   destinations to be 128bit to allow register renaming on 128bit SSE units,
   but usually results in one extra microop on 64bit SSE units.
   Experimental results shows that disabling this option on P4 brings over 20%
   SPECfp regression, while enabling it on K8 brings roughly 2.4% regression
   that can be partly masked by careful scheduling of moves.  */
DEF_TUNE (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY, "sse_partial_reg_dependency",
          m_PPRO | m_P4_NOCONA | m_CORE_ALL | m_BONNELL | m_AMDFAM10
          | m_BDVER | m_ZNVER1 | m_GENERIC)
>From gcc-bugs-return-577183-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 19:34:03 2017
Return-Path: <gcc-bugs-return-577183-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 75330 invoked by alias); 2 Oct 2017 19:34:03 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 75281 invoked by uid 48); 2 Oct 2017 19:33:58 -0000
From: "tomilovanatoliy at yandex dot ru" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82410] New: ICE in replace_placeholders_r
Date: Mon, 02 Oct 2017 19:34:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tomilovanatoliy at yandex dot ru
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-82410-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00243.txt.bz2
Content-length: 3724

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82410

            Bug ID: 82410
           Summary: ICE in replace_placeholders_r
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: tomilovanatoliy at yandex dot ru
  Target Milestone: ---

Internal compiler error on valid code. -std=c++14,17. Known to work in 5.*,
6.*. Known to not work in 7.1, 7.2, 8 HEAD.

int main()
{
    struct A {};
    struct S
    {

        int & p;
        int x = p;
        operator A () { return {}; }

    };
    int l;
    [] (A) {} (S{l});
}


# Error message:

prog.cc: In function 'int main()':
prog.cc:13:20: internal compiler error: in replace_placeholders_r, at
cp/tree.c:2795
     [] (A) {} (S{l});
                    ^
0x6952e9 replace_placeholders_r
        ../../gcc-7.2.0/gcc/cp/tree.c:2795
0xcf18b5 walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*),
void*, hash_set<tree_node*, default_hash_traits<tree_node*> >*, tree_node*
(*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*), void*,
hash_set<tree_node*, default_hash_traits<tree_node*> >*))
        ../../gcc-7.2.0/gcc/tree.c:11822
0xcf1e5e walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*),
void*, hash_set<tree_node*, default_hash_traits<tree_node*> >*, tree_node*
(*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*), void*,
hash_set<tree_node*, default_hash_traits<tree_node*> >*))
        ../../gcc-7.2.0/gcc/tree.c:12139
0x69521b replace_placeholders_r
        ../../gcc-7.2.0/gcc/cp/tree.c:2825
0xcf18b5 walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*),
void*, hash_set<tree_node*, default_hash_traits<tree_node*> >*, tree_node*
(*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*), void*,
hash_set<tree_node*, default_hash_traits<tree_node*> >*))
        ../../gcc-7.2.0/gcc/tree.c:11822
0xcf1d34 walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*),
void*, hash_set<tree_node*, default_hash_traits<tree_node*> >*, tree_node*
(*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*), void*,
hash_set<tree_node*, default_hash_traits<tree_node*> >*))
        ../../gcc-7.2.0/gcc/tree.c:12049
0x6953a1 replace_placeholders(tree_node*, tree_node*, bool*)
        ../../gcc-7.2.0/gcc/cp/tree.c:2861
0x6c74ce cp_gimplify_init_expr
        ../../gcc-7.2.0/gcc/cp/cp-gimplify.c:500
0x6c74ce cp_gimplify_expr(tree_node**, gimple**, gimple**)
        ../../gcc-7.2.0/gcc/cp/cp-gimplify.c:659
0x8d4245 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc-7.2.0/gcc/gimplify.c:11149
0x8ddb1c gimplify_target_expr
        ../../gcc-7.2.0/gcc/gimplify.c:6418
0x8d54ce gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc-7.2.0/gcc/gimplify.c:11620
0x8d7b68 gimplify_stmt(tree_node**, gimple**)
        ../../gcc-7.2.0/gcc/gimplify.c:6497
0x8d828b gimplify_compound_expr
        ../../gcc-7.2.0/gcc/gimplify.c:5726
0x8d551f gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc-7.2.0/gcc/gimplify.c:11230
0x8dd324 gimplify_expr
        ../../gcc-7.2.0/gcc/gimplify.c:12241
0x8de6ce gimplify_call_expr
        ../../gcc-7.2.0/gcc/gimplify.c:3262
0x8d6137 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc-7.2.0/gcc/gimplify.c:11212
0x8d7b68 gimplify_stmt(tree_node**, gimple**)
        ../../gcc-7.2.0/gcc/gimplify.c:6497
0x8d6086 gimplify_cleanup_point_expr
        ../../gcc-7.2.0/gcc/gimplify.c:6241
Please submit a full bug report,
>From gcc-bugs-return-577184-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 19:38:43 2017
Return-Path: <gcc-bugs-return-577184-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 90174 invoked by alias); 2 Oct 2017 19:38:42 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 90101 invoked by uid 55); 2 Oct 2017 19:38:38 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/82384] [8 Regression] s-taprop.adb failed to compile for x32
Date: Mon, 02 Oct 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: ada
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ebotcazou at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ebotcazou at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82384-4-Dk5RibZ3c7@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82384-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82384-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00244.txt.bz2
Content-length: 660

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82384

--- Comment #10 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Author: ebotcazou
Date: Mon Oct  2 19:38:06 2017
New Revision: 253366

URL: https://gcc.gnu.org/viewcvs?rev=253366&root=gcc&view=rev
Log:
        PR ada/82384
        * libgnarl/s-linux__x32.ads (suseconds_t): New subtype.
        (time_t): Change from derived type to subtype.
        (timeval): Use suseconds_t for tv_usec.
        * libgnarl/s-osinte__x32.adb (To_Timespec): Remove use type clause.

Modified:
    trunk/gcc/ada/ChangeLog
    trunk/gcc/ada/libgnarl/s-linux__x32.ads
    trunk/gcc/ada/libgnarl/s-osinte__x32.adb
>From gcc-bugs-return-577185-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 19:40:58 2017
Return-Path: <gcc-bugs-return-577185-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 92326 invoked by alias); 2 Oct 2017 19:40: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 92249 invoked by uid 48); 2 Oct 2017 19:40:54 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/82384] [8 Regression] s-taprop.adb failed to compile for x32
Date: Mon, 02 Oct 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: ada
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ebotcazou at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ebotcazou at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82384-4-CpxCvUxaWT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82384-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82384-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00245.txt.bz2
Content-length: 158

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82384

--- Comment #11 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Thanks for reporting the problem.
>From gcc-bugs-return-577186-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 19:41:24 2017
Return-Path: <gcc-bugs-return-577186-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 93181 invoked by alias); 2 Oct 2017 19:41:24 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 93138 invoked by uid 48); 2 Oct 2017 19:41:20 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/82384] [8 Regression] s-taprop.adb failed to compile for x32
Date: Mon, 02 Oct 2017 19:41:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: ada
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ebotcazou at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ebotcazou at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-82384-4-HClcQ0aOyx@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82384-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82384-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00246.txt.bz2
Content-length: 429

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82384

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #12 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
.
>From gcc-bugs-return-577187-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 19:44:45 2017
Return-Path: <gcc-bugs-return-577187-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 109355 invoked by alias); 2 Oct 2017 19:44:45 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 109296 invoked by uid 48); 2 Oct 2017 19:44:40 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82410] ICE in replace_placeholders_r
Date: Mon, 02 Oct 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:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle 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-82410-4-QeOFFdguOj@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82410-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82410-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00247.txt.bz2
Content-length: 428

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82410

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|tomilovanatoliy at yandex dot ru   |mpolacek at gcc dot gnu.org

--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Marek, is this PR79937 ?
>From gcc-bugs-return-577188-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 20:13:28 2017
Return-Path: <gcc-bugs-return-577188-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 8538 invoked by alias); 2 Oct 2017 20:13: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 6108 invoked by uid 48); 2 Oct 2017 20:13:23 -0000
From: "peter.bohning at gmx dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82408] cross-compiling for arm64 problems
Date: Mon, 02 Oct 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: target
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: peter.bohning at gmx 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-82408-4-d0sz3RF3Aj@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82408-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82408-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00248.txt.bz2
Content-length: 604

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82408

--- Comment #8 from Peter Bohning <peter.bohning at gmx dot com> ---
Well I guess, that seems strange that one would ever actually want to do that. 
But it sounds great that it supports such things.

Anyway, I will try --target but my laptop just completely died.  Says there's
no power when it's plugged in and the other day there was some kind of early
boot "spin lock" freeze so... bad things always come in hundreds.

Thanks for your advice and I will see if --target makes any difference with
these various C++ errors and such when I can.
>From gcc-bugs-return-577189-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 20:26:57 2017
Return-Path: <gcc-bugs-return-577189-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 61082 invoked by alias); 2 Oct 2017 20:26: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 58968 invoked by uid 48); 2 Oct 2017 20:26:53 -0000
From: "kees at outflux dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82411] New: const is not always read-only
Date: Mon, 02 Oct 2017 20:26:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: kees at outflux 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-82411-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00249.txt.bz2
Content-length: 790

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82411

            Bug ID: 82411
           Summary: const is not always read-only
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: kees at outflux dot net
  Target Milestone: ---

On powerpc, a const variable may end up in the .sdata section, which is
writable. This means authors cannot depend on the "const" marking to mean
"read-only", as is required for sane Linux kernel memory protection security.

Thread here:
https://lkml.org/lkml/2017/10/2/488

At the very least, there should be a way to request never putting a const
variable into a writable section.
>From gcc-bugs-return-577190-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 20:54:07 2017
Return-Path: <gcc-bugs-return-577190-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 94804 invoked by alias); 2 Oct 2017 20:54: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 94711 invoked by uid 48); 2 Oct 2017 20:54:03 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82411] const is not always read-only
Date: Mon, 02 Oct 2017 20:54:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: 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-82411-4-5kgM0dYqBX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82411-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82411-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00250.txt.bz2
Content-length: 615

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82411

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Actually it is just undefined what happens when a write to a const variable. 

So a trap or the write happened for a const both are valid thing.

Now const really should be put in the read only section if possible.

Putting it in the sdata section is valid thing to do but I doubt some people
want it there. 

Powerpc should have an option which disabled this optimization for const
variables.

Right now there is a way to disable all of sdata by -G0 option which is a good
workaround.
>From gcc-bugs-return-577191-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 21:19:42 2017
Return-Path: <gcc-bugs-return-577191-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 61139 invoked by alias); 2 Oct 2017 21: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 61081 invoked by uid 55); 2 Oct 2017 21:19:37 -0000
From: "qing.zhao at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81357] Extra mov for zero extend of add
Date: Mon, 02 Oct 2017 21: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: 8.0
X-Bugzilla-Keywords: missed-optimization, ra
X-Bugzilla-Severity: normal
X-Bugzilla-Who: qing.zhao at oracle dot com
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: qing.zhao at oracle dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81357-4-zKpkj6HNiy@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81357-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81357-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00251.txt.bz2
Content-length: 1145

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81357

--- Comment #12 from Qing Zhao <qing.zhao at oracle dot com> ---
> Well it is not wrong, just non-optimal. It is possible to use a single register
> here but it means teaching GCC that these values are identical, which is
> non-trivial as it likely affects various places in the mid-end (this issue is
> target-independent).

does “these values are identical” mean that the value “fParm + 1” and its
zero_extension “unsigned long long (fParm +1)”
are identical?
I don’t think so.
However, I do agree that there is opportunity for more compact code:
these two values  can be stored in the same register on some of the target.
(for example, aarch64 or ia64).
but Not on all the targets (for example, all 32bit targets).

So, if we really want this additional optimization, this looks like a
target-dependent one. we might add a new target-depend
hook on whether two values with different width can be stored in the same
register (one is the other one’s zero-extension), and
then enhance register allocation with this hook?
>From gcc-bugs-return-577192-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 21:25:34 2017
Return-Path: <gcc-bugs-return-577192-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 73803 invoked by alias); 2 Oct 2017 21:25: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 73720 invoked by uid 48); 2 Oct 2017 21:25:29 -0000
From: "segher at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82411] const is not always read-only
Date: Mon, 02 Oct 2017 21:25:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: unknown
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-82411-4-bJaZpJGQWM@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82411-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82411-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00252.txt.bz2
Content-length: 642

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82411

Segher Boessenkool <segher at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-10-02
     Ever confirmed|0                           |1

--- Comment #2 from Segher Boessenkool <segher at gcc dot gnu.org> ---
To access this as sdata is faster and smaller than as rodata (one
instruction instead of two).

You can use -G0 as Andrew says, or -mno-sdata (or -msdata=none).
>From gcc-bugs-return-577193-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 21:45:31 2017
Return-Path: <gcc-bugs-return-577193-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 74937 invoked by alias); 2 Oct 2017 21:45: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 74861 invoked by uid 55); 2 Oct 2017 21:45:26 -0000
From: "paolo at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79005] Use of a captured variable within nested generic lambdas provokes internal compiler error.
Date: Mon, 02 Oct 2017 21:45:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.9.4
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79005-4-famsj1sdqv@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79005-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79005-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00253.txt.bz2
Content-length: 510

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79005

--- Comment #5 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Mon Oct  2 21:44:55 2017
New Revision: 253368

URL: https://gcc.gnu.org/viewcvs?rev=253368&root=gcc&view=rev
Log:
2017-10-02  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/79005
        * g++.dg/cpp1y/lambda-generic-79005.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1y/lambda-generic-79005.C
Modified:
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-577194-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 21:46:08 2017
Return-Path: <gcc-bugs-return-577194-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 75838 invoked by alias); 2 Oct 2017 21: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 75812 invoked by uid 48); 2 Oct 2017 21:46:05 -0000
From: "seurer at linux dot vnet.ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/82412] New: [8 regression] gfortran.dg/graphite/pr42334-1.f fails starting with r253342
Date: Mon, 02 Oct 2017 21:46:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: testsuite
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: seurer at linux dot vnet.ibm.com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-82412-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00254.txt.bz2
Content-length: 2065

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82412

            Bug ID: 82412
           Summary: [8 regression] gfortran.dg/graphite/pr42334-1.f fails
                    starting with r253342
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: testsuite
          Assignee: unassigned at gcc dot gnu.org
          Reporter: seurer at linux dot vnet.ibm.com
  Target Milestone: ---

This fails on both powerpc64 le and be.  The test case was updated for this
revision; perhaps there is a mistake in in?  The other updated test cases work
fine.

gfortran.dg/graphite/pr42334-1.fExecuting on host:
/home/seurer/gcc/build/gcc-trunk/gcc/testsuite/gfortran/../../gfortran
-B/home/seurer/gcc/build/gcc-trunk/gcc/testsuite/gfortran/../../
-B/home/seurer/gcc/build/gcc-trunk/powerpc64le-unknown-linux-gnu/./libgfortran/
/home/seurer/gcc/gcc-trunk/gcc/testsuite/gfortran.dg/graphite/pr42334-1.f 
-fno-diagnostics-show-caret -fdiagnostics-color=never    -O  -O2
-floop-interchange -fdump-tree-graphite-details --param
graphite-allow-codegen-errors=1 -S   -o pr42334-1.s    (timeout = 300)
spawn /home/seurer/gcc/build/gcc-trunk/gcc/testsuite/gfortran/../../gfortran
-B/home/seurer/gcc/build/gcc-trunk/gcc/testsuite/gfortran/../../
-B/home/seurer/gcc/build/gcc-trunk/powerpc64le-unknown-linux-gnu/./libgfortran/
/home/seurer/gcc/gcc-trunk/gcc/testsuite/gfortran.dg/graphite/pr42334-1.f
-fno-diagnostics-show-caret -fdiagnostics-color=never -O -O2 -floop-interchange
-fdump-tree-graphite-details --param graphite-allow-codegen-errors=1 -S -o
pr42334-1.s
PASS: gfortran.dg/graphite/pr42334-1.f   -O  (test for excess errors)
FAIL: gfortran.dg/graphite/pr42334-1.f   -O   scan-tree-dump-times graphite
"code generation error" 1
testcase
/home/seurer/gcc/gcc-trunk/gcc/testsuite/gfortran.dg/graphite/graphite.exp
completed in 1 seconds

                === gfortran Summary ===

# of expected passes            1
# of unexpected failures        1
>From gcc-bugs-return-577196-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 21:46:16 2017
Return-Path: <gcc-bugs-return-577196-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 76585 invoked by alias); 2 Oct 2017 21:46: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 76309 invoked by uid 48); 2 Oct 2017 21:46:12 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/54367] [meta-bug] lambda expressions
Date: Mon, 02 Oct 2017 21:46:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: dep_changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.8.0
X-Bugzilla-Keywords: meta-bug
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-54367-4-tiFxipJk0g@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-54367-4@http.gcc.gnu.org/bugzilla/>
References: <bug-54367-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00256.txt.bz2
Content-length: 518

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54367
Bug 54367 depends on bug 79005, which changed state.

Bug 79005 Summary: Use of a captured variable within nested generic lambdas provokes internal compiler error.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79005

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
>From gcc-bugs-return-577195-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 21:46:16 2017
Return-Path: <gcc-bugs-return-577195-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 76570 invoked by alias); 2 Oct 2017 21:46: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 76251 invoked by uid 48); 2 Oct 2017 21:46:11 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79005] Use of a captured variable within nested generic lambdas provokes internal compiler error.
Date: Mon, 02 Oct 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.9.4
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc blocked resolution target_milestone
Message-ID: <bug-79005-4-ntTpO8SHbJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79005-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79005-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00255.txt.bz2
Content-length: 726

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79005

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|mmccutcheon at nuvucameras dot com |
             Blocks|                            |54367
         Resolution|---                         |FIXED
   Target Milestone|---                         |8.0

--- Comment #6 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Fixed in trunk.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54367
[Bug 54367] [meta-bug] lambda expressions
>From gcc-bugs-return-577197-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 22:02:39 2017
Return-Path: <gcc-bugs-return-577197-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 19287 invoked by alias); 2 Oct 2017 22:02:39 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 7427 invoked by uid 55); 2 Oct 2017 22:02:35 -0000
From: "paolo at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79590] ICE (internal compiler error) in nothrow_spec_p with generic lambda and `noexcept(noexcept(...))` expression
Date: Mon, 02 Oct 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: 7.0.1
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo at gcc dot gnu.org
X-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-79590-4-Ds23NMboTL@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79590-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79590-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00257.txt.bz2
Content-length: 518

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79590

--- Comment #4 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Mon Oct  2 22:02:03 2017
New Revision: 253369

URL: https://gcc.gnu.org/viewcvs?rev=253369&root=gcc&view=rev
Log:
2017-10-02  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/79590
        * g++.dg/cpp1y/lambda-generic-noexcept1.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1y/lambda-generic-noexcept1.C
Modified:
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-577198-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 22:03:45 2017
Return-Path: <gcc-bugs-return-577198-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 112413 invoked by alias); 2 Oct 2017 22: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 112356 invoked by uid 48); 2 Oct 2017 22:03:41 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79590] ICE (internal compiler error) in nothrow_spec_p with generic lambda and `noexcept(noexcept(...))` expression
Date: Mon, 02 Oct 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: c++
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution target_milestone
Message-ID: <bug-79590-4-aWMYAv40I8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79590-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79590-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00258.txt.bz2
Content-length: 546

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79590

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|7.3                         |7.0

--- Comment #5 from Paolo Carlini <paolo.carlini at oracle dot com> ---
The released 7.1.0 is fine. I added the testcases, to be safe.
>From gcc-bugs-return-577199-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 22:21:53 2017
Return-Path: <gcc-bugs-return-577199-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 79962 invoked by alias); 2 Oct 2017 22: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 79911 invoked by uid 55); 2 Oct 2017 22:21:48 -0000
From: "paolo at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/70570] Assembler error "symbol already defined" from nested lambdas and function-static variable
Date: Mon, 02 Oct 2017 22:21:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 5.3.0
X-Bugzilla-Keywords: assemble-failure, wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-70570-4-rM2kJFrZrp@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70570-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70570-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00259.txt.bz2
Content-length: 510

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70570

--- Comment #4 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Mon Oct  2 22:21:16 2017
New Revision: 253370

URL: https://gcc.gnu.org/viewcvs?rev=253370&root=gcc&view=rev
Log:
2017-10-02  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/70570
        * g++.dg/cpp1y/lambda-generic-70570.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1y/lambda-generic-70570.C
Modified:
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-577200-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 22:23:25 2017
Return-Path: <gcc-bugs-return-577200-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 96013 invoked by alias); 2 Oct 2017 22:23:25 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 90369 invoked by uid 48); 2 Oct 2017 22:23:21 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/70570] Assembler error "symbol already defined" from nested lambdas and function-static variable
Date: Mon, 02 Oct 2017 22: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: 5.3.0
X-Bugzilla-Keywords: assemble-failure, wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.2
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc resolution target_milestone
Message-ID: <bug-70570-4-FD1GcYyRwS@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70570-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70570-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00260.txt.bz2
Content-length: 591

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70570

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|ndkrempel at gmail dot com         |
         Resolution|---                         |FIXED
   Target Milestone|---                         |6.2

--- Comment #5 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Fixed a while ago, in 6.2.0. I added the testcase.
>From gcc-bugs-return-577201-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 02 23:57:55 2017
Return-Path: <gcc-bugs-return-577201-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 35513 invoked by alias); 2 Oct 2017 23:57:55 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 35391 invoked by uid 55); 2 Oct 2017 23:57:51 -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, 02 Oct 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: accepts-invalid, patch
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81854-4-my6enFyDnU@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-10/txt/msg00261.txt.bz2
Content-length: 801

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81854

--- Comment #17 from Martin Sebor <msebor at gcc dot gnu.org> ---
Author: msebor
Date: Mon Oct  2 23:57:19 2017
New Revision: 253372

URL: https://gcc.gnu.org/viewcvs?rev=253372&root=gcc&view=rev
Log:
Clean up more fallout from r252976.

libatomic/ChangeLog:
2017-10-02  Martin Sebor  <msebor@redhat.com>

        PR c/81854
        * acinclude.m4 (LIBAT_CHECK_IFUNC): Have ifunc resolver return
        a function pointer rather than void* to avoid GCC 8 warnings.
        * configure: Regenerate.
        * libatomic_i.h: Declare ifunc resolvers to return function
        pointers rather than void*.

Modified:
    trunk/libatomic/ChangeLog
    trunk/libatomic/acinclude.m4
    trunk/libatomic/configure
    trunk/libatomic/libatomic_i.h
>From gcc-bugs-return-577202-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 00:47:47 2017
Return-Path: <gcc-bugs-return-577202-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 69332 invoked by alias); 3 Oct 2017 00:47:47 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 61852 invoked by uid 48); 3 Oct 2017 00:47:43 -0000
From: "j.fisher at digipen dot edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/68230] Unused function parameters not reported by -Wunused-parameter when only used recursively.
Date: Tue, 03 Oct 2017 00:47:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 5.2.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: j.fisher at digipen dot edu
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-68230-4-Zmy1e2gOFx@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-68230-4@http.gcc.gnu.org/bugzilla/>
References: <bug-68230-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00262.txt.bz2
Content-length: 692

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68230

--- Comment #8 from Joshua T, Fisher <j.fisher at digipen dot edu> ---
(In reply to Jonathan Wakely from comment #7)
> (In reply to Joshua T, Fisher from comment #5)
> > and my blog where I first encountered this in a closed source codebase:
> > 
> > http://www.nullterminatedstrings.com/c++/recursive-warning
> 
> I'm a bit more persuaded having read this. If it points out you forgot to
> use it (for anything except the recursion) that could help find real bugs.

That's what I was hoping! I feel like it's definitely something that could hit
some real code bases. I find it unlikely I'm the only person ever to run into
this.
>From gcc-bugs-return-577203-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 00:52:17 2017
Return-Path: <gcc-bugs-return-577203-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 98237 invoked by alias); 3 Oct 2017 00:52: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 98203 invoked by uid 48); 3 Oct 2017 00:52:12 -0000
From: "babokin at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82413] New: -O0 crash (ICE in decompose, at tree.h:5179)
Date: Tue, 03 Oct 2017 00: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:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: babokin 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-82413-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00263.txt.bz2
Content-length: 3176

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82413

            Bug ID: 82413
           Summary: -O0 crash (ICE in decompose, at tree.h:5179)
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: babokin at gmail dot com
  Target Milestone: ---

GCC trunk, rev 253367, x86_64.

Rev 253307 works fine, so it's a fresh regression.

> cat f.cpp
bool a;
int b;
void c() { b &&a <= 0; }

> g++ -c f.cpp
f.cpp: In function ‘void c()’:
f.cpp:3:21: internal compiler error: in decompose, at tree.h:5179
 void c() { b &&a <= 0; }
                     ^
0x6cbe00 wi::int_traits<tree_node const*>::decompose(long*, unsigned int,
tree_node const*)
        ../../gcc/gcc/tree.h:5179
0x6cbe00 wide_int_ref_storage<false>::wide_int_ref_storage<tree_node
const*>(tree_node const* const&, unsigned int)
        ../../gcc/gcc/wide-int.h:976
0x6cbe00 generic_wide_int<wide_int_ref_storage<false>
>::generic_wide_int<tree_node const*>(tree_node const* const&, unsigned int)
        ../../gcc/gcc/wide-int.h:753
0x6cbe00 bool wi::eq_p<generic_wide_int<wide_int_storage>, tree_node
const*>(generic_wide_int<wide_int_storage> const&, tree_node const* const&)
        ../../gcc/gcc/wide-int.h:1760
0x6cbe00 bool
generic_wide_int<wide_int_storage>::operator==<tree_node*>(tree_node* const&)
const
        ../../gcc/gcc/wide-int.h:704
0x6cbe00 build_range_check(unsigned int, tree_node*, tree_node*, int,
tree_node*, tree_node*)
        ../../gcc/gcc/fold-const.c:4854
0xcd4a08 build_range_check(unsigned int, tree_node*, tree_node*, int,
tree_node*, tree_node*)
        ../../gcc/gcc/fold-const.c:4809
0xb4c404 warn_logical_operator(unsigned int, tree_code, tree_node*, tree_code,
tree_node*, tree_code, tree_node*)
        ../../gcc/gcc/c-family/c-warn.c:270
0x91af33 build_new_op_1
        ../../gcc/gcc/cp/call.c:5978
0x91b42e build_new_op(unsigned int, tree_code, int, tree_node*, tree_node*,
tree_node*, tree_node**, int)
        ../../gcc/gcc/cp/call.c:6051
0xabf972 build_x_binary_op(unsigned int, tree_code, tree_node*, tree_code,
tree_node*, tree_code, tree_node**, int)
        ../../gcc/gcc/cp/typeck.c:3960
0xa03a2e cp_parser_binary_expression
        ../../gcc/gcc/cp/parser.c:9274
0xa04f74 cp_parser_assignment_expression
        ../../gcc/gcc/cp/parser.c:9407
0xa05678 cp_parser_expression
        ../../gcc/gcc/cp/parser.c:9576
0xa07388 cp_parser_expression_statement
        ../../gcc/gcc/cp/parser.c:11091
0xa0d543 cp_parser_statement
        ../../gcc/gcc/cp/parser.c:10907
0xa0e5f0 cp_parser_statement_seq_opt
        ../../gcc/gcc/cp/parser.c:11234
0xa0e6c7 cp_parser_compound_statement
        ../../gcc/gcc/cp/parser.c:11188
0xa2400a cp_parser_function_body
        ../../gcc/gcc/cp/parser.c:21669
0xa2400a cp_parser_ctor_initializer_opt_and_function_body
        ../../gcc/gcc/cp/parser.c:21707
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-577204-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 01:42:28 2017
Return-Path: <gcc-bugs-return-577204-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 37099 invoked by alias); 3 Oct 2017 01:42: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 37033 invoked by uid 48); 3 Oct 2017 01:42:23 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/82394] Pointer imposes an optimization barrier
Date: Tue, 03 Oct 2017 01:42:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pinskia at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords component
Message-ID: <bug-82394-4-e9GE9KggXB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82394-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82394-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00264.txt.bz2
Content-length: 687

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82394

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |missed-optimization
          Component|c++                         |middle-end

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
With GCC 7.1 on x86_64, they both produce:
my_sorted_array:
.LFB0:
        .cfi_startproc
        xorl    %eax, %eax
        ret

my_sorted_array1:
.LFB1:
        .cfi_startproc
        xorl    %eax, %eax
        ret


I have not tried the trunk yet.
>From gcc-bugs-return-577205-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 01:46:15 2017
Return-Path: <gcc-bugs-return-577205-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 40720 invoked by alias); 3 Oct 2017 01: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 40686 invoked by uid 48); 3 Oct 2017 01:46:11 -0000
From: "peter.bohning at gmx dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82408] cross-compiling for arm64 problems
Date: Tue, 03 Oct 2017 01: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.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: peter.bohning at gmx 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-82408-4-BIiGousEC6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82408-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82408-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00265.txt.bz2
Content-length: 728

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82408

--- Comment #9 from Peter Bohning <peter.bohning at gmx dot com> ---
No.  I think you've misunderstood the problem and I mean I can't test it
because I don't have a computer now but.. 

Like I said I'm doing this to get the libstdc++ library for aarch64, I already
am using the linaro toolchain to actually cross-compile things.

And as I recall, "target" defaults to "host".

By marking this bug "invalid" and "resolved" you're also neglecting that these
various things I ran into are at the very least bad practice even if your claim
that just using "target" and not "host" will somehow pick just the right
defines to get this tangled mess of C++ code to compile.
>From gcc-bugs-return-577206-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 02:25:27 2017
Return-Path: <gcc-bugs-return-577206-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 66886 invoked by alias); 3 Oct 2017 02:25: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 66835 invoked by uid 48); 3 Oct 2017 02:25:22 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82408] cross-compiling for arm64 problems
Date: Tue, 03 Oct 2017 02:25:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pinskia at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: INVALID
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82408-4-NTF8oeSnIn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82408-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82408-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00266.txt.bz2
Content-length: 2750

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82408

--- Comment #10 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Peter Bohning from comment #9)
> No.  I think you've misunderstood the problem and I mean I can't test it
> because I don't have a computer now but.. 

No I am not misunderstanding the problem.  You misconfigured the gcc.

> 
> Like I said I'm doing this to get the libstdc++ library for aarch64, I
> already am using the linaro toolchain to actually cross-compile things.

The linaro toolchain already includes a libstdc++ library so there is no reason
why you need to recompile GCC/libstdc++ here.

> 
> And as I recall, "target" defaults to "host".

It does not.  Read
https://gcc.gnu.org/install/configure.html


> By marking this bug "invalid" and "resolved" you're also neglecting that
> these various things I ran into are at the very least bad practice even if
> your claim that just using "target" and not "host" will somehow pick just
> the right defines to get this tangled mess of C++ code to compile.

No I have not.  You are misunderstanding GCC's configure options.  There are
three different triplets and I described them above (this is documented in the
configure/autoconf documentation; look for canadian cross).

You still did not describe what kind of cross compiler you want?  Do you want
one which runs on x86_64 (and built on x86_64) that targets aarch64 if so then
just --target= is needed.  If you want one which runs on aarch64 (was built on
x86_64 that targets aarch64), then --host= and --target= is needed but you
first need a cross that RUNS on x86_64 to be able to build the target libraries
like libstdc++.

Since you have the linaro toolchain you don't need to build glibc; you can use
that sysroot to build the full gcc.

Now compiling cross toolchains are not hard but require you to pay attention to
all three tiplets and understand what the uses are.

The problems you are running into are very simple, you are trying to build a
canadian cross compiler but using an older GCC (6) cross compiler to get the
target libraries built.  The target libraries require a cross compiler which is
the same version as the "canadian" cross compiler.

That is you need a GCC 7 cross compiler that targets aarch64 which is hosted on
x86_64 (and built on x86_64) to be able to build the target libraries for a
compiler which is hosted on aarch64 targeting aarch64 (but built on x86_64).

So again this is invalid because you are using the wrong cross compiler to
build the target libraries and not understanding the three triplets (build,
host and target).  I hope this long message allows you to understand the three
tiplets better than I explained before.
>From gcc-bugs-return-577207-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 07:25:14 2017
Return-Path: <gcc-bugs-return-577207-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 89973 invoked by alias); 3 Oct 2017 07:25:13 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 89911 invoked by uid 48); 3 Oct 2017 07:25:08 -0000
From: "dcb314 at hotmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82413] -O0 crash (ICE in decompose, at tree.h:5179)
Date: Tue, 03 Oct 2017 07:25:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dcb314 at hotmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-82413-4-eeQW9u3X8X@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82413-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82413-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00267.txt.bz2
Content-length: 440

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82413

David Binderman <dcb314 at hotmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dcb314 at hotmail dot com

--- Comment #1 from David Binderman <dcb314 at hotmail dot com> ---
Bug seems to occur between revisions 253315 and 253366.
>From gcc-bugs-return-577208-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 07:48:42 2017
Return-Path: <gcc-bugs-return-577208-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 51968 invoked by alias); 3 Oct 2017 07:48:37 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 51622 invoked by uid 48); 3 Oct 2017 07:48:20 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82410] [7/8 Regression] ICE in replace_placeholders_r
Date: Tue, 03 Oct 2017 07:48:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc short_desc everconfirmed
Message-ID: <bug-82410-4-57LIrvaWQO@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82410-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82410-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00268.txt.bz2
Content-length: 836

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82410

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-10-03
                 CC|                            |marxin at gcc dot gnu.org
            Summary|ICE in                      |[7/8 Regression] ICE in
                   |replace_placeholders_r      |replace_placeholders_r
     Ever confirmed|0                           |1

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
It's probably a different issue (maybe). This one started with r246772.
>From gcc-bugs-return-577209-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 07:51:16 2017
Return-Path: <gcc-bugs-return-577209-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 56868 invoked by alias); 3 Oct 2017 07: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 56821 invoked by uid 48); 3 Oct 2017 07:51:12 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82413] [8 Regression] -O0 crash (ICE in decompose, at tree.h:5179)
Date: Tue, 03 Oct 2017 07:51:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_known_to_work keywords cf_reconfirmed_on cc everconfirmed short_desc target_milestone cf_known_to_fail
Message-ID: <bug-82413-4-CYjXfl0sO5@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82413-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82413-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00269.txt.bz2
Content-length: 1101

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82413

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
      Known to work|                            |7.2.0
           Keywords|                            |ice-on-valid-code
   Last reconfirmed|                            |2017-10-03
                 CC|                            |marxin at gcc dot gnu.org,
                   |                            |tschwinge at gcc dot gnu.org
     Ever confirmed|0                           |1
            Summary|-O0 crash (ICE in           |[8 Regression] -O0 crash
                   |decompose, at tree.h:5179)  |(ICE in decompose, at
                   |                            |tree.h:5179)
   Target Milestone|---                         |8.0
      Known to fail|                            |8.0

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, started with r253345.
>From gcc-bugs-return-577210-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 08:03:27 2017
Return-Path: <gcc-bugs-return-577210-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 69710 invoked by alias); 3 Oct 2017 08:03:26 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 69525 invoked by uid 48); 3 Oct 2017 08:03:11 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82405] Function not inlined for switch and suboptimal assembly is generated
Date: Tue, 03 Oct 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: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-82405-4-AodRl9gxPd@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82405-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82405-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00270.txt.bz2
Content-length: 3281

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82405

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |missed-optimization
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-10-03
                 CC|                            |jakub at gcc dot gnu.org,
                   |                            |marxin at gcc dot gnu.org,
                   |                            |rguenth at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, we also inline the function (-fdump-ipa-inline):

  <bb 2> [100.00%]:
  switch (shape_2(D)) <default: <L4> [20.00%], case 0: <L6> [20.00%], case 1:
<L7> [20.00%], case 2: <L8> [20.00%], case 3: <L9> [20.00%]>

<L6> [20.00%]:
  _5 = r_4(D) * 4.0e+0;
  _6 = r_4(D) * _5;
  goto <bb 8>; [100.00%]

<L7> [20.00%]:
  _7 = r_4(D) * 3.141500000000000181188397618825547397136688232421875e+0;
  _8 = r_4(D) * _7;
  goto <bb 8>; [100.00%]

<L8> [20.00%]:
  _9 = r_4(D) * 1.25660000000000007247535904753021895885467529296875e+1;
  _10 = r_4(D) * _9;
  goto <bb 8>; [100.00%]

<L9> [20.00%]:
  _11 = r_4(D) * 4.156920000000000214868123293854296207427978515625e+1;
  _12 = r_4(D) * _11;
  goto <bb 8>; [100.00%]

<L4> [20.00%]:
  return;

  <bb 8> [80.00%]:
  # _1 = PHI <_6(3), _8(4), _10(5), _12(6)>
  return _1;

there are probably 2 issues I see:

1) clang knowing that switch handles all enum values -> thus default branch is
removed:

$ clang++ -O2 pr82405.c -S -o/dev/stdout
_Z18test_switch_native6eShaped:         # @_Z18test_switch_native6eShaped
        .cfi_startproc
# BB#0:
        movslq  %edi, %rax
        movsd   .Lswitch.table(,%rax,8), %xmm1 # xmm1 = mem[0],zero
...
.Lswitch.table:
        .quad   4616189618054758400     # double 4
        .quad   4614256447914709615     # double 3.1415000000000002
        .quad   4623263647169450607     # double 12.566000000000001
        .quad   4631047162110439693     # double 41.569200000000002
        .size   .Lswitch.table, 32

Having a simpler test-case:
$ cat pr82405-2.c
enum class eShape { eSquare, eCircle, eShpere, eTetraeder };

double test_switch_native(eShape shape, double r) {
    switch(shape) {
    case eShape::eSquare:    return 2;
    case eShape::eCircle:    return 3;
    case eShape::eShpere:    return 4;
    case eShape::eTetraeder: return 5;
    }
}

we're unable to process switch conversion because:
beginning to process the following SWITCH statement (pr82405-2.c:4) : ------- 
switch (shape_2(D)) <default: <L4> [0.00%], case 0: <L6> [0.00%], case 1: <L1>
[0.00%], case 2: <L2> [0.00%], case 3: <L3> [0.00%]>
Bailing out - no common successor to all case label target blocks found

I know that I discussed that with Jakub a bit, one can use | operator for enum
values, but I still believe we should optimize switch
statements where all enum values are handled. Thoughts?

2) predictive commoning is not triggered for similar reason (there's still
default edge not using r * r).

Thanks.
>From gcc-bugs-return-577211-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 08:04:38 2017
Return-Path: <gcc-bugs-return-577211-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 70992 invoked by alias); 3 Oct 2017 08: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 70903 invoked by uid 48); 3 Oct 2017 08:04:33 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82405] Function not inlined for switch and suboptimal assembly is generated
Date: Tue, 03 Oct 2017 08:04:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82405-4-aauAmjCJyq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82405-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82405-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00271.txt.bz2
Content-length: 509

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82405

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
> Having a simpler test-case:
> $ cat pr82405-2.c
> enum class eShape { eSquare, eCircle, eShpere, eTetraeder };
> 
> double test_switch_native(eShape shape, double r) {
>     switch(shape) {
>     case eShape::eSquare:    return 2;
>     case eShape::eCircle:    return 3;
>     case eShape::eShpere:    return 4;
>     case eShape::eTetraeder: return 5;
>     }
> }

It's PR82404.
>From gcc-bugs-return-577212-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 08:05:23 2017
Return-Path: <gcc-bugs-return-577212-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 95577 invoked by alias); 3 Oct 2017 08:05: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 88954 invoked by uid 48); 3 Oct 2017 08:05:18 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/82404] Unnecessary instructions in switch table
Date: Tue, 03 Oct 2017 08:05:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc assigned_to everconfirmed
Message-ID: <bug-82404-4-TM14cXxGvP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82404-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82404-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00272.txt.bz2
Content-length: 741

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82404

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-10-03
                 CC|                            |marxin at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |marxin at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
I can work on that, Andrew can you point to differences in between C and C++
differences of enum values?
>From gcc-bugs-return-577213-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 08:07:45 2017
Return-Path: <gcc-bugs-return-577213-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 119119 invoked by alias); 3 Oct 2017 08:07:45 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 119047 invoked by uid 48); 3 Oct 2017 08:07:40 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/82404] Unnecessary instructions in switch table
Date: Tue, 03 Oct 2017 08:07:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82404-4-prZBvyynK8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82404-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82404-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00273.txt.bz2
Content-length: 746

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82404

--- Comment #4 from Martin Liška <marxin at gcc dot gnu.org> ---
I can confirm in C, clang adds guard checks:

$ cat pr82405-2.c
enum eShape { eSquare, eCircle, eShpere, eTetraeder };

double test_switch_native(enum eShape shape, double r) {
    switch(shape) {
    case eSquare:    return 2;
    case eCircle:    return 3;
    case eShpere:    return 4;
    case eTetraeder: return 5;
    }
}

$ clang pr82405-2.c -O2 -o/dev/stdout -S
test_switch_native:                     # @test_switch_native
        .cfi_startproc
# BB#0:
        cmpl    $3, %edi
        ja      .LBB0_2
# BB#1:
        movslq  %edi, %rax
        movsd   .Lswitch.table(,%rax,8), %xmm0 # xmm0 = mem[0],zero
...
>From gcc-bugs-return-577214-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 08:19:38 2017
Return-Path: <gcc-bugs-return-577214-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 105862 invoked by alias); 3 Oct 2017 08:19: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 99852 invoked by uid 48); 3 Oct 2017 08:19:06 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/82404] Unnecessary instructions in switch table
Date: Tue, 03 Oct 2017 08: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:
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-82404-4-9WIdiEt5Pf@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82404-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82404-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00274.txt.bz2
Content-length: 327

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82404

--- Comment #5 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to Martin Liška from comment #3)
> I can work on that, Andrew can you point to differences in between C and C++
> differences of enum values?

Scoper enumeration is here answer I guess.
>From gcc-bugs-return-577215-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 08:21:45 2017
Return-Path: <gcc-bugs-return-577215-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 46927 invoked by alias); 3 Oct 2017 08: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 18213 invoked by uid 48); 3 Oct 2017 08:21:22 -0000
From: "vasco.costa at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82414] New: Issue with ODR/LTO in G++
Date: Tue, 03 Oct 2017 08: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: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vasco.costa 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-82414-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00275.txt.bz2
Content-length: 3122

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82414

            Bug ID: 82414
           Summary: Issue with ODR/LTO in G++
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vasco.costa at gmail dot com
  Target Milestone: ---

This code shows the abnormal behaviour:
---test.cc---
#include <stdio.h>

typedef __attribute__ ((__aligned__ (16))) struct _TEST_FLOAT128 {
    __extension__ unsigned long long Part[2];
} TEST_FLOAT128;

int main( void )
{
    TEST_FLOAT128 tf;
    printf( "alignof(tf) = %d\n",(int)__alignof__(tf) );

    printf( "alignof(struct _TEST_FLOAT128) = %d\n",(int)__alignof__(struct
_TEST_FLOAT128) );
    printf( "alignof(TEST_FLOAT128) = %d\n",(int)__alignof__(TEST_FLOAT128) );

    return 0;
}
---

$ g++-4.9 -O3 -flto -oalign test.cc -Wall -Wextra -g
# compiles without warnings.

$ g++-5 -O3 -flto -oalign test.cc -Wall -Wextra -g
test.cc:3:51: warning: type ‘struct _TEST_FLOAT128’ violates one definition
rule [-Wodr]
 typedef __attribute__ ((__aligned__ (16))) struct _TEST_FLOAT128 {
                                                   ^
test.cc:5:3: note: a type with different alignment is defined in another
translation unit
 } TEST_FLOAT128;
   ^
# triggers a warning.

===
$ g++-5 -v
Using built-in specs.
COLLECT_GCC=g++-5
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu
5.4.0-6ubuntu1~16.04.4' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs
--enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-5 --enable-shared --enable-linker-build-id
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes
--with-default-libstdcxx-abi=new --enable-gnu-unique-object
--disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib
--disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home
--with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64
--with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64
--with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar
--enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686
--with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib
--with-tune=generic --enable-checking=release --build=x86_64-linux-gnu
--host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 
===

This issue is also reported here:
https://bugs.launchpad.net/ubuntu/+source/gcc-5/+bug/1720959
https://sourceforge.net/p/mingw-w64/mailman/message/34950060/

Thanks for reading this message,
-vasc
>From gcc-bugs-return-577216-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 08:23:32 2017
Return-Path: <gcc-bugs-return-577216-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 21095 invoked by alias); 3 Oct 2017 08:23: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 13170 invoked by uid 48); 3 Oct 2017 08:23:16 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/82404] Unnecessary instructions in switch table
Date: Tue, 03 Oct 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: middle-end
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: 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: cc
Message-ID: <bug-82404-4-ceh98MAUrE@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82404-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82404-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00276.txt.bz2
Content-length: 645

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82404

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Note you can only do it if the enum has enumerations from to 0 to power of 2 -
1,
if you have say enum E { E0, E1, E2 } and switch (e) { case E0: ... case E1:
... case E2: ... } you can't remove the default case, because calling it with e
== 3
is still valid.
>From gcc-bugs-return-577217-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 08:25:33 2017
Return-Path: <gcc-bugs-return-577217-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 118845 invoked by alias); 3 Oct 2017 08:25:06 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 116988 invoked by uid 48); 3 Oct 2017 08:25:02 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/82415] New: FAIL: gcc.target/i386/naked-1.c scan-assembler-not ret
Date: Tue, 03 Oct 2017 08:25: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: trivial
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-82415-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00277.txt.bz2
Content-length: 711

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82415

            Bug ID: 82415
           Summary: FAIL: gcc.target/i386/naked-1.c scan-assembler-not ret
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: trivial
          Priority: P3
         Component: testsuite
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

The test fails because the assembler file contains a reference to a source
file:
...
# 10
"/home/vries/gcc_versions/data/test-vries/goacc-reduction-gimple-pretty-print/with/src/gcc/testsuite/gcc.target/i386/naked-1.c"
1
...
which happens to have 'ret' in it (in -pretty-).
>From gcc-bugs-return-577218-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 09:15:05 2017
Return-Path: <gcc-bugs-return-577218-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 6681 invoked by alias); 3 Oct 2017 09:15: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 6540 invoked by uid 48); 3 Oct 2017 09:15:00 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/82404] Unnecessary instructions in switch table
Date: Tue, 03 Oct 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: middle-end
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82404-4-LH5yQEhXSZ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82404-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82404-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00278.txt.bz2
Content-length: 435

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82404

--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Clang's transformation is not based on the valid values of the enumeration, but
the fact that there's a missing return statement, so if you call it with an
argument that isn't one of the cases it's UB. The compiler can assume that
never happens, so can add an implicit __builtin_unreachable() after the switch.
>From gcc-bugs-return-577219-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 09:31:41 2017
Return-Path: <gcc-bugs-return-577219-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 128181 invoked by alias); 3 Oct 2017 09:31: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 119418 invoked by uid 48); 3 Oct 2017 09:31:37 -0000
From: "rearnsha at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82175] [8 Regression] -march=native fails on armv7 big/little system armv7l-unknown-linux-gnueabihf with gcc 8.0.0
Date: Tue, 03 Oct 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: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rearnsha at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rearnsha at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82175-4-GEpqTYGsGp@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82175-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82175-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00279.txt.bz2
Content-length: 2875

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82175

--- Comment #11 from Richard Earnshaw <rearnsha at gcc dot gnu.org> ---
I've looked into this, I don't think there's anything to worry about.  The
printed options seem to take some of the command-line and other option
processing into account before printing out the results, so there may be some
subtle changes on options that don't matter.

(In reply to Andrew Roberts from comment #6)
> Thanks Richard, this is now ok, tested on armv7 and aarch64. 
> 
> However I do see differences in what is selected by march=native on arm
> between 7.2.0 and 8.0.0.20171001. Is this as expected? Or is it a work in
> progress? There seem to be significant changes...
> 
> On aarch64: The only difference is: (< is gcc-7.2.0, > is gcc-8)
> 
> <   -mtls-size=                                 [default]
> ---
> >   -mtls-size=                                 24
> 
> On armv7: (tested on RPI, and ODROID XU4)
> RPI:
> <   -march=                     		armv8-a+crc
> ---
> >   -march=                     		armv8-a+crc+simd (RPI)
> 
> ODROID XU4:
> <   -march=                                     armv7ve
> ---
> >   -march=                                     armv7ve+vfpv3-d16
> 
> Differences ommon to both RPI and ODROID XU4:
> >   -mbe32                      		[enabled]
> >   -mbe8                       		[disabled]

This is a new option, but only relevant on big-endian.  Normally you won't need
it even then as the default is normally worked out correctly from the
architecture.

> 
> <   -mcpu=                      		[default]
> <   -mfix-cortex-m3-ldrd        		[enabled]
> ---
> >   -mcpu=                      		

This is now handled internally as a string rather than an enumerated set, so
there's no 'default' value any more.

> >   -mfix-cortex-m3-ldrd        		[disabled]

Only relevant to cortex-m3.

> 
> <   -mrestrict-it               		[enabled]
> ---
> >   -mrestrict-it               		[disabled]
Only defaults to enabled on armv8-a and later.

> 
> <   -mstructure-size-boundary=  		32
> ---
> >   -mstructure-size-boundary=  		8

Despite what it says here, the default on linux has been 8 since the AAPCS was
introduced.  8 is correct.

> 
> <   -mthumb-interwork           		[enabled]
> ---
> >   -mthumb-interwork           		[disabled]

Thumb interworking (special code to support it) is only needed on ARMv4t. 
After that all code supports interworking whether you ask for it or not.

> 
> <   -mtp=                       		auto
> ---
> >   -mtp=                       		cp15

This is showing the resolved thread model for your selected architecture (gcc-7
looks to be showing the unresolved value).

> 
> <   -mtune=                     		[default]
> ---
> >   -mtune=

Similar to -mcpu.
>From gcc-bugs-return-577220-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 09:44:05 2017
Return-Path: <gcc-bugs-return-577220-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 67821 invoked by alias); 3 Oct 2017 09:44:05 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 60375 invoked by uid 48); 3 Oct 2017 09:44:00 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/80666] character length parameter fails if declaration order incorrect
Date: Tue, 03 Oct 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: fortran
X-Bugzilla-Version: 6.3.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-80666-4-mfAAybSjnE@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80666-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80666-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00280.txt.bz2
Content-length: 1302

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80666

--- Comment #9 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> Yes I would object to closing it.
> This issue has a large impact on significant bodies of legacy code
> in our institute.

Common! How many of such errors do you see now?

> I understand that you wish to enforce "standards",

I don't want to "enforce" anything, I am just trying to reflect the present
situation of gfortran: 908 PRs opened as for today (may be a dozen fixed
pending) and a shortage of man-power.

In my opinion, it would be fair with respect to the gfortran users to close as
WONTFIX PRS expected to rot forever.

> but removing a "Non-standard extension" that was present in older
> gfortran versions is wrong in my opinion.

IMO what is wrong is

(1) use extensions
(2) expect that they will work at time t+1 because they "worked" at time t.

> You should at least leave a commandline option or environment switch
> to allow users to compile legacy code that worked fine before.

IMO you have the following options:

(1) Fix your code.
(2) Stick to an old version that handle your pet extension.
(3) Do the work (or pay someone to do it) to restore the extension (expect some
fight to get it accepted).
(4) Wait forever a fix which will never come.
>From gcc-bugs-return-577222-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 09:46:52 2017
Return-Path: <gcc-bugs-return-577222-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 117628 invoked by alias); 3 Oct 2017 09:46: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 117461 invoked by uid 48); 3 Oct 2017 09:46:48 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/82415] FAIL: gcc.target/i386/naked-1.c scan-assembler-not ret
Date: Tue, 03 Oct 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: testsuite
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: trivial
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-82415-4-XabCIAWgza@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82415-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82415-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00282.txt.bz2
Content-length: 234

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82415

--- Comment #1 from Tom de Vries <vries at gcc dot gnu.org> ---
Created attachment 42291
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42291&action=edit
Tentative patch
>From gcc-bugs-return-577221-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 09:46:42 2017
Return-Path: <gcc-bugs-return-577221-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 116922 invoked by alias); 3 Oct 2017 09:46:42 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 116837 invoked by uid 48); 3 Oct 2017 09:46:38 -0000
From: "andrey.y.guskov at intel dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82358] [8 regression] i386/stack-check-11.c fail
Date: Tue, 03 Oct 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: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: andrey.y.guskov at intel 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-82358-4-J47jSb9giN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82358-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82358-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00281.txt.bz2
Content-length: 1481

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82358

--- Comment #3 from Andrey Guskov <andrey.y.guskov at intel dot com> ---
This is my gcc -v:

Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=bin/../libexec/gcc/x86_64-pc-linux-gnu/8.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: source/configure -with-system-zlib --with-demangler-in-ld
--with-fpmath=sse --enable-shared --enable-host-shared --enable-clocale=gnu
--enable-cloog-backend=isl --enable-languages=c,c++,fortran,jit,lto
-with-arch=slm --with-cpu=slm
Thread model: posix
gcc version 8.0.0 20170920 (experimental) (GCC)



And this is what my objdump -D looks like:

stack-check-11.o:     file format elf64-x86-64
Disassembly of section .text:

0000000000000000 <frob>:
   0:   48 8d a4 24 00 f0 ff    lea    -0x1000(%rsp),%rsp
   7:   ff
   8:   48 83 0c 24 00          orq    $0x0,(%rsp)
   d:   48 8d a4 24 00 f0 ff    lea    -0x1000(%rsp),%rsp
  14:   ff
  15:   48 83 0c 24 00          orq    $0x0,(%rsp)
  1a:   48 8d a4 24 00 f0 ff    lea    -0x1000(%rsp),%rsp
  21:   ff
  22:   48 83 0c 24 00          orq    $0x0,(%rsp)
  27:   48 8d a4 24 38 fa ff    lea    -0x5c8(%rsp),%rsp
  2e:   ff
  2f:   48 89 e6                mov    %rsp,%rsi
  32:   48 8d bc 24 e0 1a 00    lea    0x1ae0(%rsp),%rdi
  39:   00
  3a:   e8 00 00 00 00          callq  3f <frob+0x3f>
  3f:   48 8d a4 24 c8 35 00    lea    0x35c8(%rsp),%rsp
  46:   00
  47:   c3                      retq
>From gcc-bugs-return-577223-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 09:49:19 2017
Return-Path: <gcc-bugs-return-577223-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 14827 invoked by alias); 3 Oct 2017 09:49:19 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 13572 invoked by uid 48); 3 Oct 2017 09:49:14 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82410] [7/8 Regression] ICE in replace_placeholders_r
Date: Tue, 03 Oct 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: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82410-4-b1JtV7fy55@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82410-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82410-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00283.txt.bz2
Content-length: 171

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82410

--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Thanks. Better leaving Marek in CC anyway ;)
>From gcc-bugs-return-577224-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 09:50:15 2017
Return-Path: <gcc-bugs-return-577224-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 54177 invoked by alias); 3 Oct 2017 09: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 47507 invoked by uid 55); 3 Oct 2017 09:50:10 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82386] [8 Regression] internal compiler error: Segmentation fault on 32-bit powerpc BE targets
Date: Tue, 03 Oct 2017 09:50:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82386-4-s6pR5xsRc5@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82386-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82386-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00284.txt.bz2
Content-length: 558

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82386

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue Oct  3 09:49:37 2017
New Revision: 253378

URL: https://gcc.gnu.org/viewcvs?rev=253378&root=gcc&view=rev
Log:
        PR target/82386
        * combine.c (combine_instructions): Don't combine in unreachable
        basic blocks.

        * gcc.dg/pr82386.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/pr82386.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/combine.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-577225-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 09:57:24 2017
Return-Path: <gcc-bugs-return-577225-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 48538 invoked by alias); 3 Oct 2017 09: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 48448 invoked by uid 48); 3 Oct 2017 09:57:19 -0000
From: "niklas.hauser at arm dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/42159] unwinding issues on darwin
Date: Tue, 03 Oct 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: 4.4.2
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: niklas.hauser at arm 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-42159-4-OjSpCFau47@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-42159-4@http.gcc.gnu.org/bugzilla/>
References: <bug-42159-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00285.txt.bz2
Content-length: 5035

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42159

Niklas Hauser <niklas.hauser at arm dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |niklas.hauser at arm dot com

--- Comment #35 from Niklas Hauser <niklas.hauser at arm dot com> ---
We can reproduce this issue on OS X 10.12, please see below for a detailed
analysis of the underlying problem.
This issue is fixed by the patch proposed by Pierre Ossman. Did this patch (or
maybe a similar solution) make it upstream already?


Summary of cause:

The libgcc unwinder implementation is broken for all 64-bit builds of OS X
(since 10.6) due to a non-backwards compatible change in the _keymgr API, which
does not provide a process-wide image list anymore.


Details of cause:

This is the minimal example to reproduce the issue on OS X (>10.6):

  #include <iostream>
  int main() {
      try {
          throw 20;
      }
      catch (int e) {
          std::cout << "Exception No. " << e << "\n";
      }
      return 0;
  }

Running this application will cause a SIGABRT:

  g++ -static-libgcc -o failboat main.cpp  && ./failboat
  [1]    4047 abort      ./failboat

Stack trace of this failure is:

  ...
  #12 0x00007fff5fbff370 in ?? ()
  #13 0x00000001000987c1 in uw_init_context_1 ()
  #14 0x0000000100098e1e in _Unwind_RaiseException ()
  #15 0x000000010000d81b in __cxa_throw ()
  #16 0x0000000100000b30 in main () at main.cpp:4

We're failing an assert in uw_init_context_1 (gcc/libgcc/unwind-dw2.c:1578):

  code = uw_frame_state_for (context, &fs);
  gcc_assert (code == _URC_NO_REASON);

Specifically uw_frame_state_for returns code _URC_END_OF_STACK and this then
fails the gcc_assert, which then  unwraps in a SIGABRT. uw_frame_state_for()
calls _Unwind_Find_FDE() in gcc/libgcc/unwind-dw2.c:1249, which returns NULL
however and the entire function therefore returns _URC_END_OF_STACK:

  fde = _Unwind_Find_FDE (context->ra + _Unwind_IsSignalFrame (context) - 1,
&context->bases);
  if (fde == NULL)
    {
      return _URC_END_OF_STACK;
    }

_Unwind_Find_FDE() is defined in gcc/libgcc/unwind-dw2-fde.c:1027, EXCEPT on OS
X (aka. Darwin), where it is reimplemented in
gcc/libgcc/config/unwind-dw2-fde-darwin.c:244!

This implementation uses the _keymgr API to access Dwarf2 object lists and ELF
images (with the KEYMGR_GCC3_DW2_OBJ_LIST and KEYMGR_GCC3_LIVE_IMAGE_LIST keys,
respectively).
The function first checks the Dwarf2 object lists, then falls back to using the
original implementation (which has been renamed to
_Unwind_Find_registered_FDE()) before searching the ELF images in
examine_objects:

  the_obj_info =
    _keymgr_get_and_lock_processwide_ptr (KEYMGR_GCC3_DW2_OBJ_LIST);
  if (! the_obj_info)
    the_obj_info = calloc (1, sizeof (*the_obj_info));

  if (the_obj_info != NULL)
    {
      /* code removed for brevity */
      ret = _Unwind_Find_registered_FDE (pc, bases);
    }

  /* OK, didn't find it in the list of FDEs we've seen before,
     so go through and look at the new ones.  */
  if (ret == NULL)
    ret = examine_objects (pc, bases, the_obj_info == NULL);

Here the first call to KEYMGR_GCC3_DW2_OBJ_LIST returns NULL, thus an empty
object list is allocated. _Unwind_Find_registered_FDE() returns NULL too, since
it operates only on previously seen objects, of which there are none yet.
Finally, examine_objects is finally called, which contains:

  image = _keymgr_get_and_lock_processwide_ptr (KEYMGR_GCC3_LIVE_IMAGE_LIST);

Note how the KEYMGR_GCC3_DW2_OBJ_LIST list is used as a "cache" of previously
seen Dwarf2 objects and is first populated by examine_objects() using the
KEYMGR_GCC3_LIVE_IMAGE_LIST.

However, on 64-bit builds of OS X, KEYMGR_GCC3_LIVE_IMAGE_LIST always returns
NULL and so the image information can never be retrieved. The reason for this
is found in the implementation of keymgr.c, which is published here:
https://opensource.apple.com/source/keymgr/keymgr-28/keymgr.c.auto.html.

At the very bottom, in __keymgr_initializer() it says:

  #if __x86_64__
    /* On Mac OS X 10.6, libunwind in libSystem.dylib implements all unwinding
functionality. */
    /* libunwind does not use keymgr, so there is no need to maintain
KEYMGR_GCC3_LIVE_IMAGE_LIST */
    /* in sync with dyld's list of images.  But there might be some i386 or ppc
applications that */
    /* carry around there own copy of the unwinder (from libgcc.a) and need
KEYMGR_GCC3_LIVE_IMAGE_LIST. */
  #else
    /* register with dyld so that we are notified about all loaded mach-o
images */
    _dyld_register_func_for_add_image (dwarf2_unwind_dyld_add_image_hook);
    _dyld_register_func_for_remove_image
(dwarf2_unwind_dyld_remove_image_hook);
  #endif /* __x86_64__ */

On 64-bit builds of OS X these images are simply never added. The libgcc
unwinder code can therefore never work, since it relies on this information.
>From gcc-bugs-return-577226-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 10:05:21 2017
Return-Path: <gcc-bugs-return-577226-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 79246 invoked by alias); 3 Oct 2017 10: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 79208 invoked by uid 48); 3 Oct 2017 10:05:16 -0000
From: "derodat at adacore dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/82384] [8 Regression] s-taprop.adb failed to compile for x32
Date: Tue, 03 Oct 2017 10:05:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: ada
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: derodat at adacore dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ebotcazou at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82384-4-K5zqpiYI7W@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82384-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82384-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00286.txt.bz2
Content-length: 183

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82384

--- Comment #13 from Pierre-Marie de Rodat <derodat at adacore dot com> ---
Yes, and thank you Eric for checking the fix in. :-)
>From gcc-bugs-return-577227-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 10:09:12 2017
Return-Path: <gcc-bugs-return-577227-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 82014 invoked by alias); 3 Oct 2017 10:09:11 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 81943 invoked by uid 48); 3 Oct 2017 10:09:07 -0000
From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/80666] character length parameter fails if declaration order incorrect
Date: Tue, 03 Oct 2017 10:09:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 6.3.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tkoenig 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-80666-4-gxehyHwcK0@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80666-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80666-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00287.txt.bz2
Content-length: 1205

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80666

Thomas Koenig <tkoenig at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
                 CC|                            |tkoenig at gcc dot gnu.org
         Resolution|---                         |WONTFIX

--- Comment #10 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
(In reply to Jos de Kloe from comment #8)

> I understand that you wish to enforce "standards", but removing a
> "Non-standard extension" that was present in older gfortran versions is
> wrong in my opinion. You should at least leave a commandline option or
> environment switch to allow users to compile legacy code that worked fine
> before.

If we were to remove something complex and sometimes essential,
like the CONVERT specifier in the OPEN statement, I would agree
with you.

In this case, the fix to the source code is quite trivial:
Put the declarations in the right order. I've done that,
when I found that g77 pointed out the same error in legacy code
that I maintained.

Resolving as WONTFIX.
>From gcc-bugs-return-577228-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 10:11:06 2017
Return-Path: <gcc-bugs-return-577228-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 84392 invoked by alias); 3 Oct 2017 10:11: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 84343 invoked by uid 48); 3 Oct 2017 10:11:02 -0000
From: "iains at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/42159] unwinding issues on darwin
Date: Tue, 03 Oct 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: target
X-Bugzilla-Version: 4.4.2
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: iains at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-42159-4-vjpDtioCjh@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-42159-4@http.gcc.gnu.org/bugzilla/>
References: <bug-42159-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00288.txt.bz2
Content-length: 1072

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42159

Iain Sandoe <iains at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |iains at gcc dot gnu.org

--- Comment #36 from Iain Sandoe <iains at gcc dot gnu.org> ---
(In reply to Niklas Hauser from comment #35)
> We can reproduce this issue on OS X 10.12, please see below for a detailed
> analysis of the underlying problem.

The underlying issue is understood and we've worked around it to for the case
of "-static-libgcc" [PR80556].

Please could you identify:
 1. the version of GCC you're testing? (the ones mentioned in the PR here are
well out of 'support').  Although there are probably work-around patches that
could be applied

 2. the command line(s)

I have some patches in progress to tidy up the CRT/libgcc/unwinder stuff (which
do, essentially, remove the unwinder from the build for later darwin - but
leave them in place for Darwin9 etc.)
>From gcc-bugs-return-577229-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 10:44:50 2017
Return-Path: <gcc-bugs-return-577229-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 95512 invoked by alias); 3 Oct 2017 10: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 95399 invoked by uid 48); 3 Oct 2017 10:44:46 -0000
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82358] [8 regression] i386/stack-check-11.c fail
Date: Tue, 03 Oct 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: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hjl.tools at gmail dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82358-4-Wsa8C09n08@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82358-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82358-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00289.txt.bz2
Content-length: 218

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82358

--- Comment #4 from H.J. Lu <hjl.tools at gmail dot com> ---
SLM prefers:

lea -0x1000(%rsp),%rsp

over

sub  0x1000, %rsp


Adding -mtune=generic should fix it.
>From gcc-bugs-return-577230-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 11:17:37 2017
Return-Path: <gcc-bugs-return-577230-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 20046 invoked by alias); 3 Oct 2017 11:17: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 20008 invoked by uid 48); 3 Oct 2017 11:17:33 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82374] #pragma GCC optimize is not applied to openmp-generated functions
Date: Tue, 03 Oct 2017 11:17:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: missed-optimization, openmp, wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on assigned_to everconfirmed attachments.created
Message-ID: <bug-82374-4-dLZpJhIzfT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82374-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82374-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00290.txt.bz2
Content-length: 689

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82374

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2017-10-03
           Assignee|unassigned at gcc dot gnu.org      |jakub at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 42292
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42292&action=edit
gcc8-pr82374.patch

Untested fix.
>From gcc-bugs-return-577231-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 11:25:19 2017
Return-Path: <gcc-bugs-return-577231-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 42362 invoked by alias); 3 Oct 2017 11:25: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 42280 invoked by uid 55); 3 Oct 2017 11:25:15 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82381] [8 Regression] internal compiler error: qsort checking failed
Date: Tue, 03 Oct 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: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-checking
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82381-4-6YDGrNQioi@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82381-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82381-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00291.txt.bz2
Content-length: 773

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82381

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue Oct  3 11:24:39 2017
New Revision: 253379

URL: https://gcc.gnu.org/viewcvs?rev=253379&root=gcc&view=rev
Log:
        PR tree-optimization/82381
        * tree-ssa-reassoc.c (sort_by_operand_rank): Don't check
        stmt_to_insert nor wheather SSA_NAMEs are default defs.
        Return 1 or -1 if one of bba and bbb is NULL. If bb_rank is equal,
        fallthrough into reassoc_stmt_dominates_stmt_p.

        * gcc.c-torture/compile/pr82381.c: New test.

Added:
    trunk/gcc/testsuite/gcc.c-torture/compile/pr82381.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-ssa-reassoc.c
>From gcc-bugs-return-577232-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 11:28:13 2017
Return-Path: <gcc-bugs-return-577232-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 53283 invoked by alias); 3 Oct 2017 11:28: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 53215 invoked by uid 48); 3 Oct 2017 11:28:09 -0000
From: "jamborm at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug hsa/82416] New: HSA BE does not honor TREE_PRECISION
Date: Tue, 03 Oct 2017 11:28:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: hsa
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jamborm at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone attachments.created
Message-ID: <bug-82416-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00292.txt.bz2
Content-length: 876

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82416

            Bug ID: 82416
           Summary: HSA BE does not honor TREE_PRECISION
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: hsa
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jamborm at gcc dot gnu.org
                CC: jamborm at gcc dot gnu.org, marxin at gcc dot gnu.org
  Target Milestone: ---

Created attachment 42293
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42293&action=edit
Testcase

HSA BE does not honor TREE_PRECISION, meaning that it miscompiles the
following because the condition is always evaluated as true:

    char X, r;
    /* ... */
    if (X >= 97 && X <= 122)
      r = X - 32;
    else
      r = X;

See the attachment for a full testcase.
>From gcc-bugs-return-577233-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 11:29:09 2017
Return-Path: <gcc-bugs-return-577233-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 69925 invoked by alias); 3 Oct 2017 11:29: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 66782 invoked by uid 48); 3 Oct 2017 11:29:00 -0000
From: "jamborm at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug hsa/82416] HSA BE does not honor TREE_PRECISION
Date: Tue, 03 Oct 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: hsa
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jamborm at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: 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-82416-4-rA2v3ACgYv@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82416-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82416-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00293.txt.bz2
Content-length: 403

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82416

Martin Jambor <jamborm at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-10-03
     Ever confirmed|0                           |1
>From gcc-bugs-return-577235-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 11:44:41 2017
Return-Path: <gcc-bugs-return-577235-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 124267 invoked by alias); 3 Oct 2017 11:44: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 121469 invoked by uid 48); 3 Oct 2017 11:44:37 -0000
From: "jamborm at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82363] [8 Regression] wrong code at -O1, -O2 and -O3 on x86_64-linux-gnu
Date: Tue, 03 Oct 2017 11:44:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jamborm at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jamborm at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82363-4-UFXquE1rOY@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82363-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82363-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00295.txt.bz2
Content-length: 128

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82363

--- Comment #6 from Martin Jambor <jamborm at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-577234-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 11:44:21 2017
Return-Path: <gcc-bugs-return-577234-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 111546 invoked by alias); 3 Oct 2017 11:44:21 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 111461 invoked by uid 55); 3 Oct 2017 11:44:18 -0000
From: "jamborm at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82363] [8 Regression] wrong code at -O1, -O2 and -O3 on x86_64-linux-gnu
Date: Tue, 03 Oct 2017 11:44:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jamborm at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jamborm at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82363-4-rnojgPw9vE@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82363-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82363-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00294.txt.bz2
Content-length: 746

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82363

--- Comment #5 from Martin Jambor <jamborm at gcc dot gnu.org> ---
Author: jamborm
Date: Tue Oct  3 11:43:45 2017
New Revision: 253380

URL: https://gcc.gnu.org/viewcvs?rev=253380&root=gcc&view=rev
Log:
[PR 82363] Fix thinko in SRA subaccess propagation

2017-10-03  Martin Jambor  <mjambor@suse.cz>

        PR tree-optimization/82363
        * tree-sra.c (propagate_subaccesses_across_link): In unrecoverable
        mismatch, mark lacc written regardless of racc.

        testsuite/
        * gcc.dg/tree-ssa/pr82363.c: New test.


Added:
    trunk/gcc/testsuite/gcc.dg/tree-ssa/pr82363.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-sra.c
>From gcc-bugs-return-577236-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 11:47:34 2017
Return-Path: <gcc-bugs-return-577236-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 14043 invoked by alias); 3 Oct 2017 11:47: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 13980 invoked by uid 48); 3 Oct 2017 11:47:30 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/50410] [5/6/7/8 Regression] ICE in record_reference
Date: Tue, 03 Oct 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: fortran
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-50410-4-WVs4TUwqmX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-50410-4@http.gcc.gnu.org/bugzilla/>
References: <bug-50410-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00296.txt.bz2
Content-length: 978

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50410

--- Comment #28 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
I have revisited the draft patch in comment 8 and it fixes all the ICEs, but
those in comment 23. The last two of them emit now

in gfc_format_decoder, at fortran/error.c:934
libbacktrace could not find executable to open

I have found a typo in the patch "initalized" should be replaced with
"initialized".

With the patch the following tests

gfortran.dg/data_constraints_1.f90
gfortran.dg/data_initialized.f90
gfortran.dg/data_initialized_2.f90
gfortran.dg/data_invalid.f90
gfortran.dg/data_pointer_1.f90

regress. I'll attach the patch fixing these regressions, noting that there is
probably something wrong for gfortran.dg/data_pointer_1.f90. The patch seems to
break some gnu extensions (but AFAICT not all them).

BTW what is the best expression in English "already is" or "is already", the
later being easier to parse for French readers.
>From gcc-bugs-return-577237-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 11:49:18 2017
Return-Path: <gcc-bugs-return-577237-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 16893 invoked by alias); 3 Oct 2017 11:49:18 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 16781 invoked by uid 48); 3 Oct 2017 11:49:14 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/50410] [5/6/7/8 Regression] ICE in record_reference
Date: Tue, 03 Oct 2017 11:49:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-50410-4-KqGvz8pVjr@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-50410-4@http.gcc.gnu.org/bugzilla/>
References: <bug-50410-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00297.txt.bz2
Content-length: 290

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50410

--- Comment #29 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Created attachment 42294
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42294&action=edit
Patch to fix the regressions caused by the patch in comment 8
>From gcc-bugs-return-577238-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 11:53:20 2017
Return-Path: <gcc-bugs-return-577238-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 24103 invoked by alias); 3 Oct 2017 11:53:20 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 24039 invoked by uid 48); 3 Oct 2017 11:53:17 -0000
From: "tschwinge at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82413] [8 Regression] -O0 crash (ICE in decompose, at tree.h:5179)
Date: Tue, 03 Oct 2017 11:53:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tschwinge at gcc dot gnu.org
X-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-82413-4-rVWNOXayIc@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82413-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82413-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00298.txt.bz2
Content-length: 672

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82413

Thomas Schwinge <tschwinge at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rsandifo at gcc dot gnu.org

--- Comment #3 from Thomas Schwinge <tschwinge at gcc dot gnu.org> ---
I'm always willing to take the blame for things I've broken ;-) but...

(In reply to Martin Liška from comment #2)
> Confirmed, started with r253345.

... that sounds very unlikely.  I had a quick look myself, and that would
instead point to r253341 for this regression/ICE.
>From gcc-bugs-return-577239-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 12:15:22 2017
Return-Path: <gcc-bugs-return-577239-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 85338 invoked by alias); 3 Oct 2017 12:15: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 83302 invoked by uid 48); 3 Oct 2017 12:15:04 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/66681] [Coarray] Wrong result in assigning this_image() to a complex coarray
Date: Tue, 03 Oct 2017 12:15:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-66681-4-FbNynxBlUb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66681-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66681-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00299.txt.bz2
Content-length: 303

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66681

--- Comment #11 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> I will do that business as long a somebody explains to me why one might
> ever want to store the value returned by this_image() as a complex :-)

If this is legal, why not?
>From gcc-bugs-return-577240-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 12:16:08 2017
Return-Path: <gcc-bugs-return-577240-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 86798 invoked by alias); 3 Oct 2017 12:16: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 86700 invoked by uid 48); 3 Oct 2017 12:16:01 -0000
From: "clyon at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82381] [8 Regression] internal compiler error: qsort checking failed
Date: Tue, 03 Oct 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: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-checking
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: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-82381-4-LR7IDqsriz@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82381-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82381-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00300.txt.bz2
Content-length: 520

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82381

Christophe Lyon <clyon at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |clyon at gcc dot gnu.org

--- Comment #8 from Christophe Lyon <clyon at gcc dot gnu.org> ---
FWIW, Jakub's patch (in comment #7) doesn't fix the build failure I reported at
https://gcc.gnu.org/ml/gcc-patches/2017-09/msg01980.html
>From gcc-bugs-return-577241-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 12:25:53 2017
Return-Path: <gcc-bugs-return-577241-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 32691 invoked by alias); 3 Oct 2017 12: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 32641 invoked by uid 48); 3 Oct 2017 12:25:48 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/69604] ICE in gfc_add_modify_loc, at fortran/trans.c:159
Date: Tue, 03 Oct 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: fortran
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-69604-4-216HR9tK4N@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-69604-4@http.gcc.gnu.org/bugzilla/>
References: <bug-69604-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00301.txt.bz2
Content-length: 316

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69604

--- Comment #13 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
The patch in comment 7 no longer applies: 'ts.type == BT_DERIVED' has been
replaced with 'ts.type == BT_DERIVED'. Updating the patch along this line does
not remove the ICE!-(
>From gcc-bugs-return-577242-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 12:30:31 2017
Return-Path: <gcc-bugs-return-577242-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 62762 invoked by alias); 3 Oct 2017 12: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 62434 invoked by uid 48); 3 Oct 2017 12:29:58 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82361] Useless "mov eax, eax" in generated code
Date: Tue, 03 Oct 2017 12:30:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords cf_gcctarget bug_status resolution
Message-ID: <bug-82361-4-EwvtzGEYma@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82361-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82361-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00302.txt.bz2
Content-length: 749

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82361

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |missed-optimization
             Target|                            |x86_64-*-*, i?86-*-*

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-577243-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 12:32:23 2017
Return-Path: <gcc-bugs-return-577243-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 26722 invoked by alias); 3 Oct 2017 12:32:23 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 23440 invoked by uid 48); 3 Oct 2017 12:32:19 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/52162] Bogus -fcheck=bounds with realloc on assignment to unallocated LHS
Date: Tue, 03 Oct 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: fortran
X-Bugzilla-Version: 4.7.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: pault at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-52162-4-xGfa6eEFDb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-52162-4@http.gcc.gnu.org/bugzilla/>
References: <bug-52162-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00303.txt.bz2
Content-length: 155

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52162

--- Comment #13 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Anything I can do to help?
>From gcc-bugs-return-577244-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 13:41:42 2017
Return-Path: <gcc-bugs-return-577244-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 118628 invoked by alias); 3 Oct 2017 13: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 115700 invoked by uid 55); 3 Oct 2017 13:41:36 -0000
From: "dave.anglin at bell dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libfortran/79540] [7/8 Regression] FAIL: gfortran.dg/fmt_fw_d.f90   -O0  execution test
Date: Tue, 03 Oct 2017 13:41:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libfortran
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dave.anglin at bell dot net
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79540-4-jIJgZ7NDML@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79540-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79540-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00304.txt.bz2
Content-length: 605

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79540

--- Comment #9 from dave.anglin at bell dot net ---
On 2017-10-01 7:33 AM, dominiq at lps dot ens.fr wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79540
>
> --- Comment #8 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> Could you please uncomment the line
>
>      !print *, "print '", fmt(:fmt_len), "', ", x, " ! => ", str(:len), ": ",
> reason
>
> and post the result?
spawn [open ...]
  print '(f2.1)',    100.000000      ! => ^@^@: no digits

Program aborted. Backtrace:
>From gcc-bugs-return-577245-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 13:56:36 2017
Return-Path: <gcc-bugs-return-577245-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 76552 invoked by alias); 3 Oct 2017 13:56:35 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 76512 invoked by uid 48); 3 Oct 2017 13:56:32 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82373] syntax error in error message
Date: Tue, 03 Oct 2017 13:56:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.2.1
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on assigned_to everconfirmed attachments.created
Message-ID: <bug-82373-4-t1kQSyNwvK@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82373-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82373-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00305.txt.bz2
Content-length: 689

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82373

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2017-10-03
           Assignee|unassigned at gcc dot gnu.org      |jakub at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 42295
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42295&action=edit
gcc8-pr82373.patch

Untested fix.
>From gcc-bugs-return-577246-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 14:08:53 2017
Return-Path: <gcc-bugs-return-577246-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 112180 invoked by alias); 3 Oct 2017 14:08:53 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 112045 invoked by uid 48); 3 Oct 2017 14:08:49 -0000
From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/56789] Wrong code with contiguous dummy argument
Date: Tue, 03 Oct 2017 14:08:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tkoenig at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to
Message-ID: <bug-56789-4-1rw8D4f32i@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-56789-4@http.gcc.gnu.org/bugzilla/>
References: <bug-56789-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00306.txt.bz2
Content-length: 535

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56789

Thomas Koenig <tkoenig at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |NEW
           Assignee|tkoenig at gcc dot gnu.org         |unassigned at gcc dot gnu.org

--- Comment #6 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Hm, seems I misunderstood this - pack/unpack should
be performed.

Unassigning myself.
>From gcc-bugs-return-577247-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 14:10:22 2017
Return-Path: <gcc-bugs-return-577247-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 119401 invoked by alias); 3 Oct 2017 14:10: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 119194 invoked by uid 48); 3 Oct 2017 14:10:13 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82413] [8 Regression] -O0 crash (ICE in decompose, at tree.h:5179)
Date: Tue, 03 Oct 2017 14:10:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82413-4-4dbHilR8Je@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82413-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82413-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00307.txt.bz2
Content-length: 528

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82413

--- Comment #4 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to Thomas Schwinge from comment #3)
> I'm always willing to take the blame for things I've broken ;-) but...
> 
> (In reply to Martin Liška from comment #2)
> > Confirmed, started with r253345.
> 
> ... that sounds very unlikely.  I had a quick look myself, and that would
> instead point to r253341 for this regression/ICE.

Sorry, I must have some issue in my bisect script. Thanks.
>From gcc-bugs-return-577248-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 14:50:32 2017
Return-Path: <gcc-bugs-return-577248-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 110085 invoked by alias); 3 Oct 2017 14:50: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 109745 invoked by uid 48); 3 Oct 2017 14:50:25 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82405] Function not inlined for switch and suboptimal assembly is generated
Date: Tue, 03 Oct 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: 8.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82405-4-JFraGQO4NS@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82405-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82405-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00308.txt.bz2
Content-length: 1918

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82405

--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
Isolated test-case where we do not reassociate expressions:

$ cat pr82405-reduced2.c
static inline double eval_square(double r) { return r * r * 4; }
static inline double eval_circle(double r) { return r * r * 3.1415; }

static inline double eval_square2(double r) { return 4 * r * r; }
static inline double eval_circle2(double r) { return 3.1415 * r * r; }

double test_switch_native_slow(int shape, double r) {
    if (shape == 123)
      return eval_circle2(r);
    else
      return eval_square2(r);
}

double test_switch_native_fast(int shape, double r) {
    if (shape == 123)
      return eval_circle(r);
    else
      return eval_square(r);
}

=================
g++  pr82405-reduced2.c -std=c++11 -O2 -fdump-tree-optimized=/dev/stdout

double test_switch_native_slow(int, double) (int shape, double r)
{
  double _1;
  double _5;
  double _6;
  double _7;
  double _8;

  <bb 2> [100.00%]:
  if (shape_2(D) == 123)
    goto <bb 3>; [30.50%]
  else
    goto <bb 4>; [69.50%]

  <bb 3> [30.50%]:
  _5 = r_4(D) * 3.141500000000000181188397618825547397136688232421875e+0;
  _6 = r_4(D) * _5;
  goto <bb 5>; [100.00%]

  <bb 4> [69.50%]:
  _7 = r_4(D) * 4.0e+0;
  _8 = r_4(D) * _7;

  <bb 5> [100.00%]:
  # _1 = PHI <_6(3), _8(4)>
  return _1;

}

double test_switch_native_fast(int, double) (int shape, double r)
{
  double _1;
  double _6;
  double _8;
  double _9;

  <bb 2> [100.00%]:
  _9 = r_4(D) * r_4(D);
  if (shape_2(D) == 123)
    goto <bb 3>; [30.50%]
  else
    goto <bb 4>; [69.50%]

  <bb 3> [30.50%]:
  _6 = _9 * 3.141500000000000181188397618825547397136688232421875e+0;
  goto <bb 5>; [100.00%]

  <bb 4> [69.50%]:
  _8 = _9 * 4.0e+0;

  <bb 5> [100.00%]:
  # _1 = PHI <_6(3), _8(4)>
  return _1;

}
>From gcc-bugs-return-577249-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 14:56:57 2017
Return-Path: <gcc-bugs-return-577249-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 36344 invoked by alias); 3 Oct 2017 14: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 35629 invoked by uid 48); 3 Oct 2017 14:56:53 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82405] Function not inlined for switch and suboptimal assembly is generated
Date: Tue, 03 Oct 2017 14:56:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
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: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82405-4-6itA2EcsPy@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82405-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82405-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00309.txt.bz2
Content-length: 255

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82405

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
> Isolated test-case where we do not reassociate expressions:

And I don't think you can reassociate here validly unless -ffast-math.
>From gcc-bugs-return-577250-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 15:02:30 2017
Return-Path: <gcc-bugs-return-577250-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 58649 invoked by alias); 3 Oct 2017 15:02:30 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 58440 invoked by uid 48); 3 Oct 2017 15:02:23 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82405] Function not inlined for switch and suboptimal assembly is generated
Date: Tue, 03 Oct 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: 8.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82405-4-alNvBigH3M@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82405-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82405-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00310.txt.bz2
Content-length: 1375

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82405

--- Comment #5 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #4)
> > Isolated test-case where we do not reassociate expressions:
> 
> And I don't think you can reassociate here validly unless -ffast-math.

Yep, you're right. With -ffast-math we do the reassociation.
Clang does that w/ -O2:

$ ~/bin/llvm/bin/clang++ -v
clang version 6.0.0 (http://llvm.org/git/clang.git
80f50978299e20c5b2e444e9a4fc06bfaf0183cc) (http://llvm.org/git/llvm.git
a29bdba93eaec8e2cf820532c02261ef93ba82b5)
Target: x86_64-unknown-linux-gnu

$ ~/bin/llvm/bin/clang++ -B.  pr82405-reduced2.c -std=c++11 -O2 -o /dev/stdout
-S
...
.LCPI0_0:
        .quad   4616189618054758400     # double 4
        .quad   4614256447914709615     # double 3.1415000000000002
        .text
        .globl  _Z23test_switch_native_slowid
        .p2align        4, 0x90
        .type   _Z23test_switch_native_slowid,@function
_Z23test_switch_native_slowid:          # @_Z23test_switch_native_slowid
        .cfi_startproc
# BB#0:                                 # %entry
        xorl    %eax, %eax
        cmpl    $123, %edi
        sete    %al
        movsd   .LCPI0_0(,%rax,8), %xmm1 # xmm1 = mem[0],zero
        mulsd   %xmm0, %xmm1
        mulsd   %xmm1, %xmm0
        retq

...

Reported says the same.
>From gcc-bugs-return-577252-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 15:07:51 2017
Return-Path: <gcc-bugs-return-577252-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 107162 invoked by alias); 3 Oct 2017 15:07:51 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 107106 invoked by uid 48); 3 Oct 2017 15:07:48 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82414] [5 Regression] Issue with ODR/LTO in G++
Date: Tue, 03 Oct 2017 15: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: 5.4.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc cf_known_to_work short_desc everconfirmed cf_known_to_fail
Message-ID: <bug-82414-4-XL71wIFnCX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82414-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82414-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00312.txt.bz2
Content-length: 1000

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82414

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-10-03
                 CC|                            |marxin at gcc dot gnu.org
      Known to work|                            |4.9.4, 6.4.0
            Summary|Issue with ODR/LTO in G++   |[5 Regression] Issue with
                   |                            |ODR/LTO in G++
     Ever confirmed|0                           |1
      Known to fail|                            |5.4.0

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, it's fixed on trunk since r223633. As we're currently releasing last
release of GCC 5.x branch (5.5), this is will not be fixed on the branch.
Please update to newer GCC. Thanks.
>From gcc-bugs-return-577251-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 15:07:00 2017
Return-Path: <gcc-bugs-return-577251-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 105923 invoked by alias); 3 Oct 2017 15:07: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 102184 invoked by uid 48); 3 Oct 2017 15:06:51 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libfortran/79540] [7/8 Regression] FAIL: gfortran.dg/fmt_fw_d.f90   -O0  execution test
Date: Tue, 03 Oct 2017 15:07:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libfortran
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79540-4-hPRmYadaxQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79540-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79540-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00311.txt.bz2
Content-length: 1482

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79540

--- Comment #10 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Could you please post the result of

call verify_fmt(100.0)
end

! loop through values for w, d
subroutine verify_fmt(x)
    real, intent(in) :: x
    integer :: w, d
    character(len=80) :: str, str0
    integer :: len, len0, pos
    do d = 0, 1
        do w = 1, 3
            str = fmt_w_d(x, w, d)
            len = len_trim(str)

    pos = verify(str(:len), "*")
    if (pos == 0) call errormsg(x, str, len, w, d, "no digits")
        end do
    end do

end subroutine

function fmt_w_d(x, w, d)
    real, intent(in) :: x
    integer, intent(in) :: w, d
    character(len=*) :: fmt_w_d
    character(len=10) :: fmt, make_fmt

    fmt = make_fmt(w, d)
    write (fmt_w_d, fmt) x
end function

function make_fmt(w, d)
    integer, intent(in) :: w, d
    character(len=10) :: make_fmt

    write (make_fmt,'("(f",i0,".",i0,")")') w, d
end function

subroutine errormsg(x, str, len, w, d, reason)
    real, intent(in) :: x
    character(len=80), intent(in) :: str
    integer, intent(in) :: len, w, d
    character(len=*), intent(in) :: reason
    integer :: fmt_len
    integer(1) :: slen
    character(len=10) :: fmt, make_fmt

    fmt = make_fmt(w, d)
    fmt_len = len_trim(fmt)
    slen=len

    print *, "print '", fmt(:fmt_len), "', ", x, " ! => ", "len=", slen,
str(:len), ": ", reason
end subroutine

?
>From gcc-bugs-return-577253-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 15:29:59 2017
Return-Path: <gcc-bugs-return-577253-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 8633 invoked by alias); 3 Oct 2017 15: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 8573 invoked by uid 48); 3 Oct 2017 15:29:54 -0000
From: "janus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82064] [7/8 Regression] [OOP] multiple incompatible definitions of extended derived type via module use
Date: Tue, 03 Oct 2017 15:29:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 7.1.1
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: janus at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82064-4-8yxd7kWKV3@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82064-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82064-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00313.txt.bz2
Content-length: 1019

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82064

--- Comment #7 from janus at gcc dot gnu.org ---
(In reply to Paul Thomas from comment #4)
> The permanent fix is to make sure that the vtables get produced
> unconditionally for module derived types.

This is accomplished by the following patch ...


Index: gcc/fortran/decl.c
===================================================================
--- gcc/fortran/decl.c  (revision 253282)
+++ gcc/fortran/decl.c  (working copy)
@@ -9881,6 +9881,9 @@ gfc_match_derived_decl (void)
   /* Take over the ABSTRACT attribute.  */
   sym->attr.abstract = attr.abstract;

+  if (gfc_current_state () == COMP_MODULE)
+    gfc_find_derived_vtab (sym);
+
   gfc_new_block = sym;

   return MATCH_YES;


... which indeed fixes the issue with 'test_sep'. (Note: I have not regtested
it yet, but I hope it will not break anything.)
>From gcc-bugs-return-577254-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 15:30:10 2017
Return-Path: <gcc-bugs-return-577254-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 9655 invoked by alias); 3 Oct 2017 15:30: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 8833 invoked by uid 48); 3 Oct 2017 15:30:00 -0000
From: "v at vsamko 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: Tue, 03 Oct 2017 15:30:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.1.1
X-Bugzilla-Keywords: rejects-valid
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: cc
Message-ID: <bug-81042-4-r1qNAzCXxz@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-10/txt/msg00314.txt.bz2
Content-length: 644

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81042

Valentine <v at vsamko dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |v at vsamko dot com

--- Comment #3 from Valentine <v at vsamko dot com> ---
I'm having the same problem with gcc 7.2. Clang handles this correctly.

constexpr int gcc_bug() {
    for (unsigned int i = 0; i != 1; ++i) {
        continue;
        int q = 0;
        while (q == -1) {}
    }
    return 0;
}

int main() {
    constexpr int x = gcc_bug();
}
>From gcc-bugs-return-577255-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 15:43:52 2017
Return-Path: <gcc-bugs-return-577255-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 37910 invoked by alias); 3 Oct 2017 15: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 35994 invoked by uid 48); 3 Oct 2017 15:43:49 -0000
From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/25829] [F03] Asynchronous IO support
Date: Tue, 03 Oct 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: fortran
X-Bugzilla-Version: 4.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: tkoenig at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: koenigni at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-25829-4-l62GmRhKsl@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-25829-4@http.gcc.gnu.org/bugzilla/>
References: <bug-25829-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00315.txt.bz2
Content-length: 294

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25829

--- Comment #29 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Another thing... if we do

WRITE (10, ASYNCHRONOUS="YES") A

we need to mark A as ASYNCHRONOUS which we will probably have
to treat similar (or identically) to VOLATILE.
>From gcc-bugs-return-577256-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 15:47:17 2017
Return-Path: <gcc-bugs-return-577256-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 17729 invoked by alias); 3 Oct 2017 15: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 17677 invoked by uid 48); 3 Oct 2017 15:47:14 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/82417] New: Macros from <complex.h> defined in C++11
Date: Tue, 03 Oct 2017 15:47: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: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-82417-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00316.txt.bz2
Content-length: 1394

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82417

            Bug ID: 82417
           Summary: Macros from <complex.h> defined in C++11
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: redi at gcc dot gnu.org
  Target Milestone: ---

The C++11 standard says that <complex.h> should just include the C++ <complex>
header and completely ignore the C library's header. We take some liberty and
include _both_ C++'s <complex> and C's <complex.h>, because historically
<complex.h> wasn't part of the C++ standard and so including it used the C
version and worked OK.

However this means that the following valid C++11 code is rejected:

#include <complex.h>

std::complex<double> I{0, 1};


In file included from /usr/include/c++/7/complex.h:36:0,
                 from I.cc:1:
I.cc:3:22: error: expected unqualified-id before ‘__extension__’
 std::complex<double> I{0, 1};
                      ^
I.cc:3:22: error: expected ‘)’ before ‘__extension__’


For C++11 mode we should #undef the macros that <complex.h> defines with
non-reserved names, and maybe consider not including <complex.h> at all for
-std=c++1* modes.
>From gcc-bugs-return-577257-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 15:48:44 2017
Return-Path: <gcc-bugs-return-577257-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 23519 invoked by alias); 3 Oct 2017 15:48:44 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 23350 invoked by uid 48); 3 Oct 2017 15:48:33 -0000
From: "antoshkka at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82405] Function not inlined for switch and suboptimal assembly is generated
Date: Tue, 03 Oct 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: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: antoshkka at gmail dot com
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-82405-4-Bxl56tM6Na@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82405-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82405-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00317.txt.bz2
Content-length: 982

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82405

--- Comment #6 from Antony Polukhin <antoshkka at gmail dot com> ---
> And I don't think you can reassociate here validly unless -ffast-math.

But you can. In the isolated test case, instead of getting r*r at first, just
move the constant into the xmm1 first and after that multiply it twice with r.
Clang does that

.LCPI0_0:
        .quad   4616189618054758400     # double 4
        .quad   4614256447914709615     # double 3.1415000000000002
test_switch_native_slow(int, double):          # @test_switch_native_slow(int,
double)
        xor     eax, eax
        cmp     edi, 123
        sete    al
        movsd   xmm1, qword ptr [8*rax + .LCPI0_0] # xmm1 = mem[0],zero
        mulsd   xmm1, xmm0
        mulsd   xmm0, xmm1
        ret

Moreover, the current approach "multiply r twice and then multiply it on the
constant" changes the observable behavior, such optimization could be enabled
only with -ffast-math
>From gcc-bugs-return-577259-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 15:51:21 2017
Return-Path: <gcc-bugs-return-577259-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 27316 invoked by alias); 3 Oct 2017 15:51:21 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 26873 invoked by uid 55); 3 Oct 2017 15:51:17 -0000
From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/80118] [5/6/7/8 Regression] ICE with zero size parameter array
Date: Tue, 03 Oct 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: fortran
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tkoenig at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-80118-4-X46roM6hhC@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80118-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80118-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00319.txt.bz2
Content-length: 959

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80118

--- Comment #4 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Author: tkoenig
Date: Tue Oct  3 15:50:45 2017
New Revision: 253383

URL: https://gcc.gnu.org/viewcvs?rev=253383&root=gcc&view=rev
Log:
2017-10-03  Thomas Koenig  <tkoenig@gcc.gnu.org>
            Steven G. Kargl  <kargl@gcc.gnu.org>

        Backport from trunk
        PR fortran/80118
        * expr.c (gfc_get_full_arrayspec_from_expr): If there is
        no symtree, set array spec to NULL.

2017-10-03  Thomas Koenig  <tkoenig@gcc.gnu.org>
            Steven G. Kargl  <kargl@gcc.gnu.org>

        Backport from trunk
        PR fortran/80118
        * gfortran.dg/zero_sized_7.f90: New test.



Added:
    branches/gcc-7-branch/gcc/testsuite/gfortran.dg/zero_sized_7.f90
Modified:
    branches/gcc-7-branch/gcc/fortran/ChangeLog
    branches/gcc-7-branch/gcc/fortran/expr.c
    branches/gcc-7-branch/gcc/testsuite/ChangeLog
>From gcc-bugs-return-577258-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 15:51:15 2017
Return-Path: <gcc-bugs-return-577258-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 26685 invoked by alias); 3 Oct 2017 15:51:15 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 26602 invoked by uid 48); 3 Oct 2017 15:51:11 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/82417] Macros from <complex.h> defined in C++11
Date: Tue, 03 Oct 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: libstdc++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on see_also everconfirmed
Message-ID: <bug-82417-4-rELMGUycWJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82417-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82417-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00318.txt.bz2
Content-length: 554

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82417

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-10-03
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=56111
     Ever confirmed|0                           |1
>From gcc-bugs-return-577260-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 15:52:43 2017
Return-Path: <gcc-bugs-return-577260-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 28939 invoked by alias); 3 Oct 2017 15:52:43 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 28703 invoked by uid 48); 3 Oct 2017 15:52:39 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82405] Function not inlined for switch and suboptimal assembly is generated
Date: Tue, 03 Oct 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: c++
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: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82405-4-C4s1YsUUaq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82405-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82405-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00320.txt.bz2
Content-length: 235

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82405

--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Multiply binds left to right. 

That is a * b * c is the same as (a * b) * c and not the same as A * (b * c).
>From gcc-bugs-return-577261-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 15:56:51 2017
Return-Path: <gcc-bugs-return-577261-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 33708 invoked by alias); 3 Oct 2017 15:56:51 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 31815 invoked by uid 48); 3 Oct 2017 15:56:47 -0000
From: "qing.zhao at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81357] Extra mov for zero extend of add
Date: Tue, 03 Oct 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: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization, ra
X-Bugzilla-Severity: normal
X-Bugzilla-Who: qing.zhao at oracle dot com
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: qing.zhao at oracle dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81357-4-k4iuxoCcad@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81357-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81357-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00321.txt.bz2
Content-length: 823

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81357

--- Comment #13 from Qing Zhao <qing.zhao at oracle dot com> ---
I checked the same testing case on X86, SPARC in addition to aarch64, all have
the same issue:  (compile with gcc -O, the default is -m64)

***x86:
test1:
.LFB0:
        .cfi_startproc
        leal    1(%rdi), %eax
        movl    %eax, %edx
        movq    %rdx, d(%rip)
        ret
        .cfi_endproc
in the above, "movl  %eax, %edx" is the insn that can be eliminated.

***SPARC:
test1:
        sethi   %hi(d), %g1
        add     %o0, 1, %o0
        srl     %o0, 0, %o0
        jmp     %o7+8
         stx    %o0, [%g1+%lo(d)]

in the above, "srl  %o0, 0, %o0" is the insn that can be eliminated.

so, this seems a common issue on -m64 targets.

(NOTE, this issue does NOT exist on -m32 targets).
>From gcc-bugs-return-577262-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 15:58:17 2017
Return-Path: <gcc-bugs-return-577262-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 51259 invoked by alias); 3 Oct 2017 15:58:17 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 51189 invoked by uid 48); 3 Oct 2017 15:58:14 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/59087] Issues including complex.h in C++11/1y mode because of C's complex.h
Date: Tue, 03 Oct 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: libstdc++
X-Bugzilla-Version: 4.8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-59087-4-TuTNInEuDu@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-59087-4@http.gcc.gnu.org/bugzilla/>
References: <bug-59087-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00322.txt.bz2
Content-length: 963

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59087

--- Comment #17 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Marc, I've just opened Bug 82417 as rejects-valid but I suppose it's really a
dup of this one. 

(In reply to Marc Glisse from comment #13)
> C++ code has 0 reason to include complex.h, only C code does, and thus it
> makes sense if it contains what C says. We do #undef complex but only
> because we are forced to do it.
> 
> As for boost, reusing the name of a standard C macro is not the best idea
> for interoperability. If you report it to them, I hope they would be fine
> with replacing all 'I' with 'It'.

But the following is valid C++11 code, and our "extension" of including C's
<complex.h> means it doesn't compile:

#include <complex.h>
int I = 0;

Yes, it's silly to do that in C++ and there's a workaround, but it's still a
conformance bug. In strict -std=c++11 mode (rather than -std=gnu++11) this must
compile.
>From gcc-bugs-return-577263-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 16:03:15 2017
Return-Path: <gcc-bugs-return-577263-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 59948 invoked by alias); 3 Oct 2017 16:03: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 59844 invoked by uid 55); 3 Oct 2017 16:03:11 -0000
From: "segher at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/77729] aarch64 inserts unneeded uxtb after ldrb, orr ...32
Date: Tue, 03 Oct 2017 16:03:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 6.1.1
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: segher at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: segher at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-77729-4-zLB2AQRmzD@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-77729-4@http.gcc.gnu.org/bugzilla/>
References: <bug-77729-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00323.txt.bz2
Content-length: 784

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77729

--- Comment #13 from Segher Boessenkool <segher at gcc dot gnu.org> ---
Author: segher
Date: Tue Oct  3 16:02:38 2017
New Revision: 253384

URL: https://gcc.gnu.org/viewcvs?rev=253384&root=gcc&view=rev
Log:
simplify-rtx: Remove non-simplifying simplification (PR77729)

If we have (X&C1)|C2 simplify_binary_operation_1 makes C1 as small as
possible.  This makes worse code in common cases like when the AND with
C1 is from a zero-extension.  This patch fixes it by removing this
transformation (twice).


        PR rtl-optimization/77729
        * simplify-rtx.c (simplify_binary_operation_1): Delete the (X&C1)|C2
        to (X&(C1&~C2))|C2 transformations.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/simplify-rtx.c
>From gcc-bugs-return-577264-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 16:04:01 2017
Return-Path: <gcc-bugs-return-577264-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 65352 invoked by alias); 3 Oct 2017 16:04:01 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 65262 invoked by uid 48); 3 Oct 2017 16:03:53 -0000
From: "glisse at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/82417] Macros from <complex.h> defined in C++11
Date: Tue, 03 Oct 2017 16:04:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: rejects-valid
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-82417-4-BbE2Vqk5Pd@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82417-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82417-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00324.txt.bz2
Content-length: 626

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82417

--- Comment #1 from Marc Glisse <glisse at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #0)
> The C++11 standard says that <complex.h> should just include the C++
> <complex> header and completely ignore the C library's header.

I am very surprised that nobody has cared enough to get the standard fixed. But
I can't complain, I didn't write a proposal either.

> For C++11 mode we should #undef the macros that <complex.h> defines with
> non-reserved names, and maybe consider not including <complex.h> at all for
> -std=c++1* modes.

I guess so.
>From gcc-bugs-return-577265-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 16:05:21 2017
Return-Path: <gcc-bugs-return-577265-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 67640 invoked by alias); 3 Oct 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 67534 invoked by uid 48); 3 Oct 2017 16:05:12 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/78290] Gfortran incorrectly creates a copy of an array passed to an array pointer dummy argument
Date: Tue, 03 Oct 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: fortran
X-Bugzilla-Version: 6.2.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-78290-4-w9iExiQQaU@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78290-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78290-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00325.txt.bz2
Content-length: 544

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78290

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pault at gcc dot gnu.org

--- Comment #4 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
The wrong code for the tests in this PR seems to be fixed by Paul's commit
r251949.

Any need for a new test on top of those included in the revision?
>From gcc-bugs-return-577266-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 16:06:36 2017
Return-Path: <gcc-bugs-return-577266-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 69768 invoked by alias); 3 Oct 2017 16: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 69034 invoked by uid 48); 3 Oct 2017 16:06:29 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/82417] Macros from <complex.h> defined in C++11
Date: Tue, 03 Oct 2017 16:06:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 8.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: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to
Message-ID: <bug-82417-4-AxC7MLifQK@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82417-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82417-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00326.txt.bz2
Content-length: 969

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82417

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 #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Thinking about this further, I think we must not include <complex.h> at all for
strict -std=c++1* modes, because users could have defined their own macros with
those names, but the C header #undefs them and then redefines them with
different meaning:

#define I 1
#define imaginary imag
#include <complex.h>
std::complex<double> n{0, I};
double zero = n.imaginary();

This explodes horribly.

We can't just #undef the names after including <complex.h> because the user
macros will already have been trashed by then.
>From gcc-bugs-return-577267-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 16:07:26 2017
Return-Path: <gcc-bugs-return-577267-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 71190 invoked by alias); 3 Oct 2017 16:07:26 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 71141 invoked by uid 48); 3 Oct 2017 16:07:23 -0000
From: "antoshkka at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82405] Function not inlined for switch and suboptimal assembly is generated
Date: Tue, 03 Oct 2017 16:07:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: antoshkka at gmail dot com
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-82405-4-Udv1bythWr@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82405-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82405-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00327.txt.bz2
Content-length: 513

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82405

--- Comment #8 from Antony Polukhin <antoshkka at gmail dot com> ---
Yes, in the isolated test case constants are first:

static inline double eval_square2(double r) { return 4 * r * r; }
static inline double eval_circle2(double r) { return 3.1415 * r * r; }

double test_switch_native_slow(int shape, double r) {
    if (shape == 123)
      return eval_circle2(r);
    else
      return eval_square2(r);
}

So multiplying r at the beginning is not good.
>From gcc-bugs-return-577268-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 16:13:48 2017
Return-Path: <gcc-bugs-return-577268-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 20519 invoked by alias); 3 Oct 2017 16:13: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 20165 invoked by uid 48); 3 Oct 2017 16:13:44 -0000
From: "sje at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82381] [8 Regression] internal compiler error: qsort checking failed
Date: Tue, 03 Oct 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: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-checking
X-Bugzilla-Severity: normal
X-Bugzilla-Who: sje at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-82381-4-he6fk52z7w@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82381-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82381-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00328.txt.bz2
Content-length: 597

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82381

Steve Ellcey <sje at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sje at gcc dot gnu.org

--- Comment #9 from Steve Ellcey <sje at gcc dot gnu.org> ---
(In reply to Christophe Lyon from comment #8)
> FWIW, Jakub's patch (in comment #7) doesn't fix the build failure I reported
> at https://gcc.gnu.org/ml/gcc-patches/2017-09/msg01980.html

Presumably, that problem is PR 82396.
>From gcc-bugs-return-577269-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 16:15:31 2017
Return-Path: <gcc-bugs-return-577269-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 22332 invoked by alias); 3 Oct 2017 16:15: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 22161 invoked by uid 48); 3 Oct 2017 16:15:13 -0000
From: "sje at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/82396] qsort comparator non-negative on sorted output: 4 in ready_sort_real in haifa scheduler
Date: Tue, 03 Oct 2017 16:15:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: build, ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: sje at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: wilco at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-82396-4-oizU74Ml1M@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82396-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82396-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00329.txt.bz2
Content-length: 655

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82396

Steve Ellcey <sje at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sje at gcc dot gnu.org

--- Comment #4 from Steve Ellcey <sje at gcc dot gnu.org> ---
Has the patch been(In reply to Wilco from comment #2)
> I've got a simple patch that fixes the AArch64 bootstrap failure. This
> should fix ARM as well.

Has this patch been submitted to gcc-patches?  I don't see it and the aarch64
bootstrap has been broken for a couple of days now.
>From gcc-bugs-return-577270-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 16:18:41 2017
Return-Path: <gcc-bugs-return-577270-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 50120 invoked by alias); 3 Oct 2017 16:18: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 50066 invoked by uid 48); 3 Oct 2017 16:18:36 -0000
From: "qing.zhao at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81356] __builtin_strcpy is not good for copying an empty string on aarch64
Date: Tue, 03 Oct 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: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: qing.zhao at oracle dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-81356-4-jsQMNzo0Ft@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81356-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81356-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00330.txt.bz2
Content-length: 769

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81356

Qing Zhao <qing.zhao at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |qing.zhao at oracle dot com

--- Comment #4 from Qing Zhao <qing.zhao at oracle dot com> ---
the issue is confirmed on aarch64.

In addition to X86, testing the same testing case on SPARC, we see No such
issue:

***SPARC: (sparc use multiple stores when compile with -O):
f:
        mov     72, %g1
        stb     %g1, [%o0]
        mov     105, %g1
        stb     %g1, [%o0+1]
        mov     33, %g1
        stb     %g1, [%o0+2]
        jmp     %o7+8
         stb    %g0, [%o0+3]
>From gcc-bugs-return-577271-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 16:18:52 2017
Return-Path: <gcc-bugs-return-577271-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 50878 invoked by alias); 3 Oct 2017 16:18:52 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 50828 invoked by uid 48); 3 Oct 2017 16:18:48 -0000
From: "niklas.hauser at arm dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/42159] unwinding issues on darwin
Date: Tue, 03 Oct 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: target
X-Bugzilla-Version: 4.4.2
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: niklas.hauser at arm 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-42159-4-nT5q066vm3@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-42159-4@http.gcc.gnu.org/bugzilla/>
References: <bug-42159-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00331.txt.bz2
Content-length: 1287

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42159

--- Comment #37 from Niklas Hauser <niklas.hauser at arm dot com> ---
(In reply to Iain Sandoe from comment #36)
> The underlying issue is understood and we've worked around it to for the
> case of "-static-libgcc" [PR80556].

Oh, we worked on this at the same time.
The bug is gone for us on gcc trunk with your changes, thanks!

> Please could you identify:
>  1. the version of GCC you're testing? (the ones mentioned in the PR here
> are well out of 'support').  Although there are probably work-around patches
> that could be applied

I was working with gcc trunk from early Sept. which didn't have your patch yet.

>  2. the command line(s)

Simply ./configure --disable-bootstrap --enable-languages=c,c++ plus the usual
directory/path flags.
Example is compiled with g++ -static-libgcc .

> I have some patches in progress to tidy up the CRT/libgcc/unwinder stuff
> (which do, essentially, remove the unwinder from the build for later darwin
> - but leave them in place for Darwin9 etc.)

Yes, I was going to suggest removing the unwinder code for 64b builds too,
didn't work on any patches though.

Did you apply your patch to trunk only? I didn't find it in the GCC 7 branch.
Would you consider back porting it?
>From gcc-bugs-return-577272-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 16:35:45 2017
Return-Path: <gcc-bugs-return-577272-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 51246 invoked by alias); 3 Oct 2017 16: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 51182 invoked by uid 48); 3 Oct 2017 16:35:41 -0000
From: "wilco at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/82396] qsort comparator non-negative on sorted output: 4 in ready_sort_real in haifa scheduler
Date: Tue, 03 Oct 2017 16:35:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: build, ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wilco at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: wilco at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82396-4-RhdYnWr0Vq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82396-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82396-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00332.txt.bz2
Content-length: 514

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82396

--- Comment #5 from Wilco <wilco at gcc dot gnu.org> ---
(In reply to Steve Ellcey from comment #4)
> Has the patch been(In reply to Wilco from comment #2)
> > I've got a simple patch that fixes the AArch64 bootstrap failure. This
> > should fix ARM as well.
> 
> Has this patch been submitted to gcc-patches?  I don't see it and the
> aarch64 bootstrap has been broken for a couple of days now.

See https://gcc.gnu.org/ml/gcc-patches/2017-10/msg00121.html
>From gcc-bugs-return-577273-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 16:52:50 2017
Return-Path: <gcc-bugs-return-577273-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 3447 invoked by alias); 3 Oct 2017 16:52:50 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 3337 invoked by uid 48); 3 Oct 2017 16:52:43 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82405] Function not inlined for switch and suboptimal assembly is generated
Date: Tue, 03 Oct 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: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82405-4-nqBw3I1bFo@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82405-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82405-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00333.txt.bz2
Content-length: 1790

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82405

--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
So it means maybe llvm performs more advanced switchconv in this case, at least
judging from the #c0 assembly snippet.  We look solely for PHIs which have
arguments SSA_NAMEs initialized in the cases to constants, while in order to
optimize this without -ffast-math, it would need to handle at least a couple of
stmts where the operands match except for some constant argument that is
changing.

<L6> [20.00%]:
  _5 = r_4(D) * 4.0e+0;
  _6 = r_4(D) * _5;
  goto <bb 8>; [100.00%]

<L7> [20.00%]:
  _7 = r_4(D) * 3.141500000000000181188397618825547397136688232421875e+0;
  _8 = r_4(D) * _7;
  goto <bb 8>; [100.00%]

So, in the above case we'd look from the PHI with _6 and _8 arguments, and see
that the because the def stmt isn't assignment from constant, we'd notice it is
a binary (or unary or ternary) assign where one of the operands is identical
(r_4(D), while the other one is another SSA_NAME defined in the case, and we'd
loop to that, seeing another assign where one operand is the same and another
one is a constant.  Thus, we'd build a table with the 4.0e+0 and
3.141500000000000181188397618825547397136688232421875e+0 constants, and after
the load from the table did _21 = r_4(D) * value_loaded_from_table_20; _22 =
r_4(D) * _21;
The question is if we'd require all operands matching except for one which
could be a constant eventually, or something different (allow some small number
of constant arguments to a computation).

Or should we have a separate pass that performs such an optimization (noticing
similar code blocks with just changing constant parameters and merge the blocks
except for computing the parameters)?
>From gcc-bugs-return-577274-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 16:56:42 2017
Return-Path: <gcc-bugs-return-577274-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 17427 invoked by alias); 3 Oct 2017 16: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 17401 invoked by uid 48); 3 Oct 2017 16:56:38 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82370] AVX512 can use a memory operand for immediate-count vpsrlw, but gcc doesn't.
Date: Tue, 03 Oct 2017 16:56:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization, ssemmx
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-82370-4-AD7PqbpDCJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82370-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82370-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00334.txt.bz2
Content-length: 531

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82370

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 42296
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42296&action=edit
gcc8-pr82370.patch

If VPAND is exactly as fast as VPANDQ except for different encodings, then
maybe we can do something like this patch, where we'd use the suffixes only for
512-bit vectors, or when any of the operands is %[xy]mm16+, or when masking.
If VPAND is slower, then we could do it for -Os at least.
>From gcc-bugs-return-577275-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 17:10:35 2017
Return-Path: <gcc-bugs-return-577275-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 66567 invoked by alias); 3 Oct 2017 17: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 24023 invoked by uid 55); 3 Oct 2017 17:10:26 -0000
From: "law at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82358] [8 regression] i386/stack-check-11.c fail
Date: Tue, 03 Oct 2017 17:10:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
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-82358-4-Rpir0OP0n4@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82358-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82358-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00335.txt.bz2
Content-length: 448

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82358

--- Comment #5 from Jeffrey A. Law <law at gcc dot gnu.org> ---
Author: law
Date: Tue Oct  3 17:09:54 2017
New Revision: 253385

URL: https://gcc.gnu.org/viewcvs?rev=253385&root=gcc&view=rev
Log:
        PR target/82358
        * gcc.target/i386/stack-check-11.c: Use -mtune=generic.

Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.target/i386/stack-check-11.c
>From gcc-bugs-return-577276-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 17:14:36 2017
Return-Path: <gcc-bugs-return-577276-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 44568 invoked by alias); 3 Oct 2017 17:14:35 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 44517 invoked by uid 48); 3 Oct 2017 17:14:31 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82358] [8 regression] i386/stack-check-11.c fail
Date: Tue, 03 Oct 2017 17:14:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: law at redhat dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-82358-4-0plU52mwI0@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82358-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82358-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00336.txt.bz2
Content-length: 471

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82358

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> ---
Fixed on the trunk.  Not relevant to any release branches.
>From gcc-bugs-return-577277-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 17:32:51 2017
Return-Path: <gcc-bugs-return-577277-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 41698 invoked by alias); 3 Oct 2017 17:32: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 22619 invoked by uid 48); 3 Oct 2017 17:32:46 -0000
From: "antoshkka at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82418] New: Division on a constant is suboptimal because of not using imul instruction
Date: Tue, 03 Oct 2017 17:32:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.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-82418-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00337.txt.bz2
Content-length: 859

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82418

            Bug ID: 82418
           Summary: Division on a constant is suboptimal because of not
                    using imul instruction
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: antoshkka at gmail dot com
  Target Milestone: ---

Following code 

unsigned my_div(unsigned a, unsigned b) {
    return a / 100;
}

Produces assembly:

my_div(unsigned int, unsigned int):
  mov eax, edi
  mov edx, 1374389535
  mul edx
  mov eax, edx
  shr eax, 5
  ret

Clang uses imul instead:

my_div(unsigned int, unsigned int): # @my_div(unsigned int, unsigned int)
  mov eax, edi
  imul rax, rax, 1374389535
  shr rax, 37
  ret
>From gcc-bugs-return-577278-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 17:42:44 2017
Return-Path: <gcc-bugs-return-577278-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 91722 invoked by alias); 3 Oct 2017 17: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 91636 invoked by uid 55); 3 Oct 2017 17:42:40 -0000
From: "sellcey at cavium dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/82396] qsort comparator non-negative on sorted output: 4 in ready_sort_real in haifa scheduler
Date: Tue, 03 Oct 2017 17:42:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: build, ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: sellcey at cavium dot com
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: wilco at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82396-4-bIV6MYEaq8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82396-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82396-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00338.txt.bz2
Content-length: 827

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82396

--- Comment #6 from sellcey at cavium dot com ---
On Tue, 2017-10-03 at 16:35 +0000, wilco at gcc dot gnu.org wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82396
> 
> --- Comment #5 from Wilco <wilco at gcc dot gnu.org> ---
> (In reply to Steve Ellcey from comment #4)
> > 
> > Has the patch been(In reply to Wilco from comment #2)
> > > 
> > > I've got a simple patch that fixes the AArch64 bootstrap failure.
> > > This
> > > should fix ARM as well.
> > Has this patch been submitted to gcc-patches?  I don't see it and
> > the
> > aarch64 bootstrap has been broken for a couple of days now.
> See https://gcc.gnu.org/ml/gcc-patches/2017-10/msg00121.html

This patch fixes the build problem for me on aarch64.

Steve Ellcey
sellcey@cavium.com
>From gcc-bugs-return-577279-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 18:10:22 2017
Return-Path: <gcc-bugs-return-577279-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 55903 invoked by alias); 3 Oct 2017 18:10: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 55031 invoked by uid 48); 3 Oct 2017 18:10:10 -0000
From: "jz2596 at columbia dot edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82419] New: Error: Expected variable in READ statement in (1)
Date: Tue, 03 Oct 2017 18:10:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 6.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jz2596 at columbia 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-82419-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00339.txt.bz2
Content-length: 2607

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82419

            Bug ID: 82419
           Summary: Error: Expected variable in READ statement in (1)
           Product: gcc
           Version: 6.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jz2596 at columbia dot edu
  Target Milestone: ---

- I find this error trying to compile a fortran code in version 6.3.0 The
details on the compiler are:

Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/usr/local/gfortran/libexec/gcc/x86_64-apple-darwin16/6.3.0/lto-wrapper
Target: x86_64-apple-darwin16
Configured with: ../gcc-6.3.0/configure --prefix=/usr/local/gfortran
--enable-languages=c,c++,fortran,objc,obj-c++ --build=x86_64-apple-darwin16
--with-gmp=/Users/fx/devel/gcc/deps-static/x86_64
--with-mpfr=/Users/fx/devel/gcc/deps-static/x86_64
--with-mpc=/Users/fx/devel/gcc/deps-static/x86_64
--with-isl=/Users/fx/devel/gcc/deps-static/x86_64
Thread model: posix
gcc version 6.3.0 (GCC)

- The compiler error is:

gfortran -g -Wall   -I../FFTW/api -I../mod -L../FFTW -L../lib -lutils -lfftw3
-c utils.f90
utils.f90:251:12:

   read(20,*) ((dat(1:cn,n)),n=1,ln)
            1
Error: Expected variable in READ statement at (1)
utils.f90:299:12:

- The code that seems to generate the error is

subroutine loadtxt_1d_c(f,dat,usecols,fsize,debug)
  implicit none
  !I/O
  logical ,intent(in), optional :: debug
  integer, intent(in), optional :: usecols(:), fsize(1:2)
  character(*), intent(in) :: f
  complex(dlc), intent(out) :: dat(:)
  !internal
  integer :: n, cn, ln
  double precision, allocatable :: rdat(:,:)
  complex(dlc) :: r

  open(unit=20,file=trim(f),status='old')

  if (present(fsize)) then !faster if cn is given
    cn = fsize(1)
    ln = fsize(2)
  else
    cn = filecolumns(20)
    ln = filelines(20)
    write(*,*) 'file size is', cn, ln
  end if

  allocate(rdat(cn,ln))
  if (present(debug)) write(*,*) 'reading', trim(f)
  read(20,*) ((rdat(1:cn,n)),n=1,ln)
  dat = rdat(1,:) + iu*rdat(2,:)
  close(20)
  deallocate(rdat)

end subroutine loadtxt_1d_c

There are other instances of this error in similar read statements in other
subroutines. This code compiles on a different machine using ifort, I am trying
to have it run on a mac laptop. I found a similar error report Bug 39953 -
Error: Expected VARIABLE at (1), and it seems it was fixed in version 4.2.1 and
later.

Any ideas would be greatly appreciated!

Best regards,

Jose
>From gcc-bugs-return-577280-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 18:24:55 2017
Return-Path: <gcc-bugs-return-577280-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 74407 invoked by alias); 3 Oct 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 74328 invoked by uid 48); 3 Oct 2017 18:24:51 -0000
From: "kargl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82419] Error: Expected variable in READ statement in (1)
Date: Tue, 03 Oct 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: fortran
X-Bugzilla-Version: 6.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: kargl 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-82419-4-71uBz3DTv1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82419-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82419-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00340.txt.bz2
Content-length: 2681

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82419

kargl at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |kargl at gcc dot gnu.org
         Resolution|---                         |INVALID

--- Comment #1 from kargl at gcc dot gnu.org ---
(In reply to J Zorrilla from comment #0)
> - I find this error trying to compile a fortran code in version 6.3.0 The
> details on the compiler are:
> 
> Using built-in specs.
> COLLECT_GCC=gfortran
> COLLECT_LTO_WRAPPER=/usr/local/gfortran/libexec/gcc/x86_64-apple-darwin16/6.
> 3.0/lto-wrapper
> Target: x86_64-apple-darwin16
> Configured with: ../gcc-6.3.0/configure --prefix=/usr/local/gfortran
> --enable-languages=c,c++,fortran,objc,obj-c++ --build=x86_64-apple-darwin16
> --with-gmp=/Users/fx/devel/gcc/deps-static/x86_64
> --with-mpfr=/Users/fx/devel/gcc/deps-static/x86_64
> --with-mpc=/Users/fx/devel/gcc/deps-static/x86_64
> --with-isl=/Users/fx/devel/gcc/deps-static/x86_64
> Thread model: posix
> gcc version 6.3.0 (GCC)
> 
> - The compiler error is:
> 
> gfortran -g -Wall   -I../FFTW/api -I../mod -L../FFTW -L../lib -lutils
> -lfftw3 -c utils.f90
> utils.f90:251:12:
> 
>    read(20,*) ((dat(1:cn,n)),n=1,ln)
>             1
> Error: Expected variable in READ statement at (1)
> utils.f90:299:12:
> 
> - The code that seems to generate the error is
> 
> subroutine loadtxt_1d_c(f,dat,usecols,fsize,debug)
>   implicit none
>   !I/O
>   logical ,intent(in), optional :: debug
>   integer, intent(in), optional :: usecols(:), fsize(1:2)
>   character(*), intent(in) :: f
>   complex(dlc), intent(out) :: dat(:)
>   !internal
>   integer :: n, cn, ln
>   double precision, allocatable :: rdat(:,:)
>   complex(dlc) :: r
> 
>   open(unit=20,file=trim(f),status='old')
> 
>   if (present(fsize)) then !faster if cn is given
>     cn = fsize(1)
>     ln = fsize(2)
>   else
>     cn = filecolumns(20)
>     ln = filelines(20)
>     write(*,*) 'file size is', cn, ln
>   end if
> 
>   allocate(rdat(cn,ln))
>   if (present(debug)) write(*,*) 'reading', trim(f)
>   read(20,*) ((rdat(1:cn,n)),n=1,ln)
>   dat = rdat(1,:) + iu*rdat(2,:)
>   close(20)
>   deallocate(rdat)
> 
> end subroutine loadtxt_1d_c
> 

First, the code you submitted is not self contained, so raises
a number of errors.

Second, gfortran is correct.  You have

read(20,*) ((rdat(1:cn,n)),n=1,ln)

which has () around the rdat(1:cn,n).  That is, (rdat(1:cn,n))
is an expression.
>From gcc-bugs-return-577281-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 18:27:41 2017
Return-Path: <gcc-bugs-return-577281-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 91510 invoked by alias); 3 Oct 2017 18:27:41 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 91448 invoked by uid 48); 3 Oct 2017 18:27:37 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82419] Error: Expected variable in READ statement in (1)
Date: Tue, 03 Oct 2017 18:27:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 6.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: 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-82419-4-Q6PXhd8n2R@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82419-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82419-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00341.txt.bz2
Content-length: 374

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82419

--- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
(dat(1:cn,n)) is not a variable, but an expression. Remove the enclosing
parentheses and your code will compile.

BTW the provided code needs a some more surgery in order to be compiled (dlc
not defines, iu, filecolumns, and filelines not typed).
>From gcc-bugs-return-577282-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 18:31:50 2017
Return-Path: <gcc-bugs-return-577282-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 108440 invoked by alias); 3 Oct 2017 18:31:49 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 108361 invoked by uid 48); 3 Oct 2017 18:31:46 -0000
From: "jz2596 at columbia dot edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82419] Error: Expected variable in READ statement in (1)
Date: Tue, 03 Oct 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: fortran
X-Bugzilla-Version: 6.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jz2596 at columbia dot edu
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: INVALID
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82419-4-5btXpylW8g@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82419-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82419-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00342.txt.bz2
Content-length: 444

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82419

--- Comment #3 from J Zorrilla <jz2596 at columbia dot edu> ---
I apologize for not providing a self-contained code. I am trying to use code
previously developed, and since it compiled on a different system I thought it
may be the compiler, not the code (I'm rather unfamiliar with fortran myself).

Thank you for your quick response and for pointing to the error!

Best regards,

Jose
>From gcc-bugs-return-577283-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 18:40:29 2017
Return-Path: <gcc-bugs-return-577283-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 3107 invoked by alias); 3 Oct 2017 18:40:29 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 3053 invoked by uid 48); 3 Oct 2017 18:40:25 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82419] Error: Expected variable in READ statement in (1)
Date: Tue, 03 Oct 2017 18:40:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 6.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: 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-82419-4-IF09P60EiQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82419-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82419-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00343.txt.bz2
Content-length: 463

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82419

--- Comment #4 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> since it compiled on a different system ...

Are you sure of that? If yes, the compiler was not behaving according the
standard.

I suspect that the original code was something such as

   read(20,*) ((dat(m,n),m=1,cn),n=1,ln)

dat(m,n),m=1,cn, being then replaced with dat(1:cn,n) without removing the
surrounding parentheses.
>From gcc-bugs-return-577284-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 19:07:30 2017
Return-Path: <gcc-bugs-return-577284-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 81267 invoked by alias); 3 Oct 2017 19:07:30 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 81194 invoked by uid 48); 3 Oct 2017 19:07:24 -0000
From: "peter.bohning at gmx dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82408] cross-compiling for arm64 problems
Date: Tue, 03 Oct 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: target
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: peter.bohning at gmx 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-82408-4-pjCHxlRzyz@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82408-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82408-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00344.txt.bz2
Content-length: 2045

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82408

--- Comment #11 from Peter Bohning <peter.bohning at gmx dot com> ---
>> And as I recall, "target" defaults to "host".

>It does not.  Read
>https://gcc.gnu.org/install/configure.html

As I recall "--target" defaults to [HOST] if you do "./configure --help".  I
can't double check this since I no longer have a computer.

>The linaro toolchain already includes a libstdc++ library so there is no reason why >you need to recompile GCC/libstdc++ here.

I suppose it's probably true that I could just copy the libstdc++ library out
of the linaro toolchain into my sysroot...

>You still did not describe what kind of cross compiler you want?  Do you want one >which runs on x86_64 (and built on x86_64) that targets aarch64 if so then just -->target= is needed.  If you want one which runs on aarch64 (was built on x86_64 that >targets aarch64), then --host= and --target= is needed but you first need a cross that >RUNS on x86_64 to be able to build the target libraries like libstdc++.

As I said twice, I don't want the compiler at all, I just need the libstdc++
library.  Target defaulting to host, as "configure --help" did in fact suggest
to me, makes sense because the normal behavior would be to compile for the same
system one is running at the time.

I think perhaps we have misunderstood each other.

But my further issue here would be that it seems very unlikely that this
configure option would fix the kind of C++ errors I saw in all these various
defines.  It seems to me that new C++ features have created a bit of a mess. 
Regardless of course, it will be at least a week before I can try any of this
out, but it just seems very very unlikely that setting a configure option that
may or may not be what I'm already using, would change these defines which,
except for the soft-fp, don't seem like they would be affected by architecture.

At the very least, the configure scripts need to check for available language
features a little better.
>From gcc-bugs-return-577285-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 19:16:54 2017
Return-Path: <gcc-bugs-return-577285-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 113328 invoked by alias); 3 Oct 2017 19:16:54 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 113057 invoked by uid 48); 3 Oct 2017 19:16:50 -0000
From: "iains at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/42159] unwinding issues on darwin
Date: Tue, 03 Oct 2017 19: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: 4.4.2
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: iains at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-42159-4-gza87aL773@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-42159-4@http.gcc.gnu.org/bugzilla/>
References: <bug-42159-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00345.txt.bz2
Content-length: 538

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42159

--- Comment #38 from Iain Sandoe <iains at gcc dot gnu.org> ---
(In reply to Niklas Hauser from comment #37)
> (In reply to Iain Sandoe from comment #36)


> Did you apply your patch to trunk only? I didn't find it in the GCC 7 branch.
> Would you consider back porting it?

OK - let's move any more discussion to 80556 - and I would prefer to back-port
a "real" fix rather than the work-around (although, JFTR, the current
work-around works for me on 5.4.1, 6.4, 7.2 and trunk).
>From gcc-bugs-return-577286-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 19:23:07 2017
Return-Path: <gcc-bugs-return-577286-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 126114 invoked by alias); 3 Oct 2017 19:23: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 126064 invoked by uid 48); 3 Oct 2017 19:23:03 -0000
From: "qing.zhao at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81356] __builtin_strcpy is not good for copying an empty string on aarch64
Date: Tue, 03 Oct 2017 19:23:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: qing.zhao at oracle dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81356-4-VuD6yvJd7p@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81356-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81356-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00346.txt.bz2
Content-length: 1058

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81356

--- Comment #5 from Qing Zhao <qing.zhao at oracle dot com> ---
the following code in config/aarch64/aarch64.c cause such behavior:

14143 static bool
14144 aarch64_use_by_pieces_infrastructure_p (unsigned HOST_WIDE_INT size,
14145                                         unsigned int align,
14146                                         enum by_pieces_operation op,
14147                                         bool speed_p)
14148 {
14149   /* STORE_BY_PIECES can be used when copying a constant string, but
14150      in that case each 64-bit chunk takes 5 insns instead of 2 (LDR/STR).
14151      For now we always fail this and let the move_by_pieces code copy
14152      the string from read-only memory.  */
14153   if (op == STORE_BY_PIECES)
14154     return false;

when deleting line 14153 and 14154. and use this compiler to build the testing
case, I got:

f:
        mov     w1, 26952
        movk    w1, 0x21, lsl 16
        str     w1, [x0]
        ret

looks like exactly we want.
>From gcc-bugs-return-577287-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 19:42:12 2017
Return-Path: <gcc-bugs-return-577287-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 89135 invoked by alias); 3 Oct 2017 19:42: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 83946 invoked by uid 48); 3 Oct 2017 19:42:09 -0000
From: "qing.zhao at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81356] __builtin_strcpy is not good for copying an empty string on aarch64
Date: Tue, 03 Oct 2017 19:42:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: qing.zhao at oracle dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81356-4-8h2Kv9q2Hq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81356-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81356-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00347.txt.bz2
Content-length: 267

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81356

--- Comment #6 from Qing Zhao <qing.zhao at oracle dot com> ---
just found that a similar fix have been submitted 2 weeks ago to gcc_patches:

https://www.mail-archive.com/gcc-patches@gcc.gnu.org/msg173652.html
>From gcc-bugs-return-577288-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 20:07:03 2017
Return-Path: <gcc-bugs-return-577288-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 114371 invoked by alias); 3 Oct 2017 20:07: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 111066 invoked by uid 48); 3 Oct 2017 20:06:58 -0000
From: "janus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82064] [7/8 Regression] [OOP] multiple incompatible definitions of extended derived type via module use
Date: Tue, 03 Oct 2017 20:07:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 7.1.1
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: janus at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82064-4-hkgclOjqBB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82064-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82064-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00348.txt.bz2
Content-length: 497

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82064

--- Comment #8 from janus at gcc dot gnu.org ---
(In reply to janus from comment #7)
> ... which indeed fixes the issue with 'test_sep'. (Note: I have not
> regtested it yet, but I hope it will not break anything.)

To the contrary, it unfortunately produces lots of ICEs like the following:

$ gfortran-8 class_19.f03 
class_19.f03:24:0:

   allocate(foo_outer :: try3)

internal compiler error: in gfc_advance_chain, at fortran/trans.c:58
>From gcc-bugs-return-577289-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 20:36:39 2017
Return-Path: <gcc-bugs-return-577289-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 65983 invoked by alias); 3 Oct 2017 20:36: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 58553 invoked by uid 48); 3 Oct 2017 20:36:34 -0000
From: "glisse at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/82417] Macros from <complex.h> defined in C++11
Date: Tue, 03 Oct 2017 20:36:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 8.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: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82417-4-tgUIkbsdOk@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82417-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82417-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00349.txt.bz2
Content-length: 504

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82417

--- Comment #3 from Marc Glisse <glisse at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #2)
> Thinking about this further, I think we must not include <complex.h> at all
> for strict -std=c++1* modes,

Yes.

Can we get a #warning in that case which explains that including <complex.h> in
strict C++11+ mode makes no sense? Actually, <ccomplex> could also do with a
#warning explaining that it never makes sense to include it.
>From gcc-bugs-return-577290-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 20:45:38 2017
Return-Path: <gcc-bugs-return-577290-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 64356 invoked by alias); 3 Oct 2017 20:45:38 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 64242 invoked by uid 48); 3 Oct 2017 20:45:27 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/60228] ICE using lambda in #pragma omp declare reduction
Date: Tue, 03 Oct 2017 20:45:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords: ice-on-valid-code, openmp
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-60228-4-Jeh1JS4YO0@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-60228-4@http.gcc.gnu.org/bugzilla/>
References: <bug-60228-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00350.txt.bz2
Content-length: 408

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60228

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-10-03
     Ever confirmed|0                           |1
>From gcc-bugs-return-577291-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 20:56:25 2017
Return-Path: <gcc-bugs-return-577291-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 17964 invoked by alias); 3 Oct 2017 20:56: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 17869 invoked by uid 48); 3 Oct 2017 20:56:21 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/59944] lambda in templated method body for method with default template value and lambda parameter causes error
Date: Tue, 03 Oct 2017 20:56:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 4.9.2
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc resolution target_milestone
Message-ID: <bug-59944-4-owWvT0hc0r@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-59944-4@http.gcc.gnu.org/bugzilla/>
References: <bug-59944-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00351.txt.bz2
Content-length: 577

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59944

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|balint at posteo dot de            |
         Resolution|---                         |FIXED
   Target Milestone|---                         |4.9.2

--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Fixed a lot of time ago, in 4.9.2.
>From gcc-bugs-return-577292-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 21:07:48 2017
Return-Path: <gcc-bugs-return-577292-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 103419 invoked by alias); 3 Oct 2017 21:07: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 103371 invoked by uid 48); 3 Oct 2017 21:07:44 -0000
From: "glisse at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82418] Division on a constant is suboptimal because of not using imul instruction
Date: Tue, 03 Oct 2017 21: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: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: glisse at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82418-4-YBEZONhd6D@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82418-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82418-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00352.txt.bz2
Content-length: 240

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82418

--- Comment #1 from Marc Glisse <glisse at gcc dot gnu.org> ---
If I time it, gcc's code is several times faster than clang's on skylake. Why
is clang's version supposed to be better?
>From gcc-bugs-return-577293-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 21:16:33 2017
Return-Path: <gcc-bugs-return-577293-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 118478 invoked by alias); 3 Oct 2017 21:16:33 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 118437 invoked by uid 55); 3 Oct 2017 21:16:28 -0000
From: "paolo at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/70343] internal compiler error: in tsubst_copy, wrong code with lambda in template fn
Date: Tue, 03 Oct 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: c++
X-Bugzilla-Version: 5.3.0
X-Bugzilla-Keywords: ice-on-valid-code, wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-70343-4-wInTi6rfXT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70343-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70343-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00353.txt.bz2
Content-length: 508

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70343

--- Comment #3 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Tue Oct  3 21:15:56 2017
New Revision: 253388

URL: https://gcc.gnu.org/viewcvs?rev=253388&root=gcc&view=rev
Log:
2017-10-03  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/70343
        * g++.dg/cpp0x/lambda/lambda-70343.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-70343.C
Modified:
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-577294-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 21:17:05 2017
Return-Path: <gcc-bugs-return-577294-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 119553 invoked by alias); 3 Oct 2017 21:17: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 119466 invoked by uid 48); 3 Oct 2017 21:17:01 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/70343] internal compiler error: in tsubst_copy, wrong code with lambda in template fn
Date: Tue, 03 Oct 2017 21:17:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 5.3.0
X-Bugzilla-Keywords: ice-on-valid-code, wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc blocked resolution target_milestone
Message-ID: <bug-70343-4-VZTNyiZOfQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70343-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70343-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00354.txt.bz2
Content-length: 726

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70343

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|tower120 at gmail dot com          |
             Blocks|                            |54367
         Resolution|---                         |FIXED
   Target Milestone|---                         |8.0

--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Fixed in trunk.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54367
[Bug 54367] [meta-bug] lambda expressions
>From gcc-bugs-return-577295-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 21:17:05 2017
Return-Path: <gcc-bugs-return-577295-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 119635 invoked by alias); 3 Oct 2017 21:17:05 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 119485 invoked by uid 48); 3 Oct 2017 21:17:01 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/54367] [meta-bug] lambda expressions
Date: Tue, 03 Oct 2017 21:17:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: dep_changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.8.0
X-Bugzilla-Keywords: meta-bug
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-54367-4-lvqMPHjIDT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-54367-4@http.gcc.gnu.org/bugzilla/>
References: <bug-54367-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00355.txt.bz2
Content-length: 506

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54367
Bug 54367 depends on bug 70343, which changed state.

Bug 70343 Summary: internal compiler error: in tsubst_copy, wrong code with lambda in template fn
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70343

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
>From gcc-bugs-return-577297-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 21:25:59 2017
Return-Path: <gcc-bugs-return-577297-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 23825 invoked by alias); 3 Oct 2017 21:25:58 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 23649 invoked by uid 48); 3 Oct 2017 21:25:55 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/54367] [meta-bug] lambda expressions
Date: Tue, 03 Oct 2017 21:25:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: dep_changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.8.0
X-Bugzilla-Keywords: meta-bug
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-54367-4-iFk4VDKtcS@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-54367-4@http.gcc.gnu.org/bugzilla/>
References: <bug-54367-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00357.txt.bz2
Content-length: 496

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54367
Bug 54367 depends on bug 68584, which changed state.

Bug 68584 Summary: nested generic lambda with trailing return type cases compiler crash
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68584

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED
>From gcc-bugs-return-577296-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 21:25:58 2017
Return-Path: <gcc-bugs-return-577296-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 23748 invoked by alias); 3 Oct 2017 21:25:58 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 23617 invoked by uid 48); 3 Oct 2017 21:25:54 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/68584] nested generic lambda with trailing return type cases compiler crash
Date: Tue, 03 Oct 2017 21:25:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc blocked resolution target_milestone
Message-ID: <bug-68584-4-4PiwatQ2JR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-68584-4@http.gcc.gnu.org/bugzilla/>
References: <bug-68584-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00356.txt.bz2
Content-length: 765

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68584

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |paolo.carlini at oracle dot com
             Blocks|                            |54367
         Resolution|---                         |FIXED
   Target Milestone|---                         |5.4

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Fixed a while ago, in 5.4.0.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54367
[Bug 54367] [meta-bug] lambda expressions
>From gcc-bugs-return-577298-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 03 21:40:27 2017
Return-Path: <gcc-bugs-return-577298-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 119877 invoked by alias); 3 Oct 2017 21:40: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 119807 invoked by uid 48); 3 Oct 2017 21:40:22 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82408] cross-compiling for arm64 problems
Date: Tue, 03 Oct 2017 21:40:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pinskia at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: INVALID
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82408-4-DrTgf475gO@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82408-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82408-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00358.txt.bz2
Content-length: 3215

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82408

--- Comment #12 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Peter Bohning from comment #11)
> >> And as I recall, "target" defaults to "host".
> 
> >It does not.  Read
> >https://gcc.gnu.org/install/configure.html
> 
> As I recall "--target" defaults to [HOST] if you do "./configure --help".  I
> can't double check this since I no longer have a computer.

Yes it might but you are then building a compiler which will run on aarch64 and
targets aarch64, not a cross compiler which runs on the machine you are
building on and targeting aarch64.  But since you longer have access to a
computer I cannot help you figure out what you did wrong; thus closing this bug
as invalid is the correct thing.

> 
> >The linaro toolchain already includes a libstdc++ library so there is no reason why >you need to recompile GCC/libstdc++ here.
> 
> I suppose it's probably true that I could just copy the libstdc++ library
> out of the linaro toolchain into my sysroot...
> 
> >You still did not describe what kind of cross compiler you want?  Do you want one >which runs on x86_64 (and built on x86_64) that targets aarch64 if so then just -->target= is needed.  If you want one which runs on aarch64 (was built on x86_64 that >targets aarch64), then --host= and --target= is needed but you first need a cross that >RUNS on x86_64 to be able to build the target libraries like libstdc++.
> 
> As I said twice, I don't want the compiler at all, I just need the libstdc++
> library.  Target defaulting to host, as "configure --help" did in fact
> suggest to me, makes sense because the normal behavior would be to compile
> for the same system one is running at the time.

You can't have just libstdc++ without the full GCC.  That is my point.

> 
> I think perhaps we have misunderstood each other.
> 
> But my further issue here would be that it seems very unlikely that this
> configure option would fix the kind of C++ errors I saw in all these various
> defines.  It seems to me that new C++ features have created a bit of a mess.
> Regardless of course, it will be at least a week before I can try any of
> this out, but it just seems very very unlikely that setting a configure
> option that may or may not be what I'm already using, would change these
> defines which, except for the soft-fp, don't seem like they would be
> affected by architecture.
> 
> At the very least, the configure scripts need to check for available
> language features a little better.

Well ok, maybe configure should check to make sure you are using the same
version of the cross compiler as the library is created with.  But this check
would just slow down configure step and for most people it would be a nop as
the build==host for most builds of gcc.

Again the main reason why the target libraries that are included in GCC require
a compiler which runs on the same machine as the target library are written for
that version of GCC and only that version of GCC (though the library is binary
backwards compatible but nobody can ever claim a new target library can be
built with a compiler which is older).
>From gcc-bugs-return-577299-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 01:19:50 2017
Return-Path: <gcc-bugs-return-577299-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 23526 invoked by alias); 4 Oct 2017 01:19:50 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 23480 invoked by uid 48); 4 Oct 2017 01:19:44 -0000
From: "peter at cordes dot ca" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82370] AVX512 can use a memory operand for immediate-count vpsrlw, but gcc doesn't.
Date: Wed, 04 Oct 2017 01:19:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization, ssemmx
X-Bugzilla-Severity: normal
X-Bugzilla-Who: peter at cordes dot ca
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82370-4-HHTkHnsnjZ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82370-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82370-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00359.txt.bz2
Content-length: 2562

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82370

--- Comment #2 from Peter Cordes <peter at cordes dot ca> ---
(In reply to Jakub Jelinek from comment #1)
> Created attachment 42296 [details]
> gcc8-pr82370.patch
> 
> If VPAND is exactly as fast as VPANDQ except for different encodings, then
> maybe we can do something like this patch, where we'd use the suffixes only
> for 512-bit vectors, or when any of the operands is %[xy]mm16+, or when
> masking.
> If VPAND is slower, then we could do it for -Os at least.

They're exactly as fast on Skylake-avx512, and no reason to ever expect them to
be slower on any future CPU.

VEX is well-designed and future-compatible because it zeroes out to VLMAX,
whatever that is on the current CPU.  A VEX VPAND can always be decoded to
exactly the same internal uop as a VPANDQ with no masking.  There's no penalty
for mixing VEX and EVEX in general,
 and no reason to expect one (https://stackoverflow.com/q/46080327/224132).

Assemblers already use the VEX encoding whenever possible for FP instructions
like  vandps  15(%rsi), %xmm2, %xmm1  so AVX512VL code will typically contain a
mix of VEX and EVEX.  Related: vpxor %xmm0,%xmm0,%xmm0  is the best way to zero
a ZMM register, saving bytes (and potentially uops on some future AMD-style
CPU).  pr 80636.


KNL doesn't even support AVX512VL, so it can only encode the ZMM version of
VPANDQ.  But according to Agner Fog's testing, VEX VPAND xmm/ymm is the same
tput and latency as EVEX VPANDD/Q.

---

BTW, I was thinking about this again: it might be even better to use
 VMOVDQU8 15(%rsi), %xmm1{k1}{z}    # zero-masking load
Or not: IACA says that it uses an ALU uop (port 0/1/5) as well as a load-port
uop, so it's break-even vs. VPAND except for setting up the constant (probably
movabs $0xaaaaaaaaaaaaaaaa, %rax; kmov %rax, %k1.  Or maybe load the mask from
memory in one instruction, vs. a broadcast-load of a vector constant.)  It
might possibly save power, or it might use more.

A masked load won't fault from masked elements, so it would actually be safe to
vmovdqu8 -1(%rs1), %zmm1{k1}{z}   but performance-wise that's probably not a
win.  It probably still "counts" as crossing a cache-line boundary on most
CPUs.  And probably quite slow if it has to squash an exception for an unmasked
page based on the mask.  (At least VMASKMOVPS is like that.)

For stores, IACA says vmovdqu8 uses an extra ALU uop even with no masking.  gcc
unfortunately uses that when auto-vectorizing the pure C version:
https://godbolt.org/g/f4bJKd
>From gcc-bugs-return-577300-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 01:46:10 2017
Return-Path: <gcc-bugs-return-577300-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 30010 invoked by alias); 4 Oct 2017 01: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 29840 invoked by uid 48); 4 Oct 2017 01:45:57 -0000
From: "peter at cordes dot ca" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82370] AVX512 can use a memory operand for immediate-count vpsrlw, but gcc doesn't.
Date: Wed, 04 Oct 2017 01:46:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization, ssemmx
X-Bugzilla-Severity: normal
X-Bugzilla-Who: peter at cordes dot ca
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82370-4-q6hOUK4SBJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82370-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82370-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00360.txt.bz2
Content-length: 1227

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82370

--- Comment #3 from Peter Cordes <peter at cordes dot ca> ---
Doesn't change the performance implications, but I just realized I have the
offset-load backwards.  Instead of
        vpsrlw  $8, (%rsi), %xmm1
        vpand   15(%rsi), %xmm2, %xmm0

this algorithm should use
        vpand   1(%rsi), %xmm2, %xmm0     # ideally with rsi 32B-aligned
        vpsrlw  $8, 16(%rsi), %xmm1

Or (with k1 = 0x5555555555555555)
        vmovdqu8    1(%rsi),  %zmm0{k1}{z}   # ALU + load micro-fused
        vmovdqu8    65(%rsi), %zmm1{k1}{z}   # and probably causes CL-split
penalties

Like I said, we should probably avoid vmovdqu8 for loads or stores unless we
actually use masking.  vmovdqu32 or 64 is always at least as good.  If some
future CPU has masked vmovdqu8 without needing an ALU uop, it could be good
(but probably only if it also avoids cache-line split penalties).

https://godbolt.org/g/a1U7hf

See also https://github.com/InstLatx64/InstLatx64 for a spreadsheet of
Skylake-AVX512 uop->port assignments (but it doesn't include masked loads /
stores), and doesn't match IACA for vmovdqu8 zmm stores (which says even
without masking, the ZMM version uses an ALU uop).
>From gcc-bugs-return-577301-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 03:17:23 2017
Return-Path: <gcc-bugs-return-577301-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 45343 invoked by alias); 4 Oct 2017 03:17: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 45278 invoked by uid 48); 4 Oct 2017 03:17:18 -0000
From: "jz2596 at columbia dot edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82419] Error: Expected variable in READ statement in (1)
Date: Wed, 04 Oct 2017 03:17:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 6.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jz2596 at columbia dot edu
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: INVALID
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82419-4-SjkqO82u8b@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82419-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82419-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00361.txt.bz2
Content-length: 337

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82419

--- Comment #5 from J Zorrilla <jz2596 at columbia dot edu> ---
Yes, the same code compiled using ifort (I guess I don't know if any flags in
the Makefile could relax the checks it was doing).

Removing those parentheses allowed the the code to compile.

Thank you both very much!
>From gcc-bugs-return-577302-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 04:26:51 2017
Return-Path: <gcc-bugs-return-577302-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 95522 invoked by alias); 4 Oct 2017 04: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 95487 invoked by uid 48); 4 Oct 2017 04:26:45 -0000
From: "vvulpes0 at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82420] New: ICE with -malign-int and -m68000
Date: Wed, 04 Oct 2017 04:26: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: vvulpes0 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_gcctarget attachments.created
Message-ID: <bug-82420-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00362.txt.bz2
Content-length: 3352

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82420

            Bug ID: 82420
           Summary: ICE with -malign-int and -m68000
           Product: gcc
           Version: 7.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vvulpes0 at gmail dot com
  Target Milestone: ---
            Target: m68k-elf

Created attachment 42297
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42297&action=edit
test.c

When compiling test.c with the -march=68000 and -malign-int flags, a
segmentation fault occurs.  My installed copy of 7.2.0 has limited debugging
information, but another machine with 7.1.0 installed provides:


$ m68k-elf-gcc -march=68000 -malign-int -c test.c
test.c: In function 'f':
test.c:3:4: internal compiler error: Segmentation fault
  a /= 3;
    ^~

0x98c6df crash_signal
        ../../gcc-7.1.0/gcc/toplev.c:337
0x76072e assign_temp(tree_node*, int, int)
        ../../gcc-7.1.0/gcc/function.c:956
0x720e51 emit_push_insn(rtx_def*, machine_mode, tree_node*, rtx_def*, unsigned
int, int, rtx_def*, int, rtx_def*, rtx_def*, int, rtx_def*, bool)
        ../../gcc-7.1.0/gcc/expr.c:4314
0x62f734 emit_library_call_value_1
        ../../gcc-7.1.0/gcc/calls.c:4841
0x63452f emit_library_call_value(rtx_def*, rtx_def*, libcall_type,
machine_mode, int, ...)
        ../../gcc-7.1.0/gcc/calls.c:5162
0x8be6ce expand_binop(machine_mode, optab_tag, rtx_def*, rtx_def*, rtx_def*,
int, optab_methods)
        ../../gcc-7.1.0/gcc/optabs.c:1758
0x8c0cfa sign_expand_binop(machine_mode, optab_tag, optab_tag, rtx_def*,
rtx_def*, rtx_def*, int, optab_methods)
        ../../gcc-7.1.0/gcc/optabs.c:1888
0x712c98 expand_divmod(int, tree_code, machine_mode, rtx_def*, rtx_def*,
rtx_def*, int)
        ../../gcc-7.1.0/gcc/expmed.c:5052
0x727084 expand_expr_real_2(separate_ops*, rtx_def*, machine_mode,
expand_modifier)
        ../../gcc-7.1.0/gcc/expr.c:8841
0x63f85d expand_gimple_stmt_1
        ../../gcc-7.1.0/gcc/cfgexpand.c:3676
0x63f85d expand_gimple_stmt
        ../../gcc-7.1.0/gcc/cfgexpand.c:3737
0x640cb5 expand_gimple_basic_block
        ../../gcc-7.1.0/gcc/cfgexpand.c:5744
0x64588e execute
        ../../gcc-7.1.0/gcc/cfgexpand.c:6357
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.


This 7.1.0 was configured with:


$ m68k-elf-gcc -v
Using built-in specs.
COLLECT_GCC=m68k-elf-gcc
COLLECT_LTO_WRAPPER=/opt/toolchains/m68k/libexec/gcc/m68k-elf/7.1.0/lto-wrapper
Target: m68k-elf
Configured with: ../gcc-7.1.0/configure --target=m68k-elf
--program-prefix=m68k-elf- --prefix=/opt/toolchains/m68k
--with-local-prefix=/opt/toolchains/m68k --with-newlib --enable-languages=c,c++
--disabel-nls --disable-werror --enable-threads=single --disable-libssp
--disable-libquadmath --with-cpu=68000 --with-arch=m68k
Thread model: single
gcc version 7.1.0 (GCC)


The error persists if "-march=68000" is replaced by "-march=68010", but
disappears for values of "68020" and above.  This is presumably because the
higher versions have (multiplication and) division instructions that operate on
and produce wider types than the originals.
>From gcc-bugs-return-577303-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 05:36:57 2017
Return-Path: <gcc-bugs-return-577303-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 88251 invoked by alias); 4 Oct 2017 05:36: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 88192 invoked by uid 48); 4 Oct 2017 05:36:47 -0000
From: "dclarke at blastwave dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/82037] powerpc64-unknown-linux-gnu bootstrap breaks in stage2 with gcc/liblto_plugin.so: wrong ELF class: ELFCLASS64
Date: Wed, 04 Oct 2017 05:36:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: bootstrap
X-Bugzilla-Version: 7.2.0
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:
Message-ID: <bug-82037-4-BmnE0eyjyg@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82037-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82037-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00363.txt.bz2
Content-length: 5421

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82037

--- Comment #7 from Dennis Clarke <dclarke at blastwave dot org> ---
At this point I don't see what the real issue is here on powerpc64.
The configuration stage runs fine but everything fails in stage1
because the wrong ELF class is being used. Really the entire 
compiler should be a 64-bit tool but have the ability to compile 
code with the option -m32 also. This is a Debian 8.8 system and 
I see no reason why this should fail over and over. 

deb8_ppc64$ date 
Tue Oct  3 23:28:41 GMT 2017

deb8_ppc64$ CC='gcc -m64' CXX='g++ -m64' \
> LD_RUN_PATH='/usr/local/lib:/usr/local/gcc7/lib' \
> ../gcc-7.2.0/configure --build=powerpc64-unknown-linux-gnu \
> --target=powerpc64-unknown-linux-gnu --host=powerpc64-unknown-linux-gnu \
> --enable-targets=powerpc-linux,powerpc64-linux --prefix=/usr/local/gcc7 \
> --disable-nls --enable-threads=posix --enable-shared \
> --with-cpu=default64 --enable-bootstrap \
> --enable-libstdcxx-debug --enable-libstdcxx-time=yes \
> --enable-__cxa_atexit --with-system-zlib --enable-objc-gc \
> --enable-multiarch --with-long-double-128 --enable-multilib \
> --enable-stage1-languages=c,c++ --enable-stage1-checking=misc \
> --enable-languages=ada,c,c++,fortran,go,lto,objc,obj-c++ \
> --with-pkgversion='genunix Tue Oct  3 23:28:41 GMT 2017'

This config looks fine and fails in stage1 : 

.
.
.
/usr/local/build/gcc-7.2.0_linux_3.16.0-4-powerpc64.004/./gcc/xgcc
-B/usr/local/build/gcc-7.2.0_linux_3.16.0-4-powerpc64.004/./gcc/
-B/usr/local/gcc7/powerpc64-unknown-linux-gnu/bin/
-B/usr/local/gcc7/powerpc64-unknown-linux-gnu/lib/ -isystem
/usr/local/gcc7/powerpc64-unknown-linux-gnu/include -isystem
/usr/local/gcc7/powerpc64-unknown-linux-gnu/sys-include    -O2  -g -O2 -DIN_GCC
   -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem
./include   -fPIC -mlong-double-128 -mno-minimal-toc -g -DIN_LIBGCC2
-fbuilding-libgcc -fno-stack-protector  -shared -nodefaultlibs
-Wl,--soname=libgcc_s.so.1 -Wl,--version-script=libgcc.map -o
32/libgcc_s.so.1.tmp -g -O2 -m32 -B./ addsf3_s.o subsf3_s.o negsf2_s.o
mulsf3_s.o divsf3_s.o eqsf2_s.o nesf2_s.o gesf2_s.o gtsf2_s.o lesf2_s.o
ltsf2_s.o unordsf2_s.o fixsfsi_s.o floatsisf_s.o floatunsisf_s.o adddf3_s.o
subdf3_s.o negdf2_s.o muldf3_s.o divdf3_s.o eqdf2_s.o nedf2_s.o gedf2_s.o
gtdf2_s.o ledf2_s.o ltdf2_s.o unorddf2_s.o fixdfsi_s.o floatsidf_s.o
floatunsidf_s.o extendsfdf2_s.o truncdfsf2_s.o _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 _powitf2_s.o _mulhc3_s.o _mulsc3_s.o _muldc3_s.o
_mulxc3_s.o _multc3_s.o _divhc3_s.o _divsc3_s.o _divdc3_s.o _divxc3_s.o
_divtc3_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 _fixtfdi_s.o _fixunssfdi_s.o _fixunsdfdi_s.o _fixunsxfdi_s.o
_fixunstfdi_s.o _floatdisf_s.o _floatdidf_s.o _floatdixf_s.o _floatditf_s.o
_floatundisf_s.o _floatundidf_s.o _floatundixf_s.o _floatunditf_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 ibm-ldouble_s.o tramp_s.o ppc64-fp_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 32/libgcc_s.so && if [ -f
32/libgcc_s.so.1 ]; then mv -f 32/libgcc_s.so.1 32/libgcc_s.so.1.backup; else
true; fi && mv 32/libgcc_s.so.1.tmp 32/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 )" ) >
32/libgcc_s.so
/usr/bin/ld:
/usr/local/build/gcc-7.2.0_linux_3.16.0-4-powerpc64.004/./gcc/liblto_plugin.so:
error loading plugin:
/usr/local/build/gcc-7.2.0_linux_3.16.0-4-powerpc64.004/./gcc/liblto_plugin.so:
wrong ELF class: ELFCLASS64
collect2: error: ld returned 1 exit status
gmake[5]: *** [Makefile:982: libgcc_s.so] Error 1
gmake[5]: Leaving directory
'/usr/local/build/gcc-7.2.0_linux_3.16.0-4-powerpc64.004/powerpc64-unknown-linux-gnu/32/libgcc'
gmake[4]: *** [Makefile:1198: multi-do] Error 1
gmake[4]: Leaving directory
'/usr/local/build/gcc-7.2.0_linux_3.16.0-4-powerpc64.004/powerpc64-unknown-linux-gnu/libgcc'
gmake[3]: *** [Makefile:125: all-multi] Error 2
gmake[3]: *** Waiting for unfinished jobs....
gmake[3]: Leaving directory
'/usr/local/build/gcc-7.2.0_linux_3.16.0-4-powerpc64.004/powerpc64-unknown-linux-gnu/libgcc'
gmake[2]: *** [Makefile:20768: all-stage1-target-libgcc] Error 2
gmake[2]: Leaving directory
'/usr/local/build/gcc-7.2.0_linux_3.16.0-4-powerpc64.004'
gmake[1]: *** [Makefile:26925: stage1-bubble] Error 2
gmake[1]: Leaving directory
'/usr/local/build/gcc-7.2.0_linux_3.16.0-4-powerpc64.004'
gmake: *** [Makefile:939: all] Error 2

deb8_ppc64$ pwd
/usr/local/build/gcc-7.2.0_linux_3.16.0-4-powerpc64.004

deb8_ppc64$ cat stage_current 
stage1
>From gcc-bugs-return-577304-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 06:09:46 2017
Return-Path: <gcc-bugs-return-577304-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 5524 invoked by alias); 4 Oct 2017 06:09:46 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 129557 invoked by uid 48); 4 Oct 2017 06:09:42 -0000
From: "prathamesh3492 at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/80155] [7/8 regression] Performance regression with code hoisting enabled
Date: Wed, 04 Oct 2017 06:09:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: prathamesh3492 at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-80155-4-0jr6aiVlLR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80155-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80155-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00364.txt.bz2
Content-length: 964

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80155

prathamesh3492 at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |prathamesh3492 at gcc dot gnu.org

--- Comment #30 from prathamesh3492 at gcc dot gnu.org ---
Hi Richard,
I tried your patch in comment #9 with the fix in comment #13 but since
tree-ssa-pre.c appears to be refactored, the fix doesn't apply anymore and ICE
resurfaces. Could you guide me what fix I should apply to reproduce the
regression ? IIUC the issue here is that code-hoisting is increasing register
pressure thus causing the extra spill ? And GIMPLE does not seem to have cost
model for register allocation.

Are you planning to take a look at this PR soon ? If not I would like to give a
try and would be grateful for suggestions on how to approach this bug.
Thanks!
>From gcc-bugs-return-577305-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 06:36:13 2017
Return-Path: <gcc-bugs-return-577305-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 53670 invoked by alias); 4 Oct 2017 06:36: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 53631 invoked by uid 48); 4 Oct 2017 06:36:10 -0000
From: "asolokha at gmx dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82421] New: [8 Regression] [graphite] ICE: tree check: expected ssa_name, have integer_cst in get_rename, at graphite-isl-ast-to-gimple.c:1127
Date: Wed, 04 Oct 2017 06:36: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-82421-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00365.txt.bz2
Content-length: 1189

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82421

            Bug ID: 82421
           Summary: [8 Regression] [graphite] ICE: tree check: expected
                    ssa_name, have integer_cst in get_rename, at
                    graphite-isl-ast-to-gimple.c:1127
           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-alpha20171001 snapshot (r253330) ICEs when compiling the following
snippet w/ -O1 -floop-nest-optimize:

int pc;

void
qy (int l9)
{
  int tw = 4;
  int fb[tw];

  while (l9 < 1)
    {
      int dr;

      pc = fb[2];
      for (dr = 0; dr < tw; ++dr)
        fb[dr] = 0;
      ++l9;
    }
}

% gcc-8.0.0-alpha20171001 -O1 -floop-nest-optimize -c gqnwitc4.c
during GIMPLE pass: graphite
gqnwitc4.c: In function 'qy':
gqnwitc4.c:4:1: internal compiler error: tree check: expected ssa_name, have
integer_cst in get_rename, at graphite-isl-ast-to-gimple.c:1127
 qy (int l9)
 ^~
>From gcc-bugs-return-577306-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 07:14:58 2017
Return-Path: <gcc-bugs-return-577306-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 106579 invoked by alias); 4 Oct 2017 07:14: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 106494 invoked by uid 48); 4 Oct 2017 07:14:53 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82421] [8 Regression] [graphite] ICE: tree check: expected ssa_name, have integer_cst in get_rename, at graphite-isl-ast-to-gimple.c:1127
Date: Wed, 04 Oct 2017 07:14:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc target_milestone everconfirmed cf_known_to_fail
Message-ID: <bug-82421-4-cMBWTl9D6c@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82421-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82421-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00366.txt.bz2
Content-length: 775

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82421

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-10-04
                 CC|                            |marxin at gcc dot gnu.org,
                   |                            |rguenth at gcc dot gnu.org
   Target Milestone|---                         |8.0
     Ever confirmed|0                           |1
      Known to fail|                            |8.0

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, it's Richi's commit r253336.
>From gcc-bugs-return-577307-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 07:23:34 2017
Return-Path: <gcc-bugs-return-577307-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 43703 invoked by alias); 4 Oct 2017 07:23: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 43653 invoked by uid 48); 4 Oct 2017 07:23:29 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82422] New: [8 Regression][graphite] ICE in set_codegen_error, at graphite-isl-ast-to-gimple.c:248
Date: Wed, 04 Oct 2017 07:23:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cc target_milestone
Message-ID: <bug-82422-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00367.txt.bz2
Content-length: 1749

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82422

            Bug ID: 82422
           Summary: [8 Regression][graphite] ICE in set_codegen_error, at
                    graphite-isl-ast-to-gimple.c:248
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: rguenth at gcc dot gnu.org
  Target Milestone: ---

Starting from r253342 we ICE on:

$ cat /tmp/tmp2l_3nwgp.i
a;
b[6];
c ()
{
  int d;
  for (; d; d++)
    b[d] = 0;
  for (; d < 8; d++)
    a += b[d];
}

$ gcc -floop-nest-optimize -O2 /tmp/tmp2l_3nwgp.i
/tmp/tmp2l_3nwgp.i:1:1: warning: data definition has no type or storage class
 a;
 ^
/tmp/tmp2l_3nwgp.i:1:1: warning: type defaults to ‘int’ in declaration of ‘a’
[-Wimplicit-int]
/tmp/tmp2l_3nwgp.i:2:1: warning: data definition has no type or storage class
 b[6];
 ^
/tmp/tmp2l_3nwgp.i:2:1: warning: type defaults to ‘int’ in declaration of ‘b’
[-Wimplicit-int]
/tmp/tmp2l_3nwgp.i:3:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
 c ()
 ^
/tmp/tmp2l_3nwgp.i: In function ‘c’:
/tmp/tmp2l_3nwgp.i:9:11: warning: iteration 6 invokes undefined behavior
[-Waggressive-loop-optimizations]
     a += b[d];
          ~^~~
/tmp/tmp2l_3nwgp.i:8:3: note: within this loop
   for (; d < 8; d++)
   ^~~
during GIMPLE pass: graphite
/tmp/tmp2l_3nwgp.i:3:1: internal compiler error: in set_codegen_error, at
graphite-isl-ast-to-gimple.c:248
 c ()
 ^
>From gcc-bugs-return-577308-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 07:25:36 2017
Return-Path: <gcc-bugs-return-577308-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 48964 invoked by alias); 4 Oct 2017 07:25: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 46451 invoked by uid 48); 4 Oct 2017 07:25:32 -0000
From: "asolokha at gmx dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82421] [8 Regression] [graphite] ICE: tree check: expected ssa_name, have integer_cst in get_rename, at graphite-isl-ast-to-gimple.c:1127
Date: Wed, 04 Oct 2017 07:25:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: 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: 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-82421-4-vLagyNiKqz@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82421-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82421-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00368.txt.bz2
Content-length: 211

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82421

--- Comment #2 from Arseny Solokha <asolokha at gmx dot com> ---
Oh, I forgot to mention that I had indeed applied that one on top of the weekly
snapshot.
>From gcc-bugs-return-577309-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 07:35:48 2017
Return-Path: <gcc-bugs-return-577309-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 36146 invoked by alias); 4 Oct 2017 07:35:48 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 34623 invoked by uid 48); 4 Oct 2017 07:35:13 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/82394] Pointer imposes an optimization barrier
Date: Wed, 04 Oct 2017 07: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: 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 cc everconfirmed
Message-ID: <bug-82394-4-501lTszR4H@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82394-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82394-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00369.txt.bz2
Content-length: 1059

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82394

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-10-04
                 CC|                            |rguenth at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
For optimizing this we rely on late unrolling but PRE in the pointer case
messes with its cost model.  At -O3 we avoid the PRE because we thing we might
vectorize this and thus late unrolling works.

So, make the data array large enough (>16 elements) and you'll see this not
optimized at all.

That said, we don't have any pass that is capable of "simulating" the loop
and computing the resulting constant.  What we can do is unroll everything and
then have value-numbering do that on straingt-line code.
>From gcc-bugs-return-577310-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 07:36:17 2017
Return-Path: <gcc-bugs-return-577310-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 44431 invoked by alias); 4 Oct 2017 07:36:17 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 44321 invoked by uid 48); 4 Oct 2017 07:36:02 -0000
From: "trippels at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82413] [8 Regression] -O0 crash (ICE in decompose, at tree.h:5179)
Date: Wed, 04 Oct 2017 07:36:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: trippels 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 cc
Message-ID: <bug-82413-4-IYmW99m8Hn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82413-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82413-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00370.txt.bz2
Content-length: 375

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82413

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1
                 CC|                            |trippels at gcc dot gnu.org
>From gcc-bugs-return-577311-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 07:52:29 2017
Return-Path: <gcc-bugs-return-577311-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 88383 invoked by alias); 4 Oct 2017 07: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 87708 invoked by uid 55); 4 Oct 2017 07:51:29 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82374] #pragma GCC optimize is not applied to openmp-generated functions
Date: Wed, 04 Oct 2017 07:52:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: missed-optimization, openmp, wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82374-4-wDJ59j69hI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82374-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82374-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00371.txt.bz2
Content-length: 718

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82374

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Oct  4 07:50:38 2017
New Revision: 253395

URL: https://gcc.gnu.org/viewcvs?rev=253395&root=gcc&view=rev
Log:
        PR tree-optimization/82374
        * omp-low.c (create_omp_child_function): Copy DECL_ATTRIBUTES,
        DECL_FUNCTION_SPECIFIC_OPTIMIZATION,
        DECL_FUNCTION_SPECIFIC_TARGET and DECL_FUNCTION_VERSIONED from
        current_function_decl to the new decl.

        * gcc.dg/gomp/pr82374.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/gomp/pr82374.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/omp-low.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-577312-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 07:53:41 2017
Return-Path: <gcc-bugs-return-577312-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 89498 invoked by alias); 4 Oct 2017 07:53: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 89415 invoked by uid 55); 4 Oct 2017 07:53:36 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82381] [8 Regression] internal compiler error: qsort checking failed
Date: Wed, 04 Oct 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: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-checking
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82381-4-yUnvaLUTCx@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82381-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82381-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00372.txt.bz2
Content-length: 529

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82381

--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Oct  4 07:52:26 2017
New Revision: 253396

URL: https://gcc.gnu.org/viewcvs?rev=253396&root=gcc&view=rev
Log:
        PR tree-optimization/82381
        * tree-ssa-reassoc.c (sort_by_operand_rank): Check for different
        oeN->rank first.  Return 1 or -1 if one op is SSA_NAME and the other
        is not.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/tree-ssa-reassoc.c
>From gcc-bugs-return-577313-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 08:09:21 2017
Return-Path: <gcc-bugs-return-577313-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 72430 invoked by alias); 4 Oct 2017 08:09:20 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 72339 invoked by uid 48); 4 Oct 2017 08:09:15 -0000
From: "alexander.samoylov at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82423] New: GCC 4.3 fails if first PATH element contains subdirectory named gcc
Date: Wed, 04 Oct 2017 08:09:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 4.3.2
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: alexander.samoylov 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-82423-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00373.txt.bz2
Content-length: 1083

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82423

            Bug ID: 82423
           Summary: GCC 4.3 fails if first PATH element contains
                    subdirectory named gcc
           Product: gcc
           Version: 4.3.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: alexander.samoylov at gmail dot com
  Target Milestone: ---

Please, see my question at
https://stackoverflow.com/questions/42158423/gcc-4-3-fails-if-first-path-element-contains-subdirectory-named-gcc.

Most probably, the issue was fixed in the later versions. I don't request to
patch the version 4.3.x, just would like somebody from GCC developers to
confirm where it was fixed and refer to the corresponding GCC bugzilla ticket
(perhaps, there was no ticket and it was fixed as a side-effect of other
changes).

I found only one similar issue
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48306, but it is actually another
problem.

--
Best Regards,
Alexander.
>From gcc-bugs-return-577314-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 08:13:40 2017
Return-Path: <gcc-bugs-return-577314-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 26361 invoked by alias); 4 Oct 2017 08:13:40 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 17734 invoked by uid 48); 4 Oct 2017 08:13:36 -0000
From: "schwab@linux-m68k.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/82037] Debian 8.8 powerpc64-unknown-linux-gnu bootstrap breaks in stage1 with gcc/liblto_plugin.so: wrong ELF class: ELFCLASS64
Date: Wed, 04 Oct 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: bootstrap
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: schwab@linux-m68k.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82037-4-TSFVEOuJgZ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82037-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82037-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00374.txt.bz2
Content-length: 302

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82037

--- Comment #8 from Andreas Schwab <schwab@linux-m68k.org> ---
/usr/bin/ld is a ppc32 binary, thus cannot load a ppc64 plugin.  Either point
the build to a ppc64 ld, or use a wrapper script that filters out the -plugin
and -plugin-opt options.
>From gcc-bugs-return-577316-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 08:18:30 2017
Return-Path: <gcc-bugs-return-577316-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 63061 invoked by alias); 4 Oct 2017 08:18:29 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 59809 invoked by uid 48); 4 Oct 2017 08:18:23 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82424] [8 Regression] ICE in tree check: expected record_type or union_type or qual_union_type, have typename_type in lookup_base, at cp/search.c:203
Date: Wed, 04 Oct 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: unknown
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: target_milestone
Message-ID: <bug-82424-4-0E2KzXFFoS@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82424-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82424-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00376.txt.bz2
Content-length: 295

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82424

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |8.0
>From gcc-bugs-return-577315-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 08:18:11 2017
Return-Path: <gcc-bugs-return-577315-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 53599 invoked by alias); 4 Oct 2017 08:18: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 51600 invoked by uid 48); 4 Oct 2017 08:18:06 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82424] New: [8 Regression] ICE in tree check: expected record_type or union_type or qual_union_type, have typename_type in lookup_base, at cp/search.c:203
Date: Wed, 04 Oct 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: c++
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cc target_milestone
Message-ID: <bug-82424-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00375.txt.bz2
Content-length: 2926

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82424

            Bug ID: 82424
           Summary: [8 Regression] ICE in tree check: expected record_type
                    or union_type or qual_union_type, have typename_type
                    in lookup_base, at cp/search.c:203
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: nathan at gcc dot gnu.org
  Target Milestone: ---

Following snippet started to ICE since r248123:

$ cat ice.ii
template <typename> class a
{
  struct b;
  template <typename, typename> void c ();
};
template <typename d>
template <typename, typename>
void
a<d>::c ()
{
  typedef typename d::b b;
}

g++ ice.ii -c -Wshadow=compatible-local
ice.ii: In member function ‘void a< <template-parameter-1-1> >::c()’:
ice.ii:11:25: internal compiler error: tree check: expected record_type or
union_type or qual_union_type, have typename_type in lookup_base, at
cp/search.c:195
   typedef typename d::b b;
                         ^
0x5d4232 tree_check_failed(tree_node const*, char const*, int, char const*,
...)
        ../../gcc/tree.c:9080
0x7f9788 tree_check3(tree_node*, char const*, int, char const*, tree_code,
tree_code, tree_code)
        ../../gcc/tree.h:3144
0x7f9788 lookup_base(tree_node*, tree_node*, int, base_kind*, int)
        ../../gcc/cp/search.c:195
0x606db3 build_user_type_conversion_1
        ../../gcc/cp/call.c:3735
0x60855b implicit_conversion
        ../../gcc/cp/call.c:1897
0x60d906 can_convert_arg(tree_node*, tree_node*, tree_node*, int, int)
        ../../gcc/cp/call.c:10496
0x73278b check_local_shadow
        ../../gcc/cp/name-lookup.c:2725
0x73278b do_pushdecl
        ../../gcc/cp/name-lookup.c:3057
0x73278b pushdecl(tree_node*, bool)
        ../../gcc/cp/name-lookup.c:3120
0x6ae405 start_decl(cp_declarator const*, cp_decl_specifier_seq*, int,
tree_node*, tree_node*, tree_node**)
        ../../gcc/cp/decl.c:5083
0x76d747 cp_parser_init_declarator
        ../../gcc/cp/parser.c:19490
0x774f2c cp_parser_simple_declaration
        ../../gcc/cp/parser.c:13000
0x775e38 cp_parser_block_declaration
        ../../gcc/cp/parser.c:12825
0x776909 cp_parser_declaration_statement
        ../../gcc/cp/parser.c:12419
0x750e93 cp_parser_statement
        ../../gcc/cp/parser.c:10897
0x751fa0 cp_parser_statement_seq_opt
        ../../gcc/cp/parser.c:11234
0x752077 cp_parser_compound_statement
        ../../gcc/cp/parser.c:11188
0x76b8f8 cp_parser_function_body
        ../../gcc/cp/parser.c:21669
0x76b8f8 cp_parser_ctor_initializer_opt_and_function_body
        ../../gcc/cp/parser.c:21707
0x76d25a cp_parser_function_definition_after_declarator
        ../../gcc/cp/parser.c:26605
>From gcc-bugs-return-577317-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 08:27:21 2017
Return-Path: <gcc-bugs-return-577317-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 65487 invoked by alias); 4 Oct 2017 08:27:21 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 50185 invoked by uid 48); 4 Oct 2017 08:27:17 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/82393] Compilation error on cygwin64
Date: Wed, 04 Oct 2017 08:27:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: ada
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: build
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ebotcazou at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-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 cc attachments.created
Message-ID: <bug-82393-4-OgsB0mQwcc@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82393-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82393-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00377.txt.bz2
Content-length: 648

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82393

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #42280|0                           |1
        is obsolete|                            |
                 CC|                            |ebotcazou at gcc dot gnu.org

--- Comment #3 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Created attachment 42298
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42298&action=edit
Tentative fix

To be tested by someone who uses Cygwin.
>From gcc-bugs-return-577318-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 08:29:51 2017
Return-Path: <gcc-bugs-return-577318-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 60263 invoked by alias); 4 Oct 2017 08:29:51 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 60212 invoked by uid 48); 4 Oct 2017 08:29:47 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/82393] Compilation error on cygwin64
Date: Wed, 04 Oct 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: ada
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: build
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ebotcazou at gcc dot gnu.org
X-Bugzilla-Status: 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-82393-4-uj1IEjGzyz@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82393-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82393-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00378.txt.bz2
Content-length: 510

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82393

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2017-10-04
     Ever confirmed|0                           |1

--- Comment #4 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Please try the attached patch.
>From gcc-bugs-return-577319-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 08:33:46 2017
Return-Path: <gcc-bugs-return-577319-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 87597 invoked by alias); 4 Oct 2017 08:33: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 84732 invoked by uid 48); 4 Oct 2017 08:33:40 -0000
From: "peter at cordes dot ca" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82370] AVX512 can use a memory operand for immediate-count vpsrlw, but gcc doesn't.
Date: Wed, 04 Oct 2017 08:33:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization, ssemmx
X-Bugzilla-Severity: normal
X-Bugzilla-Who: peter at cordes dot ca
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82370-4-iitmDQnz97@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82370-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82370-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00379.txt.bz2
Content-length: 1073

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82370

--- Comment #4 from Peter Cordes <peter at cordes dot ca> ---
VPANDQ can be shorter than an equivalent VPAND, for displacements > 127 but <=
16 * 127 or 32 * 127, and that are an exact multiple of the vector width.  EVEX
with disp8 always implies a compressed displacement.  (See Intel manual vol.2
2.6.5
Compressed Displacement (disp8*N) Support in EVEX).


# worst case for EVEX: odd displacement forcing a disp32 while VEX can use
disp8
  c5 f9 db 4e 01                  vpand  0x1(%rsi),%xmm0,%xmm1
  62 f1 fd 08 db 8e 01 00 00 00   vpandq 0x1(%rsi),%xmm0,%xmm1

# Best case for EVEX, where it wins by byte
# (or two vs. a 3-byte VEX + disp32, e.g. if I'd used %r10)
  c5 09 db be 00 02 00 00         vpand  0x200(%rsi),%xmm14,%xmm15
  62 71 8d 08 db 7e 20            vpandq 0x200(%rsi),%xmm14,%xmm15

# But the tables turn with an odd offset, where EVEX has to use disp32
  c5 09 db be ff 01 00 00         vpand  0x1ff(%rsi),%xmm14,%xmm15
  62 71 8d 08 db be ff 01 00 00   vpandq 0x1ff(%rsi),%xmm14,%xmm15
>From gcc-bugs-return-577322-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 08:35:46 2017
Return-Path: <gcc-bugs-return-577322-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 69696 invoked by alias); 4 Oct 2017 08:35: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 65167 invoked by uid 48); 4 Oct 2017 08:35:42 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/54367] [meta-bug] lambda expressions
Date: Wed, 04 Oct 2017 08:35:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: dep_changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.8.0
X-Bugzilla-Keywords: meta-bug
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-54367-4-wy6ZyT6pP6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-54367-4@http.gcc.gnu.org/bugzilla/>
References: <bug-54367-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00382.txt.bz2
Content-length: 506

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54367
Bug 54367 depends on bug 78816, which changed state.

Bug 78816 Summary: [c++14] Static auto variable usage in generic/variadic lambda fails to compile
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78816

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED
>From gcc-bugs-return-577320-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 08:35:20 2017
Return-Path: <gcc-bugs-return-577320-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 32406 invoked by alias); 4 Oct 2017 08:35: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 18390 invoked by uid 55); 4 Oct 2017 08:35:12 -0000
From: "paolo at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/78816] [c++14] Static auto variable usage in generic/variadic lambda fails to compile
Date: Wed, 04 Oct 2017 08: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: 6.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-78816-4-cr46ou2Gby@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78816-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78816-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00380.txt.bz2
Content-length: 518

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78816

--- Comment #1 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Wed Oct  4 08:34:40 2017
New Revision: 253397

URL: https://gcc.gnu.org/viewcvs?rev=253397&root=gcc&view=rev
Log:
2017-10-04  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/78816
        * g++.dg/cpp1y/lambda-generic-variadic6.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1y/lambda-generic-variadic6.C
Modified:
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-577321-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 08:35:46 2017
Return-Path: <gcc-bugs-return-577321-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 69506 invoked by alias); 4 Oct 2017 08:35: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 64616 invoked by uid 48); 4 Oct 2017 08:35:42 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/78816] [c++14] Static auto variable usage in generic/variadic lambda fails to compile
Date: Wed, 04 Oct 2017 08: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: 6.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status blocked resolution target_milestone
Message-ID: <bug-78816-4-tyoYgqZa9Q@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78816-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78816-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00381.txt.bz2
Content-length: 669

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78816

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
             Blocks|                            |54367
         Resolution|---                         |FIXED
   Target Milestone|---                         |8.0

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Fixed in trunk.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54367
[Bug 54367] [meta-bug] lambda expressions
>From gcc-bugs-return-577323-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 08:43:28 2017
Return-Path: <gcc-bugs-return-577323-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 80328 invoked by alias); 4 Oct 2017 08:43:27 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 78229 invoked by uid 48); 4 Oct 2017 08:43:24 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/71332] Passing non-copyable type by reference to variadic generic lambda after a copyable type by value results in a compile-time error
Date: Wed, 04 Oct 2017 08:43:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 6.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on blocked everconfirmed
Message-ID: <bug-71332-4-PRCzAToQRN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-71332-4@http.gcc.gnu.org/bugzilla/>
References: <bug-71332-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00383.txt.bz2
Content-length: 578

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71332

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-10-04
             Blocks|                            |54367
     Ever confirmed|0                           |1


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54367
[Bug 54367] [meta-bug] lambda expressions
>From gcc-bugs-return-577324-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 08:45:06 2017
Return-Path: <gcc-bugs-return-577324-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 49157 invoked by alias); 4 Oct 2017 08:45: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 43283 invoked by uid 48); 4 Oct 2017 08:44:59 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/71564] label inside a lambda conflicts (?) with another one outside it
Date: Wed, 04 Oct 2017 08:45:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc blocked everconfirmed
Message-ID: <bug-71564-4-QDEbq7shDP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-71564-4@http.gcc.gnu.org/bugzilla/>
References: <bug-71564-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00384.txt.bz2
Content-length: 661

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71564

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-10-04
                 CC|                            |paolo.carlini at oracle dot com
             Blocks|                            |54367
     Ever confirmed|0                           |1


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54367
[Bug 54367] [meta-bug] lambda expressions
>From gcc-bugs-return-577325-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 08:49:15 2017
Return-Path: <gcc-bugs-return-577325-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 81027 invoked by alias); 4 Oct 2017 08:49:15 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 80849 invoked by uid 48); 4 Oct 2017 08:49:08 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79563] Same-name labels in lambdas considered duplicate
Date: Wed, 04 Oct 2017 08:49:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle 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: bug_status blocked resolution
Message-ID: <bug-79563-4-GK3MVg9rsU@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79563-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79563-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00385.txt.bz2
Content-length: 671

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79563

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
             Blocks|                            |54367
         Resolution|---                         |DUPLICATE

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Dup.

*** This bug has been marked as a duplicate of bug 61358 ***


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54367
[Bug 54367] [meta-bug] lambda expressions
>From gcc-bugs-return-577327-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 08:49:15 2017
Return-Path: <gcc-bugs-return-577327-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 81135 invoked by alias); 4 Oct 2017 08:49:15 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 80926 invoked by uid 48); 4 Oct 2017 08:49:11 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/54367] [meta-bug] lambda expressions
Date: Wed, 04 Oct 2017 08:49:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: dep_changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.8.0
X-Bugzilla-Keywords: meta-bug
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-54367-4-MVlL9OGpQS@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-54367-4@http.gcc.gnu.org/bugzilla/>
References: <bug-54367-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00387.txt.bz2
Content-length: 478

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54367
Bug 54367 depends on bug 79563, which changed state.

Bug 79563 Summary: Same-name labels in lambdas considered duplicate
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79563

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE
>From gcc-bugs-return-577326-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 08:49:15 2017
Return-Path: <gcc-bugs-return-577326-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 81047 invoked by alias); 4 Oct 2017 08:49:15 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 80904 invoked by uid 48); 4 Oct 2017 08:49:11 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/61358] Bogus "duplicate label" error after label used within C++11 lambda
Date: Wed, 04 Oct 2017 08:49:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.8.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-61358-4-H14GNbhUVI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-61358-4@http.gcc.gnu.org/bugzilla/>
References: <bug-61358-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00386.txt.bz2
Content-length: 451

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61358

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jengelh at inai dot de

--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> ---
*** Bug 79563 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-577328-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 08:51:57 2017
Return-Path: <gcc-bugs-return-577328-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 90460 invoked by alias); 4 Oct 2017 08:51: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 88122 invoked by uid 48); 4 Oct 2017 08:51:48 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/71564] label inside a lambda conflicts (?) with another one outside it
Date: Wed, 04 Oct 2017 08:51:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-71564-4-7FOq0wAoHR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-71564-4@http.gcc.gnu.org/bugzilla/>
References: <bug-71564-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00388.txt.bz2
Content-length: 455

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71564

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|paolo.carlini at oracle dot com    |

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Very likely duplicate of PR61358, testcase slightly different, better keep
both.
>From gcc-bugs-return-577329-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 08:57:24 2017
Return-Path: <gcc-bugs-return-577329-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 116705 invoked by alias); 4 Oct 2017 08: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 116645 invoked by uid 48); 4 Oct 2017 08:57:20 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/58820] lambda multiple inheritance operator() not ambiguous
Date: Wed, 04 Oct 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: c++
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-58820-4-I5Wx23hlpG@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-58820-4@http.gcc.gnu.org/bugzilla/>
References: <bug-58820-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00389.txt.bz2
Content-length: 447

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58820

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |paolo.carlini at oracle dot com

--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Daniel, is there agreement now about this bug?
>From gcc-bugs-return-577330-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 09:00:42 2017
Return-Path: <gcc-bugs-return-577330-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 120915 invoked by alias); 4 Oct 2017 09:00: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 120729 invoked by uid 48); 4 Oct 2017 09:00:37 -0000
From: "andrey.y.guskov at intel dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/82425] New: [8 regression] gcc.dg/guality/inline-params-2.c fail
Date: Wed, 04 Oct 2017 09:00: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: andrey.y.guskov at intel dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-82425-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00390.txt.bz2
Content-length: 855

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82425

            Bug ID: 82425
           Summary: [8 regression] gcc.dg/guality/inline-params-2.c fail
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
          Assignee: unassigned at gcc dot gnu.org
          Reporter: andrey.y.guskov at intel dot com
  Target Milestone: ---

r251220 triggers this fail (or, rather, unexpected pass):

XPASS: gcc.dg/guality/inline-params-2.c   -O2 -flto -fuse-linker-plugin
-fno-fat-lto-objects  execution test

Option set:
-with-system-zlib --with-demangler-in-ld --with-fpmath=sse --enable-shared
--enable-host-shared --enable-clocale=gnu --enable-cloog-backend=isl
--enable-languages=c,c++,fortran,jit,lto -with-arch=haswell --with-cpu=haswell
>From gcc-bugs-return-577331-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 09:08:38 2017
Return-Path: <gcc-bugs-return-577331-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 130450 invoked by alias); 4 Oct 2017 09:08:38 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 110247 invoked by uid 48); 4 Oct 2017 09:08:30 -0000
From: "antoshkka at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82418] Division on a constant is suboptimal because of not using imul instruction
Date: Wed, 04 Oct 2017 09:08:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.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:
Message-ID: <bug-82418-4-TYNwCNRZHG@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82418-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82418-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00391.txt.bz2
Content-length: 1210

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82418

--- Comment #2 from Antony Polukhin <antoshkka at gmail dot com> ---
I've checked the instructions cost according to the "4. Instruction tables" by
By Agner Fog. Technical University of Denmark.

For skylake:
                            ; recip throughp    Latency     Ports       μops
  mov edx, 1374389535       ; 0.25              0
  mul edx                   ; 1                 4           p1+p0156    3
  mov eax, edx              ; 0.25              0-1
  shr eax, 5                ; 0.5               1
  ; Total:                    2                 5-6

vs

  imul rax, rax, 1374389535 ; 1                 3           p1          1
  shr rax, 37               ; 0.5               1
  ; Total:                    1.5               4


So it seems that imul version has less average number of core clock cycles per
instruction (recip throughp), smaller delay in dependency chain (Latency).

imul r64,r64,i consumes less ports than mul r32 while having the less μops for
fused domain and for unfused domain.

Finally, "imul rax,rax,0x51eb851f" consumes 10 bytes in binary, while
mov+mul+mov consumes 8+5+5==18 bytes in binary
>From gcc-bugs-return-577332-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 09:10:50 2017
Return-Path: <gcc-bugs-return-577332-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 62354 invoked by alias); 4 Oct 2017 09:10:50 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 52155 invoked by uid 48); 4 Oct 2017 09:10:46 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/66999] Missing comma in lambda capture causes internal compiler error
Date: Wed, 04 Oct 2017 09:10:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 5.2.0
X-Bugzilla-Keywords: ice-on-invalid-code
X-Bugzilla-Severity: minor
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-66999-4-131qXXmAZn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66999-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66999-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00392.txt.bz2
Content-length: 218

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66999

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Mostly fixed in 6.2.0 - we don't ICE anymore - but we should issue a single
error, not two.
>From gcc-bugs-return-577333-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 09:15:46 2017
Return-Path: <gcc-bugs-return-577333-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 71455 invoked by alias); 4 Oct 2017 09:15: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 71158 invoked by uid 48); 4 Oct 2017 09:15:38 -0000
From: "andrey.y.guskov at intel dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82381] [8 Regression] internal compiler error: qsort checking failed
Date: Wed, 04 Oct 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: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-checking
X-Bugzilla-Severity: normal
X-Bugzilla-Who: andrey.y.guskov at intel dot com
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-82381-4-NkDq1yzNiw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82381-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82381-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00393.txt.bz2
Content-length: 541

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82381

Andrey Guskov <andrey.y.guskov at intel dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrey.y.guskov at intel dot com

--- Comment #11 from Andrey Guskov <andrey.y.guskov at intel dot com> ---
Also having that on half the SPEC CPU2017. Glad that it`s already fixed.

Likely duplicates: pr82395, pr82396, pr82397, pr82398, pr82401
>From gcc-bugs-return-577335-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 09:20:50 2017
Return-Path: <gcc-bugs-return-577335-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 120992 invoked by alias); 4 Oct 2017 09: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 119174 invoked by uid 48); 4 Oct 2017 09:20:46 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/71117] [6/7 Regression] Overeager application of conversion to function pointer during overload resolution of call to function object
Date: Wed, 04 Oct 2017 09:20:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 6.1.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: jason at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.2
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-71117-4-cNdv30iVN2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-71117-4@http.gcc.gnu.org/bugzilla/>
References: <bug-71117-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00395.txt.bz2
Content-length: 461

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71117

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |karol.wozniak at email dot com

--- Comment #8 from Paolo Carlini <paolo.carlini at oracle dot com> ---
*** Bug 71095 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-577336-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 09:20:56 2017
Return-Path: <gcc-bugs-return-577336-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 122856 invoked by alias); 4 Oct 2017 09:20: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 119874 invoked by uid 48); 4 Oct 2017 09:20:47 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/54367] [meta-bug] lambda expressions
Date: Wed, 04 Oct 2017 09:20:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: dep_changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.8.0
X-Bugzilla-Keywords: meta-bug
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-54367-4-UJS2T5vKYp@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-54367-4@http.gcc.gnu.org/bugzilla/>
References: <bug-54367-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00396.txt.bz2
Content-length: 534

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54367
Bug 54367 depends on bug 71095, which changed state.

Bug 71095 Summary: Problem with captureless generic lambda and calling function object with arguments passed by reference
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71095

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |DUPLICATE
>From gcc-bugs-return-577334-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 09:20:48 2017
Return-Path: <gcc-bugs-return-577334-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 120375 invoked by alias); 4 Oct 2017 09: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 117416 invoked by uid 48); 4 Oct 2017 09:20:44 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/71095] Problem with captureless generic lambda and calling function object with arguments passed by reference
Date: Wed, 04 Oct 2017 09:20:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 6.1.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle 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: bug_status blocked resolution
Message-ID: <bug-71095-4-uMMKU0sjZl@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-71095-4@http.gcc.gnu.org/bugzilla/>
References: <bug-71095-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00394.txt.bz2
Content-length: 671

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71095

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
             Blocks|                            |54367
         Resolution|---                         |DUPLICATE

--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Dup.

*** This bug has been marked as a duplicate of bug 71117 ***


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54367
[Bug 54367] [meta-bug] lambda expressions
>From gcc-bugs-return-577338-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 09:26:24 2017
Return-Path: <gcc-bugs-return-577338-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 36783 invoked by alias); 4 Oct 2017 09:26: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 36690 invoked by uid 48); 4 Oct 2017 09:26:20 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/60230] internal compiler error on lambdas capturing multidimensional arrays with dynamic boundary
Date: Wed, 04 Oct 2017 09: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: 4.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-60230-4-Glh7Xq8s9s@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-60230-4@http.gcc.gnu.org/bugzilla/>
References: <bug-60230-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00398.txt.bz2
Content-length: 453

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60230

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |su at cs dot ucdavis.edu

--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> ---
*** Bug 71628 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-577337-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 09:26:23 2017
Return-Path: <gcc-bugs-return-577337-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 36770 invoked by alias); 4 Oct 2017 09:26: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 36651 invoked by uid 48); 4 Oct 2017 09:26:19 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/71628] ICE on valid C++11 code (with lambda expression, __typeof operator and variable length array): verify_gimple failed
Date: Wed, 04 Oct 2017 09:26:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle 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: bug_status resolution
Message-ID: <bug-71628-4-VtN3IjT7Yq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-71628-4@http.gcc.gnu.org/bugzilla/>
References: <bug-71628-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00397.txt.bz2
Content-length: 501

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71628

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Dup.

*** This bug has been marked as a duplicate of bug 60230 ***
>From gcc-bugs-return-577339-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 09:40:53 2017
Return-Path: <gcc-bugs-return-577339-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 15203 invoked by alias); 4 Oct 2017 09: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 15160 invoked by uid 48); 4 Oct 2017 09:40:49 -0000
From: "andrey.y.guskov at intel dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/82368] [8 regression] with r253275 several new test cases in libbacktrace fail
Date: Wed, 04 Oct 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: andrey.y.guskov at intel dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-82368-4-C5QNChZqhN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82368-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82368-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00399.txt.bz2
Content-length: 490

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82368

Andrey Guskov <andrey.y.guskov at intel dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrey.y.guskov at intel dot com

--- Comment #2 from Andrey Guskov <andrey.y.guskov at intel dot com> ---
r235275 also causes SPEC CPU2006 435 compfail @ base6 x86-64 (Haswell and
Silvermont).
>From gcc-bugs-return-577340-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 09:49:15 2017
Return-Path: <gcc-bugs-return-577340-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 63502 invoked by alias); 4 Oct 2017 09:49:15 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 61219 invoked by uid 48); 4 Oct 2017 09:49:11 -0000
From: "ramana 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: Wed, 04 Oct 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: target
X-Bugzilla-Version: 7.1.1
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ramana at gcc dot gnu.org
X-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-81863-4-ZieRsihLck@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-10/txt/msg00400.txt.bz2
Content-length: 1176

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81863

--- Comment #17 from Ramana Radhakrishnan <ramana at gcc dot gnu.org> ---
(In reply to Arnd Bergmann from comment #0)
> Created attachment 41989 [details]
> preprocessed linux/mm/shmem.c file, compressed
> 
> I ran into a few files in the linux kernel that while building with
> -mword-relocations still produce 16-bit relocations, leading to a link error
> with -fpie, e.g.
> 
> arm-linux-gnueabi-ld: mm/page_alloc.o: relocation R_ARM_THM_MOVW_ABS_NC
> against `vm_zone_stat' can not be used when making a shared object;
> recompile with -fPIC
> 
> With the attached source file:
> 
> $ arm-linux-gnueabi-gcc-7.1.1 -Wall mm/shmem.i -O2 -march=armv7-a -c
> -Wno-unused -Wno-pointer-sign -fno-strict-aliasing -mword-relocations
> $ objdump -dr mm/shmem.o | grep R_ARM_MOVW
> 			326c: R_ARM_MOVW_ABS_NC	vm_committed_as
> 			34b8: R_ARM_MOVW_ABS_NC	vm_committed_as
> 			357c: R_ARM_MOVW_ABS_NC	vm_committed_as



Could you put some instructions in this BZ about how you build and test the
kernel to get these errors ? I'm happy to try something before I post the patch
rather than going backwards and forwards.
>From gcc-bugs-return-577341-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 10:17:33 2017
Return-Path: <gcc-bugs-return-577341-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 37574 invoked by alias); 4 Oct 2017 10:17: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 35102 invoked by uid 48); 4 Oct 2017 10:17:29 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82397] [8 Regression] qsort comparator non-negative on sorted output: 1 in vect_analyze_data_ref_accesses
Date: Wed, 04 Oct 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: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-checking, ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: 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 version target_milestone short_desc everconfirmed
Message-ID: <bug-82397-4-UZZWCs6I5H@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82397-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82397-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00401.txt.bz2
Content-length: 2608

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82397

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-checking
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-10-04
            Version|unknown                     |8.0
   Target Milestone|---                         |8.0
            Summary|qsort comparator            |[8 Regression] qsort
                   |non-negative on sorted      |comparator non-negative on
                   |output: 1 in                |sorted output: 1 in
                   |vect_analyze_data_ref_acces |vect_analyze_data_ref_acces
                   |ses                         |ses
     Ever confirmed|0                           |1

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to Alexander Monakov from comment #1)
> This is because operand_equal_p is "smarter" than data_ref_compare_tree. We
> have something like
> 
> A: (long)_1 + (_2 + _3)
> B: (_2 + _4) + (long)_1
> C: (_2 + _3) + (long)_1
> 
> with A == C != B according to operand_equal_p (and A < B < C according to
> data_ref_compare_tree), making comparison steps like this non-transitive:
> 
>   if (!operand_equal_p (DR_BASE_ADDRESS (dra), DR_BASE_ADDRESS (drb), 0))
>     {
>       cmp = data_ref_compare_tree (DR_BASE_ADDRESS (dra),
>                                    DR_BASE_ADDRESS (drb));
> 
> 
> Perhaps additive chains in compared operands should be canonicalized first
> so that if two items are equal according to operand_equal_p they're also
> guaranteed to be equal according to data_ref_compare_tree?

Possibly.  operand_equal_p does the following which is exponential.

    case tcc_comparison:
    case tcc_binary:
      if (OP_SAME (0) && OP_SAME (1))
        return 1;

      /* For commutative ops, allow the other order.  */
      return (commutative_tree_code (TREE_CODE (arg0))
              && operand_equal_p (TREE_OPERAND (arg0, 0),
                                  TREE_OPERAND (arg1, 1), flags)
              && operand_equal_p (TREE_OPERAND (arg0, 1),
                                  TREE_OPERAND (arg1, 0), flags));

I think sth better would be

   if (commutative_tree_code (...)
       && tree_swap_operands ())
     std::swap (...);

and just compare once.  tree-swap-operands doesn't handle enough cases so
we'd lose some equalities.  But exponential behavior is bad.
>From gcc-bugs-return-577342-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 10:24:40 2017
Return-Path: <gcc-bugs-return-577342-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 122427 invoked by alias); 4 Oct 2017 10:24:40 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 122362 invoked by uid 48); 4 Oct 2017 10:24:36 -0000
From: "linux at carewolf dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82426] New: Missed tree-slp-vectorization on -O2 and -O3
Date: Wed, 04 Oct 2017 10:24:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: linux at carewolf dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created
Message-ID: <bug-82426-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00402.txt.bz2
Content-length: 722

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82426

            Bug ID: 82426
           Summary: Missed tree-slp-vectorization on -O2 and -O3
           Product: gcc
           Version: 7.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: linux at carewolf dot com
  Target Milestone: ---

Created attachment 42299
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42299&action=edit
vectslp.cpp

The attached example is a simple matrix multiplication. With -O3 or -O2
-ftree-slp-vectorize the basic-block is not vectorized.

Oddly, with -Os -ftree-slp-vectorize it is.
>From gcc-bugs-return-577344-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 10:25:40 2017
Return-Path: <gcc-bugs-return-577344-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 124566 invoked by alias); 4 Oct 2017 10:25:39 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 124541 invoked by uid 48); 4 Oct 2017 10:25:36 -0000
From: "linux at carewolf dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82426] Missed tree-slp-vectorization on -O2 and -O3
Date: Wed, 04 Oct 2017 10:25:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: linux at carewolf dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-82426-4-oIwMz1X7lh@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82426-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82426-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00404.txt.bz2
Content-length: 266

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82426

--- Comment #2 from Allan Jensen <linux at carewolf dot com> ---
Created attachment 42301
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42301&action=edit
Assembler output with -Os -ftree-slp-vectorize
>From gcc-bugs-return-577343-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 10:25:21 2017
Return-Path: <gcc-bugs-return-577343-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 123832 invoked by alias); 4 Oct 2017 10:25:21 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 123733 invoked by uid 48); 4 Oct 2017 10:25:14 -0000
From: "linux at carewolf dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82426] Missed tree-slp-vectorization on -O2 and -O3
Date: Wed, 04 Oct 2017 10:25:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: linux at carewolf dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-82426-4-xBqpiaVKEO@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82426-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82426-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00403.txt.bz2
Content-length: 245

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82426

--- Comment #1 from Allan Jensen <linux at carewolf dot com> ---
Created attachment 42300
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42300&action=edit
Assembler output with -O3
>From gcc-bugs-return-577345-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 10:28:04 2017
Return-Path: <gcc-bugs-return-577345-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 126973 invoked by alias); 4 Oct 2017 10:28: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 126830 invoked by uid 55); 4 Oct 2017 10:28:00 -0000
From: "wilco at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/82396] [8 Regression] qsort comparator non-negative on sorted output: 4 in ready_sort_real in haifa scheduler
Date: Wed, 04 Oct 2017 10:28:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: build, ice-checking, ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wilco at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: wilco at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82396-4-4St390PUss@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82396-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82396-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00405.txt.bz2
Content-length: 1320

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82396

--- Comment #7 from Wilco <wilco at gcc dot gnu.org> ---
Author: wilco
Date: Wed Oct  4 10:27:26 2017
New Revision: 253399

URL: https://gcc.gnu.org/viewcvs?rev=253399&root=gcc&view=rev
Log:
Fix PR82396: qsort comparator non-negative on sorted output

r253236 broke AArch64 bootstrap. Earlier revision r253071 changed scheduling
behaviour on AArch64 as autopref scheduling no longer checks the base.

This patch fixes the bootstrap failure and cleans up autopref scheduling.
The code is greatly simplified.  Sort accesses on the offset first, and
only if the offsets are the same fall back to other comparisons in
rank_for_schedule.  This doesn't at all restore the original behaviour
since we no longer compare the base address, but it now defines a total
sorting order.  More work will be required to improve the sorting so
that only loads/stores with the same base are affected.

    gcc/
        PR rtl-optimization/82396
        * haifa-sched.c (autopref_multipass_init): Simplify
        initialization.
        (autopref_rank_data): Simplify sort order.
        * sched-int.h (autopref_multipass_data_): Remove
        multi_mem_insn_p, min_offset and max_offset.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/haifa-sched.c
    trunk/gcc/sched-int.h
>From gcc-bugs-return-577347-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 10:31:54 2017
Return-Path: <gcc-bugs-return-577347-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 9694 invoked by alias); 4 Oct 2017 10: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 9628 invoked by uid 48); 4 Oct 2017 10:31:50 -0000
From: "wilco at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/82407] [8 Regression][meta-bug] qsort_chk fallout tracking
Date: Wed, 04 Oct 2017 10:31: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: 8.0
X-Bugzilla-Keywords: ice-checking, meta-bug
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wilco at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: 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-82407-4-LWXVZq7CMq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82407-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82407-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00407.txt.bz2
Content-length: 530

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82407
Bug 82407 depends on bug 82396, which changed state.

Bug 82396 Summary: [8 Regression] qsort comparator non-negative on sorted output: 4 in ready_sort_real in haifa scheduler
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82396

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
>From gcc-bugs-return-577346-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 10:31:53 2017
Return-Path: <gcc-bugs-return-577346-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 9684 invoked by alias); 4 Oct 2017 10: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 9604 invoked by uid 48); 4 Oct 2017 10:31:49 -0000
From: "wilco at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/82396] [8 Regression] qsort comparator non-negative on sorted output: 4 in ready_sort_real in haifa scheduler
Date: Wed, 04 Oct 2017 10:31:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: build, ice-checking, ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wilco at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: wilco at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-82396-4-L6q4Y9IE96@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82396-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82396-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00406.txt.bz2
Content-length: 406

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82396

Wilco <wilco at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #8 from Wilco <wilco at gcc dot gnu.org> ---
Fixed
>From gcc-bugs-return-577348-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 10:32:59 2017
Return-Path: <gcc-bugs-return-577348-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 11976 invoked by alias); 4 Oct 2017 10: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 11910 invoked by uid 48); 4 Oct 2017 10:32:55 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/71946] asm in toplevel lambda function rejected
Date: Wed, 04 Oct 2017 10:32:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 5.4.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: paolo.carlini at oracle dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc assigned_to
Message-ID: <bug-71946-4-BQD3QLUhay@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-71946-4@http.gcc.gnu.org/bugzilla/>
References: <bug-71946-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00408.txt.bz2
Content-length: 1935

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71946

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |paolo.carlini at oracle dot com
           Assignee|unassigned at gcc dot gnu.org      |paolo.carlini at oracle dot com

--- Comment #7 from Paolo Carlini <paolo.carlini at oracle dot com> ---
I believe Andrew is right, it's just matter of setting the flag. The below
passes all my tests so far:

Index: parser.c
===================================================================
--- parser.c    (revision 253396)
+++ parser.c    (working copy)
@@ -10557,6 +10557,7 @@ cp_parser_lambda_body (cp_parser* parser, tree lam
 {
   bool nested = (current_function_decl != NULL_TREE);
   bool local_variables_forbidden_p = parser->local_variables_forbidden_p;
+  bool in_function_body = parser->in_function_body;
   if (nested)
     push_function_context ();
   else
@@ -10567,6 +10568,7 @@ cp_parser_lambda_body (cp_parser* parser, tree lam
   save_omp_privatization_clauses (omp_privatization_save);
   /* Clear this in case we're in the middle of a default argument.  */
   parser->local_variables_forbidden_p = false;
+  parser->in_function_body = true;

   /* Finish the function call operator
      - class_specifier
@@ -10653,6 +10655,7 @@ cp_parser_lambda_body (cp_parser* parser, tree lam

   restore_omp_privatization_clauses (omp_privatization_save);
   parser->local_variables_forbidden_p = local_variables_forbidden_p;
+  parser->in_function_body = in_function_body;
   if (nested)
     pop_function_context();
   else
>From gcc-bugs-return-577349-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 10:33:11 2017
Return-Path: <gcc-bugs-return-577349-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 12778 invoked by alias); 4 Oct 2017 10:33:10 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 12725 invoked by uid 48); 4 Oct 2017 10:33:07 -0000
From: "linux at carewolf dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82426] Missed tree-slp-vectorization on -O2 and -O3
Date: Wed, 04 Oct 2017 10:33:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: linux at carewolf dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82426-4-yFg21S6A08@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82426-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82426-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00409.txt.bz2
Content-length: 187

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82426

--- Comment #3 from Allan Jensen <linux at carewolf dot com> ---
Note it appears the fact it can do it at all in -Os is new in gcc 7
>From gcc-bugs-return-577350-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 10:44:21 2017
Return-Path: <gcc-bugs-return-577350-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 42811 invoked by alias); 4 Oct 2017 10:44:21 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 40378 invoked by uid 55); 4 Oct 2017 10:44:16 -0000
From: "pault at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/60458] Error message on associate: deferred type parameter and requires either the pointer or allocatable attribute
Date: Wed, 04 Oct 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: fortran
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pault at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-60458-4-PGBUIF6rzb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-60458-4@http.gcc.gnu.org/bugzilla/>
References: <bug-60458-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00410.txt.bz2
Content-length: 1457

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60458

--- Comment #8 from Paul Thomas <pault at gcc dot gnu.org> ---
Author: pault
Date: Wed Oct  4 10:43:45 2017
New Revision: 253400

URL: https://gcc.gnu.org/viewcvs?rev=253400&root=gcc&view=rev
Log:
2017-10-04  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/60458
        PR fortran/77296
        * resolve.c (resolve_assoc_var): Deferred character type
        associate names must not receive an integer conatant length.
        * symbol.c (gfc_is_associate_pointer): Deferred character
        length functions also require an associate pointer.
        * trans-decl.c (gfc_get_symbol_decl): Deferred character
        length functions or derived type components require the assoc
        name to have variable string length.
        * trans-stmt.c (trans_associate_var): Set the string length of
        deferred string length associate names. The address expression
        is not needed for allocatable, pointer or dummy targets. Change
        the comment about defered string length targets.

2017-10-04  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/77296
        * gfortran.dg/associate_32.f03 : New test.

Added:
    trunk/gcc/testsuite/gfortran.dg/associate_32.f03
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/resolve.c
    trunk/gcc/fortran/symbol.c
    trunk/gcc/fortran/trans-decl.c
    trunk/gcc/fortran/trans-stmt.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-577351-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 10:44:21 2017
Return-Path: <gcc-bugs-return-577351-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 42904 invoked by alias); 4 Oct 2017 10:44:21 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 40431 invoked by uid 55); 4 Oct 2017 10:44:17 -0000
From: "pault at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/77296] [F03] Compiler Error with allocatable string and associate
Date: Wed, 04 Oct 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: fortran
X-Bugzilla-Version: 6.1.0
X-Bugzilla-Keywords: ice-on-valid-code, wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pault at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-77296-4-FqjIPcW5Qw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-77296-4@http.gcc.gnu.org/bugzilla/>
References: <bug-77296-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00411.txt.bz2
Content-length: 1457

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77296

--- Comment #4 from Paul Thomas <pault at gcc dot gnu.org> ---
Author: pault
Date: Wed Oct  4 10:43:45 2017
New Revision: 253400

URL: https://gcc.gnu.org/viewcvs?rev=253400&root=gcc&view=rev
Log:
2017-10-04  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/60458
        PR fortran/77296
        * resolve.c (resolve_assoc_var): Deferred character type
        associate names must not receive an integer conatant length.
        * symbol.c (gfc_is_associate_pointer): Deferred character
        length functions also require an associate pointer.
        * trans-decl.c (gfc_get_symbol_decl): Deferred character
        length functions or derived type components require the assoc
        name to have variable string length.
        * trans-stmt.c (trans_associate_var): Set the string length of
        deferred string length associate names. The address expression
        is not needed for allocatable, pointer or dummy targets. Change
        the comment about defered string length targets.

2017-10-04  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/77296
        * gfortran.dg/associate_32.f03 : New test.

Added:
    trunk/gcc/testsuite/gfortran.dg/associate_32.f03
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/resolve.c
    trunk/gcc/fortran/symbol.c
    trunk/gcc/fortran/trans-decl.c
    trunk/gcc/fortran/trans-stmt.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-577352-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 10:49:51 2017
Return-Path: <gcc-bugs-return-577352-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 54334 invoked by alias); 4 Oct 2017 10:49: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 54285 invoked by uid 48); 4 Oct 2017 10:49:47 -0000
From: "amonakov at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82397] [8 Regression] qsort comparator non-negative on sorted output: 1 in vect_analyze_data_ref_accesses
Date: Wed, 04 Oct 2017 10:49:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-checking, ice-on-valid-code
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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82397-4-SLFGZBqtog@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82397-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82397-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00412.txt.bz2
Content-length: 499

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82397

--- Comment #3 from Alexander Monakov <amonakov at gcc dot gnu.org> ---
Is it possible to simply invoke data_ref_compare_tree always, without checking
operand_equal_p beforehand? It's possible to canonicalize commutative chains in
data_ref_compare_tree, or - even better - while generating trees in the first
place; I don't understand why the operand_equal_p checks are there, they seem
more costly than what data_ref_compare_tree does.
>From gcc-bugs-return-577353-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 10:51:54 2017
Return-Path: <gcc-bugs-return-577353-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 70115 invoked by alias); 4 Oct 2017 10:51:54 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 58867 invoked by uid 55); 4 Oct 2017 10:51:33 -0000
From: "rsandifo at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82413] [8 Regression] -O0 crash (ICE in decompose, at tree.h:5179)
Date: Wed, 04 Oct 2017 10:51:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rsandifo 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-82413-4-gRBExJlUm9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82413-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82413-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00413.txt.bz2
Content-length: 972

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82413

--- Comment #5 from rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> ---
Author: rsandifo
Date: Wed Oct  4 10:50:19 2017
New Revision: 253401

URL: https://gcc.gnu.org/viewcvs?rev=253401&root=gcc&view=rev
Log:
PR82413: Mismatched precisions in build_range_check

build_range_check explicitly allows LOW and HIGH to be a different type
from EXP, so we need to use w::to_widest when comparing a value based on
HIGH with a value based on EXP's type.

2017-10-04  Richard Sandiford  <richard.sandiford@linaro.org>

gcc/
        PR tree-optimization/82413
        * fold-const.c (build_range_check): Use widest_int when comparing
        the maximum ETYPE value with HIGH.

gcc/testsuite/
        PR tree-optimization/82413
        * g++.dg/pr82413.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/pr82413.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/fold-const.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-577354-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 10:52:06 2017
Return-Path: <gcc-bugs-return-577354-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 82444 invoked by alias); 4 Oct 2017 10:52: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 75642 invoked by uid 48); 4 Oct 2017 10:52:02 -0000
From: "rsandifo at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82413] [8 Regression] -O0 crash (ICE in decompose, at tree.h:5179)
Date: Wed, 04 Oct 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: c
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rsandifo at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-82413-4-Rxyr3FIcQX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82413-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82413-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00414.txt.bz2
Content-length: 467

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82413

rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #6 from rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> ---
Patch applied.
>From gcc-bugs-return-577355-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 11:05:58 2017
Return-Path: <gcc-bugs-return-577355-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 87127 invoked by alias); 4 Oct 2017 11:05:58 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 87064 invoked by uid 48); 4 Oct 2017 11:05:52 -0000
From: "amonakov at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82418] Division on a constant is suboptimal because of not using imul instruction
Date: Wed, 04 Oct 2017 11:05:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
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: cc
Message-ID: <bug-82418-4-3bV8BP1fH1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82418-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82418-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00415.txt.bz2
Content-length: 620

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82418

Alexander Monakov <amonakov at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |amonakov at gcc dot gnu.org

--- Comment #3 from Alexander Monakov <amonakov at gcc dot gnu.org> ---
Marc, gcc code cannot be "several times" faster, it's likely that your test
measured something else, can you share it?

Clang's approach is also preferable because it doesn't tie up a temporary
register to hold the immediate.
>From gcc-bugs-return-577356-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 11:14:01 2017
Return-Path: <gcc-bugs-return-577356-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 97752 invoked by alias); 4 Oct 2017 11:14: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 97676 invoked by uid 55); 4 Oct 2017 11:13:57 -0000
From: "tschwinge at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82374] #pragma GCC optimize is not applied to openmp-generated functions
Date: Wed, 04 Oct 2017 11:14:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: missed-optimization, openmp, wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tschwinge at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82374-4-E8yBxIqWCN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82374-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82374-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00416.txt.bz2
Content-length: 897

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82374

--- Comment #4 from Thomas Schwinge <tschwinge at gcc dot gnu.org> ---
Author: tschwinge
Date: Wed Oct  4 11:13:24 2017
New Revision: 253402

URL: https://gcc.gnu.org/viewcvs?rev=253402&root=gcc&view=rev
Log:
Adjust test cases for attributes propagation changes for OMP outlined regions

        PR tree-optimization/82374
        * c-c++-common/goacc/kernels-double-reduction-n.c: Adjust for
        attributes propagation changes for OMP outlined regions.
        * c-c++-common/goacc/kernels-double-reduction.c: Likewise.
        * c-c++-common/goacc/kernels-reduction.c: Likewise.

Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/c-c++-common/goacc/kernels-double-reduction-n.c
    trunk/gcc/testsuite/c-c++-common/goacc/kernels-double-reduction.c
    trunk/gcc/testsuite/c-c++-common/goacc/kernels-reduction.c
>From gcc-bugs-return-577357-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 11:24:42 2017
Return-Path: <gcc-bugs-return-577357-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 85909 invoked by alias); 4 Oct 2017 11:24:41 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 85454 invoked by uid 48); 4 Oct 2017 11:24:36 -0000
From: "martin.gansser at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libgcc/82427] New: gcc-7.2.1 error: '::mktime' has not been declared    using ::mktime;
Date: Wed, 04 Oct 2017 11:24: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: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: martin.gansser 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-82427-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00417.txt.bz2
Content-length: 3050

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82427

            Bug ID: 82427
           Summary: gcc-7.2.1 error: '::mktime' has not been declared
                    using ::mktime;
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgcc
          Assignee: unassigned at gcc dot gnu.org
          Reporter: martin.gansser at gmail dot com
  Target Milestone: ---

when trying to compile miam-player on Fedora27 with gcc7 the following error
message appears:

g++ -c -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector-strong --param=ssp-buffer-size=4
-grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64
-mtune=generic -g -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DUSE_SWRESAMPLE=1
-DMIAMACOUSTID_LIBRARY -DQT_MULTIMEDIA_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB
-DQT_NETWORK_LIB -DQT_SQL_LIB -DQT_CORE_LIB -I. -Ichromaprint
-Ichromaprint/libavutil -Ichromaprint -I../core -I../core/3rdparty
-I../core/3rdparty/QtAV -isystem /usr/include/qt5 -isystem
/usr/include/qt5/QtMultimedia -isystem /usr/include/qt5/QtWidgets -isystem
/usr/include/qt5/QtGui -isystem /usr/include/qt5/QtNetwork -isystem
/usr/include/qt5/QtSql -isystem /usr/include/qt5/QtCore -Idebug/.moc -isystem
/usr/include/libdrm -I. -I/usr/lib64/qt5/mkspecs/linux-g++ -o
debug/.obj/mbrelease.o mbrelease.cpp
make[1]: Leaving directory
'/builddir/build/BUILD/Miam-Player-1a21b01a86c4cbcfe8fc6d99cf6e595838856b11/src/acoustid'
In file included from /usr/include/c++/7/chrono:41:0,
                 from /usr/include/qt5/QtCore/qobject.h:59,
                 from /usr/include/qt5/QtCore/QObject:1,
                 from mbrelease.h:5,
                 from mbrelease.cpp:1:
/usr/include/c++/7/ctime:64:11: error: '::clock' has not been declared
   using ::clock;
           ^~~~~
/usr/include/c++/7/ctime:65:11: error: '::difftime' has not been declared
   using ::difftime;
           ^~~~~~~~
/usr/include/c++/7/ctime:66:11: error: '::mktime' has not been declared
   using ::mktime;
           ^~~~~~
/usr/include/c++/7/ctime:67:11: error: '::time' has not been declared
   using ::time;
           ^~~~
/usr/include/c++/7/ctime:68:11: error: '::asctime' has not been declared
   using ::asctime;
           ^~~~~~~
/usr/include/c++/7/ctime:69:11: error: '::ctime' has not been declared
   using ::ctime;
           ^~~~~
/usr/include/c++/7/ctime:70:11: error: '::gmtime' has not been declared
   using ::gmtime;
           ^~~~~~
/usr/include/c++/7/ctime:71:11: error: '::localtime' has not been declared
   using ::localtime;
           ^~~~~~~~~
/usr/include/c++/7/ctime:72:11: error: '::strftime' has not been declared
   using ::strftime;
           ^~~~~~~~
make[1]: *** [Makefile:555: debug/.obj/mbrelease.o] Error 1
make[1]: *** Waiting for unfinished jobs....

full error message
http://koji.rpmfusion.org/kojifiles/work/tasks/878/160878/build.log

How can i solve this ?
Many thanks
>From gcc-bugs-return-577358-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 11:32:17 2017
Return-Path: <gcc-bugs-return-577358-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 57647 invoked by alias); 4 Oct 2017 11: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 50102 invoked by uid 48); 4 Oct 2017 11:32:12 -0000
From: "glisse at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82418] Division on a constant is suboptimal because of not using imul instruction
Date: Wed, 04 Oct 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: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: glisse at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82418-4-LiFlSalP1o@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82418-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82418-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00418.txt.bz2
Content-length: 285

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82418

--- Comment #4 from Marc Glisse <glisse at gcc dot gnu.org> ---
(In reply to Alexander Monakov from comment #3)
> it's likely that your test measured something else,

You are right, my test was bogus and clang's version is faster.
>From gcc-bugs-return-577359-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 11:33:41 2017
Return-Path: <gcc-bugs-return-577359-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 91252 invoked by alias); 4 Oct 2017 11: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 89399 invoked by uid 48); 4 Oct 2017 11:33:37 -0000
From: "glisse at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82418] Division on a constant is suboptimal because of not using imul instruction
Date: Wed, 04 Oct 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:
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: cf_gcctarget bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-82418-4-WVJjhZYeEN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82418-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82418-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00419.txt.bz2
Content-length: 460

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82418

Marc Glisse <glisse at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |x86_64-*-*
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-10-04
     Ever confirmed|0                           |1
>From gcc-bugs-return-577360-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 11:43:45 2017
Return-Path: <gcc-bugs-return-577360-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 13231 invoked by alias); 4 Oct 2017 11:43:45 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 13157 invoked by uid 55); 4 Oct 2017 11:43:41 -0000
From: "rguenther at suse dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/80155] [7/8 regression] Performance regression with code hoisting enabled
Date: Wed, 04 Oct 2017 11:43:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenther at suse dot de
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
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-80155-4-qCpTg0rjpl@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80155-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80155-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00420.txt.bz2
Content-length: 1599

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80155

--- Comment #31 from rguenther at suse dot de <rguenther at suse dot de> ---
On Wed, 4 Oct 2017, prathamesh3492 at gcc dot gnu.org wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80155
> 
> prathamesh3492 at gcc dot gnu.org changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                  CC|                            |prathamesh3492 at gcc dot gnu.org
> 
> --- Comment #30 from prathamesh3492 at gcc dot gnu.org ---
> Hi Richard,
> I tried your patch in comment #9 with the fix in comment #13 but since
> tree-ssa-pre.c appears to be refactored, the fix doesn't apply anymore and ICE
> resurfaces. Could you guide me what fix I should apply to reproduce the
> regression ? IIUC the issue here is that code-hoisting is increasing register
> pressure thus causing the extra spill ? And GIMPLE does not seem to have cost
> model for register allocation.
> 
> Are you planning to take a look at this PR soon ? If not I would like to give a
> try and would be grateful for suggestions on how to approach this bug.
> Thanks!

Neither am I planning to look at this soon nor do I have a good idea
how to approach this bug.

My ideas were to compute register pressure & update it during elimination
and thus avoid adding uses that increase pressure over some point.  While
that might mitigate the issue it isn't in any way applying a cost model
to individual inserts.  [nor is computing/updating register pressure easy]
>From gcc-bugs-return-577361-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 11:44:46 2017
Return-Path: <gcc-bugs-return-577361-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 14328 invoked by alias); 4 Oct 2017 11: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 14291 invoked by uid 48); 4 Oct 2017 11:44:42 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/82427] gcc-7.2.1 error: '::mktime' has not been declared    using ::mktime;
Date: Wed, 04 Oct 2017 11:44:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on component everconfirmed
Message-ID: <bug-82427-4-IvhAc08iVB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82427-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82427-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00421.txt.bz2
Content-length: 1020

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82427

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2017-10-04
          Component|libgcc                      |libstdc++
     Ever confirmed|0                           |1

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
This has nothing to do with libgcc.

The answer is probably that you've got some heaer file called time.h in your
include paths, and that is being found instead of /usr/include/time.h

WHen creating this bug you were asked to read https://gcc.gnu.org/bugs/ so
please provide the information it asks for. The preprocessed source will show
which time.h is being used (or you could check the preprocessed source
yourself, and see if it's including /usr/include/time.h or some other file).
>From gcc-bugs-return-577364-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 12:07:43 2017
Return-Path: <gcc-bugs-return-577364-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 75796 invoked by alias); 4 Oct 2017 12: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 75693 invoked by uid 48); 4 Oct 2017 12:07:39 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82401] [8 Regression] error: qsort comparator non-negative on sorted output: 1 in insert_late_enum_def_bindings on an invalid code
Date: Wed, 04 Oct 2017 12:07:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-checking, ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords version target_milestone short_desc
Message-ID: <bug-82401-4-zD88pZvwhX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82401-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82401-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00424.txt.bz2
Content-length: 778

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82401

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-checking
            Version|unknown                     |8.0
   Target Milestone|---                         |8.0
            Summary|error: qsort comparator     |[8 Regression] error: qsort
                   |non-negative on sorted      |comparator non-negative on
                   |output: 1 in                |sorted output: 1 in
                   |insert_late_enum_def_bindin |insert_late_enum_def_bindin
                   |gs on an invalid code       |gs on an invalid code
>From gcc-bugs-return-577362-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 12:07:06 2017
Return-Path: <gcc-bugs-return-577362-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 74232 invoked by alias); 4 Oct 2017 12:07:06 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 74162 invoked by uid 48); 4 Oct 2017 12:07:02 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/82398] [8 Regression] error: qsort comparator non-negative on sorted output: 2 in fill_vec_av_set at gcc/sel-sched.c:3725
Date: Wed, 04 Oct 2017 12:07:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-checking, ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords version target_milestone short_desc
Message-ID: <bug-82398-4-vQJDHk3tnN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82398-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82398-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00422.txt.bz2
Content-length: 768

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82398

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-checking
            Version|unknown                     |8.0
   Target Milestone|---                         |8.0
            Summary|error: qsort comparator     |[8 Regression] error: qsort
                   |non-negative on sorted      |comparator non-negative on
                   |output: 2 in                |sorted output: 2 in
                   |fill_vec_av_set at          |fill_vec_av_set at
                   |gcc/sel-sched.c:3725        |gcc/sel-sched.c:3725
>From gcc-bugs-return-577363-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 12:07:08 2017
Return-Path: <gcc-bugs-return-577363-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 74569 invoked by alias); 4 Oct 2017 12:07:08 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 74214 invoked by uid 48); 4 Oct 2017 12:07:05 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/82427] gcc-7.2.1 error: '::mktime' has not been declared    using ::mktime;
Date: Wed, 04 Oct 2017 12:07:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: INVALID
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-82427-4-yDCa1uYxTh@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82427-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82427-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00423.txt.bz2
Content-length: 783

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82427

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|---                         |INVALID

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Confirmed as a package bug, not a GCC bug:

# 24 "/usr/include/pthread.h" 2 3 4
# 1 "chromaprint/libavutil/time.h" 1 3 4
# 29 "chromaprint/libavutil/time.h" 3 4
int64_t av_gettime(void);
# 38 "chromaprint/libavutil/time.h" 3 4
int64_t av_gettime_relative(void);


Using -Ichromaprint/avutil causes that file to be found instead of the standard
<time.h> header.
>From gcc-bugs-return-577365-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 12:08:49 2017
Return-Path: <gcc-bugs-return-577365-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 77120 invoked by alias); 4 Oct 2017 12: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 77064 invoked by uid 48); 4 Oct 2017 12: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/82402] [5/6/7/8 Regression] error: SSA_NAME_OCCURS_IN_ABNORMAL_PHI should be set
Date: Wed, 04 Oct 2017 12:08:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-checking, ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
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: keywords priority cc version target_milestone
Message-ID: <bug-82402-4-ewCWDZ1RZO@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82402-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82402-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00425.txt.bz2
Content-length: 660

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82402

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-checking
           Priority|P3                          |P2
                 CC|                            |rguenth at gcc dot gnu.org
            Version|unknown                     |8.0
   Target Milestone|---                         |8.0

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Note AB or not AB isn't really relevant on virtuals...
>From gcc-bugs-return-577367-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 12:17:09 2017
Return-Path: <gcc-bugs-return-577367-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 121552 invoked by alias); 4 Oct 2017 12:17: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 121359 invoked by uid 55); 4 Oct 2017 12:17:04 -0000
From: "rguenther at suse dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82405] Function not inlined for switch and suboptimal assembly is generated
Date: Wed, 04 Oct 2017 12: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: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenther at suse dot de
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82405-4-86KBG5DYSt@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82405-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82405-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00427.txt.bz2
Content-length: 2229

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82405

--- Comment #10 from rguenther at suse dot de <rguenther at suse dot de> ---
On Tue, 3 Oct 2017, jakub at gcc dot gnu.org wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82405
> 
> --- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
> So it means maybe llvm performs more advanced switchconv in this case, at least
> judging from the #c0 assembly snippet.  We look solely for PHIs which have
> arguments SSA_NAMEs initialized in the cases to constants, while in order to
> optimize this without -ffast-math, it would need to handle at least a couple of
> stmts where the operands match except for some constant argument that is
> changing.
> 
> <L6> [20.00%]:
>   _5 = r_4(D) * 4.0e+0;
>   _6 = r_4(D) * _5;
>   goto <bb 8>; [100.00%]
> 
> <L7> [20.00%]:
>   _7 = r_4(D) * 3.141500000000000181188397618825547397136688232421875e+0;
>   _8 = r_4(D) * _7;
>   goto <bb 8>; [100.00%]
> 
> So, in the above case we'd look from the PHI with _6 and _8 arguments, and see
> that the because the def stmt isn't assignment from constant, we'd notice it is
> a binary (or unary or ternary) assign where one of the operands is identical
> (r_4(D), while the other one is another SSA_NAME defined in the case, and we'd
> loop to that, seeing another assign where one operand is the same and another
> one is a constant.  Thus, we'd build a table with the 4.0e+0 and
> 3.141500000000000181188397618825547397136688232421875e+0 constants, and after
> the load from the table did _21 = r_4(D) * value_loaded_from_table_20; _22 =
> r_4(D) * _21;
> The question is if we'd require all operands matching except for one which
> could be a constant eventually, or something different (allow some small number
> of constant arguments to a computation).
> 
> Or should we have a separate pass that performs such an optimization (noticing
> similar code blocks with just changing constant parameters and merge the blocks
> except for computing the parameters)?

Looks like sth for tail-merging / code hoisting?  Of course we need to
reassoc first (if valid).  If the whole thing were if()s it may be
PRE would already catch it.
>From gcc-bugs-return-577368-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 12:17:36 2017
Return-Path: <gcc-bugs-return-577368-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 122507 invoked by alias); 4 Oct 2017 12:17: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 122453 invoked by uid 48); 4 Oct 2017 12:17:33 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82410] [7/8 Regression] ICE in replace_placeholders_r
Date: Wed, 04 Oct 2017 12: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: rguenth at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority target_milestone
Message-ID: <bug-82410-4-R0YAHgqVz7@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82410-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82410-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00428.txt.bz2
Content-length: 345

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82410

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
   Target Milestone|---                         |7.3
>From gcc-bugs-return-577366-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 12:17:00 2017
Return-Path: <gcc-bugs-return-577366-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 120743 invoked by alias); 4 Oct 2017 12:17: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 120660 invoked by uid 48); 4 Oct 2017 12:16:56 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82406] [7 Regression] Rejects a valid snippet
Date: Wed, 04 Oct 2017 12: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.2.1
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
Message-ID: <bug-82406-4-BL8pyo4YA0@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82406-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82406-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00426.txt.bz2
Content-length: 292

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82406

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
>From gcc-bugs-return-577370-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 12:18:59 2017
Return-Path: <gcc-bugs-return-577370-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 124427 invoked by alias); 4 Oct 2017 12:18:59 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 124368 invoked by uid 48); 4 Oct 2017 12:18:55 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82414] [5 Regression] Issue with ODR/LTO in G++
Date: Wed, 04 Oct 2017 12:18:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 5.4.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: target_milestone
Message-ID: <bug-82414-4-GGkt3Nb7nz@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82414-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82414-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00430.txt.bz2
Content-length: 293

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82414

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |5.5
>From gcc-bugs-return-577369-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 12:18:44 2017
Return-Path: <gcc-bugs-return-577369-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 123665 invoked by alias); 4 Oct 2017 12:18:44 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 123603 invoked by uid 48); 4 Oct 2017 12:18:36 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/82412] [8 regression] gfortran.dg/graphite/pr42334-1.f fails starting with r253342
Date: Wed, 04 Oct 2017 12:18:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: testsuite
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: target_milestone
Message-ID: <bug-82412-4-xcoWfbgpiQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82412-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82412-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00429.txt.bz2
Content-length: 448

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82412

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |8.0

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Can you check after my last update to the testcases?

What ISL version are you using?
>From gcc-bugs-return-577371-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 12:21:59 2017
Return-Path: <gcc-bugs-return-577371-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 4923 invoked by alias); 4 Oct 2017 12:21:59 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 4865 invoked by uid 48); 4 Oct 2017 12:21:56 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82422] [8 Regression][graphite] ICE in set_codegen_error, at graphite-isl-ast-to-gimple.c:248
Date: Wed, 04 Oct 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: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on version assigned_to target_milestone everconfirmed
Message-ID: <bug-82422-4-rfgTokIxSP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82422-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82422-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00431.txt.bz2
Content-length: 675

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82422

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2017-10-04
            Version|unknown                     |8.0
           Assignee|unassigned at gcc dot gnu.org      |rguenth at gcc dot gnu.org
   Target Milestone|---                         |8.0
     Ever confirmed|0                           |1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Mine.
>From gcc-bugs-return-577372-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 12:22:46 2017
Return-Path: <gcc-bugs-return-577372-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 6382 invoked by alias); 4 Oct 2017 12:22:46 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 6344 invoked by uid 48); 4 Oct 2017 12:22:43 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82421] [8 Regression] [graphite] ICE: tree check: expected ssa_name, have integer_cst in get_rename, at graphite-isl-ast-to-gimple.c:1127
Date: Wed, 04 Oct 2017 12:22:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to
Message-ID: <bug-82421-4-k0D2syF46D@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82421-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82421-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00432.txt.bz2
Content-length: 547

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82421

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |rguenth at gcc dot gnu.org

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Probably trivial to fix tho I have a quite complex patch in development that
fixes it as well.
>From gcc-bugs-return-577373-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 12:29:35 2017
Return-Path: <gcc-bugs-return-577373-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 54716 invoked by alias); 4 Oct 2017 12:29: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 54664 invoked by uid 48); 4 Oct 2017 12:29:31 -0000
From: "martin.gansser at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/82427] gcc-7.2.1 error: '::mktime' has not been declared    using ::mktime;
Date: Wed, 04 Oct 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: libstdc++
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: martin.gansser 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: resolution
Message-ID: <bug-82427-4-nWsiXHS68y@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82427-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82427-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00433.txt.bz2
Content-length: 433

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82427

mgansser at alice dot de <martin.gansser at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|INVALID                     |FIXED

--- Comment #3 from mgansser at alice dot de <martin.gansser at gmail dot com> ---
Thank you for identifying the cause.
>From gcc-bugs-return-577374-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 12:30:45 2017
Return-Path: <gcc-bugs-return-577374-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 59806 invoked by alias); 4 Oct 2017 12:30:45 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 59753 invoked by uid 48); 4 Oct 2017 12:30:42 -0000
From: "ian at airs dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/82368] [8 regression] with r253275 several new test cases in libbacktrace fail
Date: Wed, 04 Oct 2017 12: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: 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: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82368-4-cPhQy5TLlT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82368-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82368-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00434.txt.bz2
Content-length: 273

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82368

--- Comment #3 from Ian Lance Taylor <ian at airs dot com> ---
Andrey: do you have more details?  I don't see how this change, which does not
affect the generated code in any way, could possibly cause a SPEC failure.
>From gcc-bugs-return-577375-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 12:47:43 2017
Return-Path: <gcc-bugs-return-577375-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 17836 invoked by alias); 4 Oct 2017 12:47: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 7983 invoked by uid 48); 4 Oct 2017 12:47:38 -0000
From: "thopre01 at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/80155] [7/8 regression] Performance regression with code hoisting enabled
Date: Wed, 04 Oct 2017 12:47:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: thopre01 at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-80155-4-BFSCIL8MVj@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80155-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80155-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00435.txt.bz2
Content-length: 2027

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80155

--- Comment #32 from Thomas Preud'homme <thopre01 at gcc dot gnu.org> ---
(In reply to rguenther@suse.de from comment #31)
> On Wed, 4 Oct 2017, prathamesh3492 at gcc dot gnu.org wrote:
> 
> > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80155
> > 
> > prathamesh3492 at gcc dot gnu.org changed:
> > 
> >            What    |Removed                     |Added
> > ----------------------------------------------------------------------------
> >                  CC|                            |prathamesh3492 at gcc dot gnu.org
> > 
> > --- Comment #30 from prathamesh3492 at gcc dot gnu.org ---
> > Hi Richard,
> > I tried your patch in comment #9 with the fix in comment #13 but since
> > tree-ssa-pre.c appears to be refactored, the fix doesn't apply anymore and ICE
> > resurfaces. Could you guide me what fix I should apply to reproduce the
> > regression ? IIUC the issue here is that code-hoisting is increasing register
> > pressure thus causing the extra spill ? And GIMPLE does not seem to have cost
> > model for register allocation.
> > 
> > Are you planning to take a look at this PR soon ? If not I would like to give a
> > try and would be grateful for suggestions on how to approach this bug.
> > Thanks!
> 
> Neither am I planning to look at this soon nor do I have a good idea
> how to approach this bug.
> 
> My ideas were to compute register pressure & update it during elimination
> and thus avoid adding uses that increase pressure over some point.  While
> that might mitigate the issue it isn't in any way applying a cost model
> to individual inserts.  [nor is computing/updating register pressure easy]

Hi,

Looking at the testcase I attached to this ticket I'm regrettably not so sure
they are representative of the issue we were facing which resulted from too
much register pressure. With so few variable this is probably hitting some
other bug. I'll try and come up with a better reduced testcase.

Best regards.
>From gcc-bugs-return-577376-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 12:52:05 2017
Return-Path: <gcc-bugs-return-577376-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 61589 invoked by alias); 4 Oct 2017 12:52: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 61550 invoked by uid 48); 4 Oct 2017 12:52:01 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/82427] gcc-7.2.1 error: '::mktime' has not been declared    using ::mktime;
Date: Wed, 04 Oct 2017 12:52:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: 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: resolution
Message-ID: <bug-82427-4-bSY495baht@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82427-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82427-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00436.txt.bz2
Content-length: 295

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82427

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|FIXED                       |INVALID
>From gcc-bugs-return-577377-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 13:05:37 2017
Return-Path: <gcc-bugs-return-577377-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 43815 invoked by alias); 4 Oct 2017 13:05: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 43734 invoked by uid 48); 4 Oct 2017 13:05:30 -0000
From: "andrey.y.guskov at intel dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/82368] [8 regression] with r253275 several new test cases in libbacktrace fail
Date: Wed, 04 Oct 2017 13:05:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: other
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: andrey.y.guskov at intel dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82368-4-33MvxgOH8J@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82368-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82368-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00437.txt.bz2
Content-length: 200

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82368

--- Comment #4 from Andrey Guskov <andrey.y.guskov at intel dot com> ---
Damn. Sorry for the false alarm.
The correct revision had to be r253275.
>From gcc-bugs-return-577378-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 13:07:37 2017
Return-Path: <gcc-bugs-return-577378-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 46160 invoked by alias); 4 Oct 2017 13:07: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 46107 invoked by uid 48); 4 Oct 2017 13:07:32 -0000
From: "andrey.y.guskov at intel dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/82368] [8 regression] with r253275 several new test cases in libbacktrace fail
Date: Wed, 04 Oct 2017 13: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: andrey.y.guskov at intel dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82368-4-8M3qUhN4Do@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82368-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82368-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00438.txt.bz2
Content-length: 174

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82368

--- Comment #5 from Andrey Guskov <andrey.y.guskov at intel dot com> ---
Please update the bug header: s/235275/253275/
>From gcc-bugs-return-577379-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 13:32:21 2017
Return-Path: <gcc-bugs-return-577379-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 9685 invoked by alias); 4 Oct 2017 13: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 9579 invoked by uid 48); 4 Oct 2017 13:32:12 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libgomp/82428] New: Builtins for openacc gang/worker/vector id/size
Date: Wed, 04 Oct 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: 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-82428-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00439.txt.bz2
Content-length: 1304

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82428

            Bug ID: 82428
           Summary: Builtins for openacc gang/worker/vector id/size
           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: ---

We have openacc test-cases using the following nvptx idiom:
...
      __asm__ volatile ("mov.u32 %0,%%ctaid.x;" : "=r" (g));
      __asm__ volatile ("mov.u32 %0,%%tid.y;" : "=r" (w));
      __asm__ volatile ("mov.u32 %0,%%tid.x;" : "=r" (v));
...

Typically this is done guarded with acc_on_device (acc_device_nvidia), and
skipping -O0:
...
/* This code uses nvptx inline assembly guarded with acc_on_device, which is    
   not optimized away at -O0, and then confuses the target assembler.           
   { dg-skip-if "" { *-*-* } { "-O0" } { "" } } */
...

It would be better to have generic openacc builtins
__builtin__goacc_{gang,worker,vector}_{id,size}, and use those in the testcase
instead. These could be used at -O0, and without the need to guarded them with
acc_on_device.
>From gcc-bugs-return-577380-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 13:36:27 2017
Return-Path: <gcc-bugs-return-577380-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 21405 invoked by alias); 4 Oct 2017 13:36:27 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 21322 invoked by uid 55); 4 Oct 2017 13:36:22 -0000
From: "rguenther at suse dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82397] [8 Regression] qsort comparator non-negative on sorted output: 1 in vect_analyze_data_ref_accesses
Date: Wed, 04 Oct 2017 13:36:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-checking, ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenther at suse dot de
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82397-4-Dm0dIm89An@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82397-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82397-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00440.txt.bz2
Content-length: 850

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82397

--- Comment #4 from rguenther at suse dot de <rguenther at suse dot de> ---
On Wed, 4 Oct 2017, amonakov at gcc dot gnu.org wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82397
> 
> --- Comment #3 from Alexander Monakov <amonakov at gcc dot gnu.org> ---
> Is it possible to simply invoke data_ref_compare_tree always, without checking
> operand_equal_p beforehand? It's possible to canonicalize commutative chains in
> data_ref_compare_tree, or - even better - while generating trees in the first
> place; I don't understand why the operand_equal_p checks are there, they seem
> more costly than what data_ref_compare_tree does.

I believe we exactly left them there because they catches more 
equalities and data_ref_compare_tree was supposed to only order
non-equal ones.
>From gcc-bugs-return-577381-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 14:05:48 2017
Return-Path: <gcc-bugs-return-577381-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 35800 invoked by alias); 4 Oct 2017 14:05:48 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 35661 invoked by uid 48); 4 Oct 2017 14:05:34 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82429] New: strcpy to stpcpy transformation disabled in strict mode
Date: Wed, 04 Oct 2017 14: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-82429-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00441.txt.bz2
Content-length: 3208

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82429

            Bug ID: 82429
           Summary: strcpy to stpcpy transformation disabled in strict
                    mode
           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: ---

In https://gcc.gnu.org/ml/gcc/2017-10/msg00010.html Jakub explains that the
strcpy to stpcpy optimizing transformation that is normally disabled in strict
conformance modes (e.g., with -std=c11 rather than -std=gnu11) is meant to be
enabled by defining _GNU_SOURCE, or _POSIX_C_SOURCE=200809, or
_XOPEN_SOURCE=700, or various other feature test macros that cause stpcpy to be
declared in system headers.

However, as the test case below shows (from
https://gcc.gnu.org/ml/gcc/2017-10/msg00015.html in the same thread), this is
not what actually happens.  What appears to be necessary in addition to
defining one of the feature test macros above is also explicitly declaring the
stpcpy function in the program.  A declaration alone in one of the system
headers is not sufficient.  This seems like a bug.  Explicitly declaring a
standard function that's already declared in a system header shouldn't have an
impact on the quality of emitted code.

$ cat z.c && gcc -O2 -S -Wall -Wextra -fdump-tree-optimized=/dev/stdout
-std=c11 -D_GNU_SOURCE z.c
#include <string.h>

#if STPCPY
extern char* stpcpy (char*, const char*);
#endif

void __attribute__ ((noclone)) f (char *d, const char *s)
{
  strcpy (d, s);   // with -D_GNU_SOURCE strcpy is expected to be transformed
to stpcpy

  if (__builtin_strlen (d) != __builtin_strlen (s))
     __builtin_abort ();
}

;; Function f (f, funcdef_no=4, decl_uid=1972, cgraph_uid=4, symbol_order=4)

__attribute__((noclone))
f (char * d, const char * s)
{
  long unsigned int _1;
  long unsigned int _2;

  <bb 2> [100.00%] [count: INV]:
  strcpy (d_4(D), s_5(D));   // strcpy not transformed to stpcpy
  _1 = __builtin_strlen (d_4(D));
  _2 = __builtin_strlen (s_5(D));
  if (_1 != _2)
    goto <bb 3>; [0.04%] [count: 0]
  else
    goto <bb 4>; [99.96%] [count: INV]

  <bb 3> [0.04%] [count: 0]:
  __builtin_abort ();

  <bb 4> [99.96%] [count: INV]:
  return;

}


$ gcc -O2 -S -Wall -Wextra -fdump-tree-optimized=/dev/stdout -std=c11
-D_GNU_SOURCE -DSTPCPY z.c
;; Function f (f, funcdef_no=4, decl_uid=1975, cgraph_uid=4, symbol_order=4)

__attribute__((noclone))
f (char * d, const char * s)
{
  long unsigned int _1;
  long unsigned int _2;
  char * _8;
  long unsigned int _9;
  long unsigned int _10;

  <bb 2> [100.00%] [count: INV]:
  _8 = __builtin_stpcpy (d_4(D), s_5(D));   // strcpy transformed to stpcpy 
  _9 = (long unsigned int) _8;
  _10 = (long unsigned int) d_4(D);
  _1 = _9 - _10;
  _2 = __builtin_strlen (s_5(D));
  if (_1 != _2)
    goto <bb 3>; [0.04%] [count: 0]
  else
    goto <bb 4>; [99.96%] [count: INV]

  <bb 3> [0.04%] [count: 0]:
  __builtin_abort ();

  <bb 4> [99.96%] [count: INV]:
  return;

}
>From gcc-bugs-return-577382-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 14:28:18 2017
Return-Path: <gcc-bugs-return-577382-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 17382 invoked by alias); 4 Oct 2017 14:28: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 17319 invoked by uid 48); 4 Oct 2017 14:28:13 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/82425] [8 regression] gcc.dg/guality/inline-params-2.c fail
Date: Wed, 04 Oct 2017 14:28:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: debug
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-debug
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on assigned_to target_milestone everconfirmed
Message-ID: <bug-82425-4-4CHkPDA1Av@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82425-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82425-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00442.txt.bz2
Content-length: 547

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82425

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2017-10-04
           Assignee|unassigned at gcc dot gnu.org      |rguenth at gcc dot gnu.org
   Target Milestone|---                         |8.0
     Ever confirmed|0                           |1
>From gcc-bugs-return-577383-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 14:30:41 2017
Return-Path: <gcc-bugs-return-577383-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 31538 invoked by alias); 4 Oct 2017 14:30: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 31467 invoked by uid 48); 4 Oct 2017 14:30:37 -0000
From: "antoshkka at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82430] New: [4.9 Regression] Suboptimal code generated because of unnecessary "pxor xmm0, xmm0"
Date: Wed, 04 Oct 2017 14:30:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
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-82430-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00443.txt.bz2
Content-length: 1396

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82430

            Bug ID: 82430
           Summary: [4.9 Regression] Suboptimal code generated because of
                    unnecessary "pxor xmm0, xmm0"
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: antoshkka at gmail dot com
  Target Milestone: ---

Following code snippets

unsigned my_mul(unsigned a) {
    return a * 1.5;
}

unsigned my_div(unsigned a) {
    return a / 1.5;
}


Generate assemblies that have "pxor xmm0, xmm0" as a first instruction:

my_mul(unsigned int):
  pxor xmm0, xmm0   <=== This is not necessary
  mov edi, edi
  cvtsi2sdq xmm0, rdi
  mulsd xmm0, QWORD PTR .LC0[rip]
  cvttsd2si rax, xmm0
  ret

my_div(unsigned int):
  pxor xmm0, xmm0   <=== This is not necessary
  mov edi, edi
  cvtsi2sdq xmm0, rdi
  divsd xmm0, QWORD PTR .LC0[rip]
  cvttsd2si rax, xmm0
  ret


The regression was introduced with GCC 4.9. GCC-4.8 and previous versions were
generating assembly without pxor:

my_mul(unsigned int):
  mov edi, edi
  cvtsi2sd xmm0, rdi
  mulsd xmm0, QWORD PTR .LC0[rip]
  cvttsd2si rax, xmm0
  ret

my_div(unsigned int):
  mov edi, edi
  cvtsi2sd xmm0, rdi
  divsd xmm0, QWORD PTR .LC0[rip]
  cvttsd2si rax, xmm0
  ret
>From gcc-bugs-return-577384-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 14:32:49 2017
Return-Path: <gcc-bugs-return-577384-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 35818 invoked by alias); 4 Oct 2017 14:32: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 35508 invoked by uid 48); 4 Oct 2017 14:32:43 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82430] [5/6/7/8 Regression] Suboptimal code generated because of unnecessary "pxor xmm0, xmm0"
Date: Wed, 04 Oct 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: 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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cf_gcctarget cf_known_to_work target_milestone short_desc
Message-ID: <bug-82430-4-0OKwNOjRoM@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82430-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82430-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00444.txt.bz2
Content-length: 692

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82430

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |x86_64-*-*
      Known to work|                            |4.8.5
   Target Milestone|---                         |5.5
            Summary|[4.9 Regression] Suboptimal |[5/6/7/8 Regression]
                   |code generated because of   |Suboptimal code generated
                   |unnecessary "pxor xmm0,     |because of unnecessary
                   |xmm0"                       |"pxor xmm0, xmm0"
>From gcc-bugs-return-577385-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 14:40:27 2017
Return-Path: <gcc-bugs-return-577385-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 104509 invoked by alias); 4 Oct 2017 14:40: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 95990 invoked by uid 48); 4 Oct 2017 14:40:21 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82431] New: [8 Regression] Rejects 416.gamess
Date: Wed, 04 Oct 2017 14:40: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: rguenth at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-82431-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00445.txt.bz2
Content-length: 1979

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82431

            Bug ID: 82431
           Summary: [8 Regression] Rejects 416.gamess
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rguenth at gcc dot gnu.org
  Target Milestone: ---

416.gamess now fails to build with the following.  Is there a workaround
available to slilence the error?  SPEC is known to have many mismatching
sizes.

/space/rguenther/install-trunk/usr/local/bin/gfortran -c -o ecp.fppized.o   
-Ofast -march=native -floop-nest-optimize --param
graphite-allow-codegen-errors=1 --param graphite-max-nb-scop-params=0 --param
graphite-max-arrays-per-scop=0
-Wl,-rpath=/space/rguenther/install-trunk/usr/local/lib64       -DSPEC_CPU_LP64
 -ffixed-form       ecp.fppized.f
ecp.fppized.f:402:15:

       CALL ZFN(ZFNLM,NPNP-1,ZLM,LMF,LMX,LMY,LMZ)
               1
Error: Actual argument contains too few elements for dummy argument 'zfnlm'
(121/125) at (1)
ecp.fppized.f:544:18:

          CALL ZFN(ZFNLM,NPNP-1,ZLM,LMF,LMX,LMY,LMZ)
                  1
Error: Actual argument contains too few elements for dummy argument 'zfnlm'
(121/125) at (1)
ecp.fppized.f:739:24:

                CALL ZFN(ZFNLM,NPNP-1,ZLM,LMF,LMX,LMY,LMZ)
                        1
Error: Actual argument contains too few elements for dummy argument 'zfnlm'
(121/125) at (1)
ecp.fppized.f:994:18:

          CALL ZFN(ZFNLMC,NPCPL-1,ZLM,LMF,LMX,LMY,LMZ)
                  1
Error: Actual argument contains too few elements for dummy argument 'zfnlm'
(121/125) at (1)
ecp.fppized.f:998:18:

          CALL ZFN(ZFNLMB,NPBPL-1,ZLM,LMF,LMX,LMY,LMZ)
                  1
Error: Actual argument contains too few elements for dummy argument 'zfnlm'
(121/125) at (1)
specmake: *** [ecp.fppized.o] Error 1
specmake: *** Waiting for unfinished jobs....
>From gcc-bugs-return-577386-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 14:40:34 2017
Return-Path: <gcc-bugs-return-577386-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 107265 invoked by alias); 4 Oct 2017 14:40: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 105569 invoked by uid 48); 4 Oct 2017 14:40:30 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82431] [8 Regression] Rejects 416.gamess
Date: Wed, 04 Oct 2017 14:40:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
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: target_milestone
Message-ID: <bug-82431-4-TwQjnazq6o@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82431-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82431-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00446.txt.bz2
Content-length: 293

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82431

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |8.0
>From gcc-bugs-return-577387-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 15:05:24 2017
Return-Path: <gcc-bugs-return-577387-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 73761 invoked by alias); 4 Oct 2017 15:05: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 53640 invoked by uid 48); 4 Oct 2017 15:05:17 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82430] [5/6/7/8 Regression] Suboptimal code generated because of unnecessary "pxor xmm0, xmm0"
Date: Wed, 04 Oct 2017 15: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: jakub at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-82430-4-OWMdMS4PI6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82430-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82430-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00447.txt.bz2
Content-length: 513

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82430

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
We started doing it with r203387 and it is intentional.
See http://gcc.gnu.org/ml/gcc-patches/2013-10/msg00722.html for more details.
>From gcc-bugs-return-577388-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 15:06:29 2017
Return-Path: <gcc-bugs-return-577388-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 5459 invoked by alias); 4 Oct 2017 15:06:29 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 126697 invoked by uid 48); 4 Oct 2017 15:06:25 -0000
From: "seurer at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/82412] [8 regression] gfortran.dg/graphite/pr42334-1.f fails starting with r253342
Date: Wed, 04 Oct 2017 15:06:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: testsuite
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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc attachments.created
Message-ID: <bug-82412-4-m37mJyN1Al@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82412-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82412-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00448.txt.bz2
Content-length: 572

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82412

seurer at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |seurer at gcc dot gnu.org

--- Comment #2 from seurer at gcc dot gnu.org ---
Created attachment 42302
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42302&action=edit
Tree dump for gfortran.dg/graphite/pr42334-1.f

I am still seeing the same thing with r253411.  I am attaching a tree dump.
>From gcc-bugs-return-577389-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 15:08:59 2017
Return-Path: <gcc-bugs-return-577389-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 71515 invoked by alias); 4 Oct 2017 15:08:57 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 71419 invoked by uid 48); 4 Oct 2017 15:08:53 -0000
From: "nathan at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82424] [8 Regression] ICE in tree check: expected record_type or union_type or qual_union_type, have typename_type in lookup_base, at cp/search.c:203
Date: Wed, 04 Oct 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: 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: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
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 cf_reconfirmed_on assigned_to everconfirmed
Message-ID: <bug-82424-4-rDvexPBdG0@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82424-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82424-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00449.txt.bz2
Content-length: 492

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82424

Nathan Sidwell <nathan at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2017-10-04
           Assignee|unassigned at gcc dot gnu.org      |nathan at gcc dot gnu.org
     Ever confirmed|0                           |1
>From gcc-bugs-return-577391-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 15:11:35 2017
Return-Path: <gcc-bugs-return-577391-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 73746 invoked by alias); 4 Oct 2017 15:11: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 73584 invoked by uid 48); 4 Oct 2017 15:11:32 -0000
From: "seurer at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/82412] [8 regression] gfortran.dg/graphite/pr42334-1.f fails starting with r253342
Date: Wed, 04 Oct 2017 15:11:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: testsuite
X-Bugzilla-Version: 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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82412-4-4hm0or7lim@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82412-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82412-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00451.txt.bz2
Content-length: 191

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82412

--- Comment #3 from seurer at gcc dot gnu.org ---
Oh, and ISL is what comes from contrib/download_prerequisites.  isl-0.18 in
this case.
>From gcc-bugs-return-577390-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 15:11:35 2017
Return-Path: <gcc-bugs-return-577390-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 73650 invoked by alias); 4 Oct 2017 15:11: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 73544 invoked by uid 48); 4 Oct 2017 15:11:30 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82430] [5/6/7/8 Regression] Suboptimal code generated because of unnecessary "pxor xmm0, xmm0"
Date: Wed, 04 Oct 2017 15:11:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-82430-4-rS2DOrtjsV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82430-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82430-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00450.txt.bz2
Content-length: 613

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82430

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |uros at gcc dot gnu.org

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Oops, no, that change only changed xorpd into pxor.  The actual change that
introduced the xoring was r201308, aka PR57954 and PR57988.
So can you explain why you think the xors aren't necessary to avoid partial sse
dependency stalls?
>From gcc-bugs-return-577392-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 15:24:41 2017
Return-Path: <gcc-bugs-return-577392-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 50486 invoked by alias); 4 Oct 2017 15:24:41 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 50433 invoked by uid 48); 4 Oct 2017 15:24:35 -0000
From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82431] [8 Regression] Rejects 416.gamess
Date: Wed, 04 Oct 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: fortran
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tkoenig at gcc dot gnu.org
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-82431-4-b7TDevvs3j@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82431-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82431-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00452.txt.bz2
Content-length: 868

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82431

Thomas Koenig <tkoenig at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2017-10-04
                 CC|                            |dominiq at gcc dot gnu.org,
                   |                            |tkoenig at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
This was an intentional change introduced by

https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=253286

-std=legacy

should allow compilation.

If that works, we can then discuss if we close this bug
as WONTFIX or as INVALID :-)
>From gcc-bugs-return-577393-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 15:30:28 2017
Return-Path: <gcc-bugs-return-577393-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 60263 invoked by alias); 4 Oct 2017 15:30: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 59476 invoked by uid 48); 4 Oct 2017 15:30:21 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82429] strcpy to stpcpy transformation disabled in strict mode
Date: Wed, 04 Oct 2017 15: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: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-82429-4-qBr0y3hAcP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82429-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82429-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00453.txt.bz2
Content-length: 717

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82429

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Well, it matches the behavior of the stpcpy function in strict mode:
If you try:
char *stpcpy (char *, const char *);
char *foo (char *p) { return stpcpy (p, "abcd"); }
char *bar (char *p) { return __builtin_stpcpy (p, "abcd"); }
then in strict mode only bar will be optimized into memcpy or (inlined memcpy),
while foo will call stpcpy.
>From gcc-bugs-return-577395-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 15:37:45 2017
Return-Path: <gcc-bugs-return-577395-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 76629 invoked by alias); 4 Oct 2017 15:37: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 76179 invoked by uid 55); 4 Oct 2017 15:37:41 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81525] [7 Regression] Invalid codegen with constexpr variable template
Date: Wed, 04 Oct 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.1.0
X-Bugzilla-Keywords: rejects-valid, wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jason at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: jason at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81525-4-BfyNK3yFUX@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-10/txt/msg00455.txt.bz2
Content-length: 748

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81525

--- Comment #10 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Wed Oct  4 15:37:09 2017
New Revision: 253414

URL: https://gcc.gnu.org/viewcvs?rev=253414&root=gcc&view=rev
Log:
        PR c++/81525 - broken handling of auto in generic lambda.

        * pt.c (tsubst_decl) [VAR_DECL]: Use strip_innermost_template_args.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1y/lambda-generic-auto1.C
    trunk/gcc/testsuite/g++.dg/cpp1y/lambda-generic-const4a.C
      - copied, changed from r253410,
trunk/gcc/testsuite/g++.dg/cpp1y/lambda-generic-const4.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/pt.c
    trunk/gcc/testsuite/g++.dg/cpp1y/lambda-generic-const4.C
>From gcc-bugs-return-577394-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 15:37:41 2017
Return-Path: <gcc-bugs-return-577394-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 76087 invoked by alias); 4 Oct 2017 15:37: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 76022 invoked by uid 48); 4 Oct 2017 15:37:37 -0000
From: "didu31 at hotmail dot fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/82393] Compilation error on cygwin64
Date: Wed, 04 Oct 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: ada
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: build
X-Bugzilla-Severity: normal
X-Bugzilla-Who: didu31 at hotmail dot fr
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82393-4-BZ2j5KERN1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82393-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82393-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00454.txt.bz2
Content-length: 155

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82393

--- Comment #5 from Didier G <didu31 at hotmail dot fr> ---
OK.
Build succeed.
Tests in progress ...
>From gcc-bugs-return-577396-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 15:38:59 2017
Return-Path: <gcc-bugs-return-577396-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 78739 invoked by alias); 4 Oct 2017 15: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 78689 invoked by uid 55); 4 Oct 2017 15:38:56 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81525] [7 Regression] Invalid codegen with constexpr variable template
Date: Wed, 04 Oct 2017 15:38:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords: rejects-valid, wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jason at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: jason at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81525-4-9rA5tDrkhJ@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-10/txt/msg00456.txt.bz2
Content-length: 578

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81525

--- Comment #11 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Wed Oct  4 15:38:24 2017
New Revision: 253415

URL: https://gcc.gnu.org/viewcvs?rev=253415&root=gcc&view=rev
Log:
        PR c++/81525 - broken handling of auto in generic lambda.

        * pt.c (tsubst_decl) [VAR_DECL]: Use strip_innermost_template_args.

Added:
    branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp1y/lambda-generic-auto1.C
Modified:
    branches/gcc-7-branch/gcc/cp/ChangeLog
    branches/gcc-7-branch/gcc/cp/pt.c
>From gcc-bugs-return-577397-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 16:16:19 2017
Return-Path: <gcc-bugs-return-577397-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 78756 invoked by alias); 4 Oct 2017 16:16:19 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 75498 invoked by uid 55); 4 Oct 2017 16:16:15 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82373] syntax error in error message
Date: Wed, 04 Oct 2017 16:16:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.2.1
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82373-4-K1Srst3gxv@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82373-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82373-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00457.txt.bz2
Content-length: 625

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82373

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Oct  4 16:15:36 2017
New Revision: 253418

URL: https://gcc.gnu.org/viewcvs?rev=253418&root=gcc&view=rev
Log:
        PR c++/82373
        * error.c (dump_function_decl): If show_return, call dump_type_suffix
        on the same return type dump_type_prefix has been called on.

        * g++.dg/cpp1y/pr82373.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1y/pr82373.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/error.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-577398-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 16:20:27 2017
Return-Path: <gcc-bugs-return-577398-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 84946 invoked by alias); 4 Oct 2017 16:20: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 84897 invoked by uid 48); 4 Oct 2017 16:20:22 -0000
From: "amker at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82369] "optimizes" indexed addressing back into two pointer increments
Date: Wed, 04 Oct 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: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: amker at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: amker at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82369-4-wZ1tMuZ33X@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82369-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82369-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00458.txt.bz2
Content-length: 1394

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82369

--- Comment #3 from amker at gcc dot gnu.org ---
Given IR dump before IVOPTs:
  <bb 2> [15.00%] [count: INV]:
  _1 = dst_12(D) + bytes_13(D);
  end_dst_14 = (uintptr_t) _1;
  srcu_16 = (uintptr_t) src_15(D);
  dstu_17 = (uintptr_t) dst_12(D);
  _2 = dstu_17 * 2;
  _3 = srcu_16 - _2;

  <bb 3> [100.00%] [count: INV]:
  # dstu_10 = PHI <dstu_17(2), dstu_22(4)>
  _4 = dstu_10 * 2;
  _5 = _3 + _4;
  _6 = (const __m128i_u * {ref-all}) _5;
  _25 = *_6;

When ivopts tries to find address type IV for "*_6", the base it has is like:
  (const __m128i_u * {ref-all}) ((uintptr_t) dst_12(D) * 2 + _3)
If we do more aggressive expansion for "_3", we could have:
  (const __m128i_u * {ref-all}) (srcu_16)

So without the expansion, we can't find the base object for the address in
alloc_iv, that's why we failed to classify _6 as an address type IV.  As a
result, addressing mode is not considered in choosing candidate, thus wrong
candidate chosen in the end.

OTOH, we surely don't want to do aggressive expansion because that introduces
more code into loop.  One possible fix is to do aggressive expansion for
analysis purpose, rather than unconditionally (or for code generation purpose).
 For example, we can try aggressive expansion when alloc_iv fails to find base
object, see if it can do better.

Thanks,
bin
>From gcc-bugs-return-577399-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 16:21:29 2017
Return-Path: <gcc-bugs-return-577399-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 86213 invoked by alias); 4 Oct 2017 16:21:29 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 86132 invoked by uid 48); 4 Oct 2017 16:21:25 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82430] [5/6/7/8 Regression] Suboptimal code generated because of unnecessary "pxor xmm0, xmm0"
Date: Wed, 04 Oct 2017 16:21:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pinskia at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: DUPLICATE
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-82430-4-EY1eRMmuKq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82430-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82430-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00459.txt.bz2
Content-length: 504

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82430

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> ---
Dup of bug 82409.

*** This bug has been marked as a duplicate of bug 82409 ***
>From gcc-bugs-return-577400-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 16:21:29 2017
Return-Path: <gcc-bugs-return-577400-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 86222 invoked by alias); 4 Oct 2017 16:21:29 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 86165 invoked by uid 48); 4 Oct 2017 16:21:26 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82409] Superflous pxor instructions in the generated assembly.
Date: Wed, 04 Oct 2017 16:21:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pinskia at gcc dot gnu.org
X-Bugzilla-Status: 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-82409-4-IljAcAW0Vq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82409-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82409-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00460.txt.bz2
Content-length: 445

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82409

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |antoshkka at gmail dot com

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 82430 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-577402-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 16:30:40 2017
Return-Path: <gcc-bugs-return-577402-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 23225 invoked by alias); 4 Oct 2017 16:30: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 23162 invoked by uid 48); 4 Oct 2017 16:30:36 -0000
From: "loic.yhuel at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ipa/67368] Inlining failed due to no_sanitize_address and always_inline conflict
Date: Wed, 04 Oct 2017 16:30:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: ipa
X-Bugzilla-Version: 4.9.2
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: loic.yhuel 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-67368-4-mkqQzbiXWz@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67368-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67368-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00462.txt.bz2
Content-length: 832

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67368

Loïc Yhuel <loic.yhuel at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |loic.yhuel at gmail dot com

--- Comment #4 from Loïc Yhuel <loic.yhuel at gmail dot com> ---
(In reply to Andrey Ryabinin from comment #3)
> Nope, it was prohibited because no_sanitize_address didn't work for inlined
> function https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59600.

So this case should work : functions inlined into a no_sanitize_address
function would have the sanitizer disabled.
Unlike the opposite, which could crash, this one only could fail to detect
issues at runtime, so perhaps it should only be a warning.
>From gcc-bugs-return-577401-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 16:30:04 2017
Return-Path: <gcc-bugs-return-577401-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 22197 invoked by alias); 4 Oct 2017 16:30:04 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 22016 invoked by uid 48); 4 Oct 2017 16:29:59 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82405] Function not inlined for switch and suboptimal assembly is generated
Date: Wed, 04 Oct 2017 16:30:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: 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: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82405-4-HdxSLLMlFt@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82405-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82405-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00461.txt.bz2
Content-length: 572

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82405

--- Comment #11 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Thinking about this some more, this is a not a hoisting problem but a sinking
problem.

basically we have:
int f(void);
int h(void);

int g(int a)
{
  if (a)
    return f() + 10;
  return h() + 10;
}

Which should be converted into:
int g1(int a)
{
  int t;
  if (a)
    t = f();
  else
    t = h();
  return t + 10;
}

We handle hoisting just fine; just not sinking common.

So we don't need reassoc in the original testcase if we do sinking.
>From gcc-bugs-return-577403-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 16:31:09 2017
Return-Path: <gcc-bugs-return-577403-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 24229 invoked by alias); 4 Oct 2017 16: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 24147 invoked by uid 48); 4 Oct 2017 16:31:05 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82405] Function not inlined for switch and suboptimal assembly is generated
Date: Wed, 04 Oct 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: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: pinskia at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_severity
Message-ID: <bug-82405-4-mNN0yFVV5e@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82405-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82405-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00463.txt.bz2
Content-length: 300

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82405

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement
>From gcc-bugs-return-577404-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 16:36:42 2017
Return-Path: <gcc-bugs-return-577404-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 33899 invoked by alias); 4 Oct 2017 16:36: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 33655 invoked by uid 55); 4 Oct 2017 16:36:37 -0000
From: "joseph at codesourcery dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82429] strcpy to stpcpy transformation disabled in strict mode
Date: Wed, 04 Oct 2017 16:36:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: joseph at codesourcery dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82429-4-XwFspPY7X9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82429-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82429-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00464.txt.bz2
Content-length: 646

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82429

--- Comment #2 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
Strictly, that a program declares stpcpy should be irrelevant if the 
declaration is outside system headers, because it could declare and define 
it for some other purpose (even if the prototype matches).

If declared *in system headers*, stpcpy can be assumed to have POSIX 
semantics; likewise if __builtin_stpcpy is called by the program (because 
calling __builtin_stpcpy implies it's OK to generate a call to stpcpy for 
such a call, so stpcpy can be assumed to have POSIX semantics).
>From gcc-bugs-return-577405-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 16:41:19 2017
Return-Path: <gcc-bugs-return-577405-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 58111 invoked by alias); 4 Oct 2017 16:41: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 52727 invoked by uid 55); 4 Oct 2017 16:41:16 -0000
From: "wilco at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/82396] [8 Regression] qsort comparator non-negative on sorted output: 4 in ready_sort_real in haifa scheduler
Date: Wed, 04 Oct 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: rtl-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: build, ice-checking, ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wilco at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: wilco at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82396-4-8HHwyPrBop@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82396-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82396-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00465.txt.bz2
Content-length: 636

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82396

--- Comment #9 from Wilco <wilco at gcc dot gnu.org> ---
Author: wilco
Date: Wed Oct  4 16:40:44 2017
New Revision: 253419

URL: https://gcc.gnu.org/viewcvs?rev=253419&root=gcc&view=rev
Log:
Revert r253399:

        PR rtl-optimization/82396
        * haifa-sched.c (autopref_multipass_init): Simplify
        initialization.
        (autopref_rank_data): Simplify sort order.
        * sched-int.h (autopref_multipass_data_): Remove
        multi_mem_insn_p, min_offset and max_offset.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/haifa-sched.c
    trunk/gcc/sched-int.h
>From gcc-bugs-return-577406-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 17:12:37 2017
Return-Path: <gcc-bugs-return-577406-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 104396 invoked by alias); 4 Oct 2017 17:12:37 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 104362 invoked by uid 48); 4 Oct 2017 17:12:31 -0000
From: "amker at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82369] "optimizes" indexed addressing back into two pointer increments
Date: Wed, 04 Oct 2017 17:12:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: amker at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: amker at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82369-4-fwKUE3iXIL@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82369-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82369-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00466.txt.bz2
Content-length: 1996

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82369

--- Comment #4 from amker at gcc dot gnu.org ---
Hmm, with expansion, IVOPTs can find address type uses as:
Group 0:
  Type: ADDRESS
  Use 0.0:
    At stmt:    _25 = *_6;
    At pos:     *_6
    IV struct:
      Type:     const __m128i_u * {ref-all}
      Base:     (const __m128i_u * {ref-all}) src_15(D)
      Step:     32
      Object:   (void *) src_15(D)
      Biv:      N
      Overflowness wrto loop niter:     Overflow
Group 1:
  Type: ADDRESS
  Use 1.0:
    At stmt:    *dstu.2_9 = _23;
    At pos:     *dstu.2_9
    IV struct:
      Type:     __m128i_u * {ref-all}
      Base:     (__m128i_u * {ref-all}) dst_12(D)
      Step:     16
      Object:   (void *) dst_12(D)
      Biv:      N
      Overflowness wrto loop niter:     Overflow
Group 2:
  Type: COMPARE
  Use 2.0:
    At stmt:    if (end_dst_14 > dstu_22)
    At pos:     dstu_22
    IV struct:
      Type:     uintptr_t
      Base:     (uintptr_t) dst_12(D) + 16
      Step:     16
      Biv:      Y
      Overflowness wrto loop niter:     Overflow
Group 3:
  Type: ADDRESS
  Use 3.0:
    At stmt:    _24 = *_8;
    At pos:     *_8
    IV struct:
      Type:     const __m128i_u * {ref-all}
      Base:     (const __m128i_u * {ref-all}) (src_15(D) + 16)
      Step:     32
      Object:   (void *) src_15(D)
      Biv:      N
      Overflowness wrto loop niter:     Overflow

But it's less likely to express all address type uses with dstu because they
have different base object.  In general, we don't allow expressing reference to
one base object using pointer pointing to different base object.  This case is
a bit tricky because the addresses are computed and casted from uintptr_t,
which means we can assume result pointers are valid to point to any address?

Even it's valid to rewrite load like MEM[src_dst_offset + dstu << 1], it's hard
to do so in current IVOPTs because it's implemented on the basis of
base_object.

Richi, any comments?

Thanks,
bin
>From gcc-bugs-return-577407-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 17:21:58 2017
Return-Path: <gcc-bugs-return-577407-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 98189 invoked by alias); 4 Oct 2017 17:21: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 98121 invoked by uid 55); 4 Oct 2017 17:21:53 -0000
From: "paolo at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/71946] asm in toplevel lambda function rejected
Date: Wed, 04 Oct 2017 17:21:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 5.4.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: paolo.carlini at oracle dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-71946-4-R9GKzTZbe6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-71946-4@http.gcc.gnu.org/bugzilla/>
References: <bug-71946-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00467.txt.bz2
Content-length: 944

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71946

--- Comment #8 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Wed Oct  4 17:21:21 2017
New Revision: 253423

URL: https://gcc.gnu.org/viewcvs?rev=253423&root=gcc&view=rev
Log:
/cp
2017-10-04  Paolo Carlini  <paolo.carlini@oracle.com>
            Andrew Pinski  <apinski@cavium.com>

        PR c++/71946
        * parser.c (cp_parser_lambda_body): Set parser->in_function_body.

/testsuite
2017-10-04  Paolo Carlini  <paolo.carlini@oracle.com>
            Andrew Pinski  <apinski@cavium.com>

        PR c++/71946
        * g++.dg/cpp0x/lambda/lambda-asm1.C: New.
        * g++.dg/cpp0x/lambda/lambda-stmtexpr1.C: Likewise.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-asm1.C
    trunk/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-stmtexpr1.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-577408-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 17:23:32 2017
Return-Path: <gcc-bugs-return-577408-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 106107 invoked by alias); 4 Oct 2017 17:23: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 106021 invoked by uid 48); 4 Oct 2017 17:23:28 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/71946] asm in toplevel lambda function rejected
Date: Wed, 04 Oct 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: c++
X-Bugzilla-Version: 5.4.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc resolution assigned_to target_milestone
Message-ID: <bug-71946-4-PcMgICyKDo@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-71946-4@http.gcc.gnu.org/bugzilla/>
References: <bug-71946-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00468.txt.bz2
Content-length: 635

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71946

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
                 CC|paolo.carlini at oracle dot com    |
         Resolution|---                         |FIXED
           Assignee|paolo.carlini at oracle dot com    |unassigned at gcc dot gnu.org
   Target Milestone|---                         |8.0

--- Comment #9 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Fixed.
>From gcc-bugs-return-577409-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 17:23:32 2017
Return-Path: <gcc-bugs-return-577409-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 106141 invoked by alias); 4 Oct 2017 17:23: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 106051 invoked by uid 48); 4 Oct 2017 17:23:29 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/54367] [meta-bug] lambda expressions
Date: Wed, 04 Oct 2017 17:23:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: dep_changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.8.0
X-Bugzilla-Keywords: meta-bug
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-54367-4-DXjIvGglrY@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-54367-4@http.gcc.gnu.org/bugzilla/>
References: <bug-54367-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00469.txt.bz2
Content-length: 466

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54367
Bug 54367 depends on bug 71946, which changed state.

Bug 71946 Summary: asm in toplevel lambda function rejected
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71946

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
>From gcc-bugs-return-577410-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 17:33:23 2017
Return-Path: <gcc-bugs-return-577410-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 44795 invoked by alias); 4 Oct 2017 17:33: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 44767 invoked by uid 48); 4 Oct 2017 17:33:20 -0000
From: "didu31 at hotmail dot fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/82393] Compilation error on cygwin64
Date: Wed, 04 Oct 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: ada
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: build
X-Bugzilla-Severity: normal
X-Bugzilla-Who: didu31 at hotmail dot fr
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-82393-4-0SjtIOt18E@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82393-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82393-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00470.txt.bz2
Content-length: 242

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82393

--- Comment #6 from Didier G <didu31 at hotmail dot fr> ---
Created attachment 42303
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42303&action=edit
Trace of check ada runtests
>From gcc-bugs-return-577411-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 17:34:08 2017
Return-Path: <gcc-bugs-return-577411-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 51756 invoked by alias); 4 Oct 2017 17:34:08 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 51726 invoked by uid 48); 4 Oct 2017 17:34:03 -0000
From: "didu31 at hotmail dot fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/82393] Compilation error on cygwin64
Date: Wed, 04 Oct 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: ada
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: build
X-Bugzilla-Severity: normal
X-Bugzilla-Who: didu31 at hotmail dot fr
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82393-4-02LVayyHra@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82393-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82393-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00471.txt.bz2
Content-length: 404

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82393

--- Comment #7 from Didier G <didu31 at hotmail dot fr> ---
Attached, the trace of ada run tests.
Please, feel free to inform me about output files to watch. I will do my best
to review and report them.

Best Regards,
Didier.

PS : Do you know we certainly live separated by 3,5 km at Toulouse City ?
I live at 35, rue Edmond Rostand 31200 ... :-)
>From gcc-bugs-return-577412-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 17:45:05 2017
Return-Path: <gcc-bugs-return-577412-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 102068 invoked by alias); 4 Oct 2017 17:45: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 101373 invoked by uid 48); 4 Oct 2017 17:44:58 -0000
From: "sje at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/82396] [8 Regression] qsort comparator non-negative on sorted output: 4 in ready_sort_real in haifa scheduler
Date: Wed, 04 Oct 2017 17:45:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: build, ice-checking, ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: sje at gcc dot gnu.org
X-Bugzilla-Status: REOPENED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: wilco at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-82396-4-mB1wvbXMxr@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82396-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82396-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00472.txt.bz2
Content-length: 1545

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82396

Steve Ellcey <sje at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---

--- Comment #10 from Steve Ellcey <sje at gcc dot gnu.org> ---
I am still seeing a build failure on aarch64.

/home/sellcey/cavium-pr-27386/obj/gcc/aarch64-unknown-linux-gnu/libstdc++-v3/include/bits/deque.tcc:626:7:
error: qsort comparator non-negative on sorted output: 8
       }
       ^
during RTL pass: sched2
/home/sellcey/cavium-pr-27386/obj/gcc/aarch64-unknown-linux-gnu/libstdc++-v3/include/bits/deque.tcc:626:7:
internal compiler error: qsort checking failed
0x5e3aaf qsort_chk_error
        ../../../src/gcc/gcc/vec.c:222
0x14edcb7 qsort_chk(void*, unsigned long, unsigned long, int (*)(void const*,
void const*))
        ../../../src/gcc/gcc/vec.c:274
0x1400727 ready_sort_real
        ../../../src/gcc/gcc/haifa-sched.c:3087
0x1406c03 schedule_block(basic_block_def**, void*)
        ../../../src/gcc/gcc/haifa-sched.c:6749
0xd846eb schedule_region
        ../../../src/gcc/gcc/sched-rgn.c:3174
0xd846eb schedule_insns()
        ../../../src/gcc/gcc/sched-rgn.c:3513
0xd84b6b schedule_insns()
        ../../../src/gcc/gcc/sched-rgn.c:3498
0xd84b6b rest_of_handle_sched2
        ../../../src/gcc/gcc/sched-rgn.c:3737
0xd84b6b execute
        ../../../src/gcc/gcc/sched-rgn.c:3873
>From gcc-bugs-return-577413-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 17:45:26 2017
Return-Path: <gcc-bugs-return-577413-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 105036 invoked by alias); 4 Oct 2017 17:45: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 101405 invoked by uid 48); 4 Oct 2017 17:44:58 -0000
From: "sje at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/82407] [8 Regression][meta-bug] qsort_chk fallout tracking
Date: Wed, 04 Oct 2017 17:45: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: 8.0
X-Bugzilla-Keywords: ice-checking, meta-bug
X-Bugzilla-Severity: normal
X-Bugzilla-Who: sje at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-82407-4-PQymE9FxFS@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82407-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82407-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00473.txt.bz2
Content-length: 528

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82407
Bug 82407 depends on bug 82396, which changed state.

Bug 82396 Summary: [8 Regression] qsort comparator non-negative on sorted output: 4 in ready_sort_real in haifa scheduler
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82396

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---
>From gcc-bugs-return-577414-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 17:47:45 2017
Return-Path: <gcc-bugs-return-577414-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 112665 invoked by alias); 4 Oct 2017 17: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 112534 invoked by uid 55); 4 Oct 2017 17:47:40 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82406] [7 Regression] Rejects a valid snippet
Date: Wed, 04 Oct 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.2.1
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jason at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: 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-82406-4-X2nGhODs8R@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82406-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82406-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00474.txt.bz2
Content-length: 1402

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82406

--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Wed Oct  4 17:47:08 2017
New Revision: 253424

URL: https://gcc.gnu.org/viewcvs?rev=253424&root=gcc&view=rev
Log:
        PR c++/82406 - C++17 error with noexcept function type

        PR c++/70029 - ICE with ref-qualifier and -flto
gcc/
        * langhooks.h (struct lang_hooks_for_types): Add
        copy_lang_qualifiers.
        * langhooks-def.h (LANG_HOOKS_COPY_LANG_QUALIFIERS): Default to
        NULL.
        (LANG_HOOKS_FOR_TYPES_INITIALIZER): Use it.
        * tree.c (verify_type): Re-enable TYPE_CANONICAL main variant check.
        (build_type_attribute_qual_variant): Use copy_lang_qualifiers.
gcc/cp/
        * tree.c (cxx_copy_lang_qualifiers): New.
        * cp-tree.h: Declare it.
        * cp-objcp-common.h: Define LANG_HOOKS_COPY_LANG_QUALIFIERS.

Added:
    branches/gcc-7-branch/gcc/testsuite/g++.dg/ext/attrib54.C
    branches/gcc-7-branch/gcc/testsuite/g++.dg/lto/pr70029_0.C
Modified:
    branches/gcc-7-branch/gcc/ChangeLog
    branches/gcc-7-branch/gcc/cp/ChangeLog
    branches/gcc-7-branch/gcc/cp/cp-objcp-common.h
    branches/gcc-7-branch/gcc/cp/cp-tree.h
    branches/gcc-7-branch/gcc/cp/tree.c
    branches/gcc-7-branch/gcc/langhooks-def.h
    branches/gcc-7-branch/gcc/langhooks.h
    branches/gcc-7-branch/gcc/tree.c
>From gcc-bugs-return-577415-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 17:47:46 2017
Return-Path: <gcc-bugs-return-577415-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 112791 invoked by alias); 4 Oct 2017 17:47: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 112607 invoked by uid 55); 4 Oct 2017 17:47:42 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/70029] [8 Regression] ICE with C++11 and -flto
Date: Wed, 04 Oct 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: 6.0
X-Bugzilla-Keywords: ice-checking, ice-on-valid-code, lto
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jason at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: jason at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-70029-4-EbKYMNCoAy@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70029-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70029-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00475.txt.bz2
Content-length: 1403

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70029

--- Comment #17 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Wed Oct  4 17:47:08 2017
New Revision: 253424

URL: https://gcc.gnu.org/viewcvs?rev=253424&root=gcc&view=rev
Log:
        PR c++/82406 - C++17 error with noexcept function type

        PR c++/70029 - ICE with ref-qualifier and -flto
gcc/
        * langhooks.h (struct lang_hooks_for_types): Add
        copy_lang_qualifiers.
        * langhooks-def.h (LANG_HOOKS_COPY_LANG_QUALIFIERS): Default to
        NULL.
        (LANG_HOOKS_FOR_TYPES_INITIALIZER): Use it.
        * tree.c (verify_type): Re-enable TYPE_CANONICAL main variant check.
        (build_type_attribute_qual_variant): Use copy_lang_qualifiers.
gcc/cp/
        * tree.c (cxx_copy_lang_qualifiers): New.
        * cp-tree.h: Declare it.
        * cp-objcp-common.h: Define LANG_HOOKS_COPY_LANG_QUALIFIERS.

Added:
    branches/gcc-7-branch/gcc/testsuite/g++.dg/ext/attrib54.C
    branches/gcc-7-branch/gcc/testsuite/g++.dg/lto/pr70029_0.C
Modified:
    branches/gcc-7-branch/gcc/ChangeLog
    branches/gcc-7-branch/gcc/cp/ChangeLog
    branches/gcc-7-branch/gcc/cp/cp-objcp-common.h
    branches/gcc-7-branch/gcc/cp/cp-tree.h
    branches/gcc-7-branch/gcc/cp/tree.c
    branches/gcc-7-branch/gcc/langhooks-def.h
    branches/gcc-7-branch/gcc/langhooks.h
    branches/gcc-7-branch/gcc/tree.c
>From gcc-bugs-return-577417-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 17:48:54 2017
Return-Path: <gcc-bugs-return-577417-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 115962 invoked by alias); 4 Oct 2017 17: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 115754 invoked by uid 48); 4 Oct 2017 17:48:51 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82406] [7 Regression] Rejects a valid snippet
Date: Wed, 04 Oct 2017 17:48:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.2.1
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jason at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
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-82406-4-T4TGGGq8Zs@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82406-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82406-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00477.txt.bz2
Content-length: 436

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82406

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> ---
Backported the fix.
>From gcc-bugs-return-577416-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 17:48:31 2017
Return-Path: <gcc-bugs-return-577416-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 114956 invoked by alias); 4 Oct 2017 17:48: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 114897 invoked by uid 55); 4 Oct 2017 17:48:26 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82406] [7 Regression] Rejects a valid snippet
Date: Wed, 04 Oct 2017 17:48:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.2.1
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jason at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: 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-82406-4-KBtLh213wu@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82406-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82406-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00476.txt.bz2
Content-length: 415

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82406

--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Wed Oct  4 17:47:51 2017
New Revision: 253425

URL: https://gcc.gnu.org/viewcvs?rev=253425&root=gcc&view=rev
Log:
        PR c++/82406 - C++17 error with noexcept function type

        * g++.dg/ext/attrib54.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/ext/attrib54.C
>From gcc-bugs-return-577418-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 17:49:26 2017
Return-Path: <gcc-bugs-return-577418-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 116905 invoked by alias); 4 Oct 2017 17:49:26 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 116835 invoked by uid 48); 4 Oct 2017 17:49:22 -0000
From: "seurer at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/82368] [8 regression] with r253275 several new test cases in libbacktrace fail
Date: Wed, 04 Oct 2017 17:49:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: 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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82368-4-tP0tJuQCgl@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82368-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82368-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00478.txt.bz2
Content-length: 271

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82368

--- Comment #6 from seurer at gcc dot gnu.org ---
The title is correct, the new failures did show up starting with r253275.  I
mistyped it in my description and there doesn't appear to be a way to update
that, sorry.
>From gcc-bugs-return-577419-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 17:52:39 2017
Return-Path: <gcc-bugs-return-577419-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 119326 invoked by alias); 4 Oct 2017 17:52:39 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 119237 invoked by uid 48); 4 Oct 2017 17:52:34 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81525] [7 Regression] Invalid codegen with constexpr variable template
Date: Wed, 04 Oct 2017 17:52:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords: rejects-valid, wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jason at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: jason at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-81525-4-iDk6okM1WI@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-10/txt/msg00479.txt.bz2
Content-length: 424

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81525

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #12 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-577421-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 17:54:51 2017
Return-Path: <gcc-bugs-return-577421-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 17448 invoked by alias); 4 Oct 2017 17: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 17386 invoked by uid 48); 4 Oct 2017 17:54:48 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/80767] Eager instantiation of generic lambda body when not required
Date: Wed, 04 Oct 2017 17:54:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jason at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jason at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution target_milestone
Message-ID: <bug-80767-4-hZ9jZsSfVb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80767-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80767-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00481.txt.bz2
Content-length: 486

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80767

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |7.3

--- Comment #7 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed for 7.3/8.
>From gcc-bugs-return-577420-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 17:54:29 2017
Return-Path: <gcc-bugs-return-577420-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 15688 invoked by alias); 4 Oct 2017 17:54: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 15628 invoked by uid 48); 4 Oct 2017 17:54:25 -0000
From: "ladislas at leka dot io" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug driver/31350] gcc -v --help puts some output on std. out, and some on std. error.
Date: Wed, 04 Oct 2017 17:54:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: driver
X-Bugzilla-Version: 4.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ladislas at leka dot io
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-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-31350-4-lbT6dGGeLF@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-31350-4@http.gcc.gnu.org/bugzilla/>
References: <bug-31350-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00480.txt.bz2
Content-length: 1067

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=31350

Ladislas de Toldi <ladislas at leka dot io> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ladislas at leka dot io

--- Comment #3 from Ladislas de Toldi <ladislas at leka dot io> ---
I confirm this is also the case for avr-gcc

This is what I get to stderr:

--- 

Using built-in specs.
Reading specs from
/usr/local/Cellar/avr-gcc/7.2.0/lib/gcc/avr/7.2.0/device-specs/specs-avr2
COLLECT_GCC=avr-gcc
COLLECT_LTO_WRAPPER=/usr/local/Cellar/avr-gcc/7.2.0/libexec/gcc/avr/7.2.0/lto-wrapper
Target: avr
Configured with: ../configure --target=avr
--prefix=/usr/local/Cellar/avr-gcc/7.2.0 --enable-languages=c,c++
--with-ld=/usr/local/opt/avr-binutils/bin/avr-ld
--with-as=/usr/local/opt/avr-binutils/bin/avr-as --disable-nls --disable-libssp
--disable-shared --disable-threads --disable-libgomp --with-dwarf2
Thread model: single
gcc version 7.2.0 (GCC)
>From gcc-bugs-return-577422-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 17:55:35 2017
Return-Path: <gcc-bugs-return-577422-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 19243 invoked by alias); 4 Oct 2017 17:55:35 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 19176 invoked by uid 48); 4 Oct 2017 17:55:31 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/80935] [C++1z] incorrect error 'uninitialized variable in constexpr function' when conditionally declaring variable inside lambda inside template class
Date: Wed, 04 Oct 2017 17:55:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jason at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jason at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution target_milestone
Message-ID: <bug-80935-4-X5bdSBPu7F@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80935-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80935-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00482.txt.bz2
Content-length: 486

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80935

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |7.3

--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed for 7.3/8.
>From gcc-bugs-return-577423-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 17:56:13 2017
Return-Path: <gcc-bugs-return-577423-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 20288 invoked by alias); 4 Oct 2017 17:56: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 20236 invoked by uid 48); 4 Oct 2017 17:56:09 -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: Wed, 04 Oct 2017 17:56:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: 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: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jason at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution target_milestone
Message-ID: <bug-81236-4-DqFFsgukpN@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-10/txt/msg00483.txt.bz2
Content-length: 486

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81236

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |7.3

--- Comment #8 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed for 7.3/8.
>From gcc-bugs-return-577424-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 20:34:40 2017
Return-Path: <gcc-bugs-return-577424-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 88320 invoked by alias); 4 Oct 2017 20:34: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 88259 invoked by uid 55); 4 Oct 2017 20:34:35 -0000
From: "paolo at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/78018] [C++14] "internal compiler error: Segmentation fault" with templates and lambdas
Date: Wed, 04 Oct 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.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-78018-4-QEYYnz7o21@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78018-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78018-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00484.txt.bz2
Content-length: 510

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78018

--- Comment #2 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Wed Oct  4 20:34:03 2017
New Revision: 253430

URL: https://gcc.gnu.org/viewcvs?rev=253430&root=gcc&view=rev
Log:
2017-10-04  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/78018
        * g++.dg/cpp1y/lambda-generic-78018.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1y/lambda-generic-78018.C
Modified:
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-577425-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 20:35:51 2017
Return-Path: <gcc-bugs-return-577425-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 89689 invoked by alias); 4 Oct 2017 20:35: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 89578 invoked by uid 48); 4 Oct 2017 20:35:48 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/78018] [C++14] "internal compiler error: Segmentation fault" with templates and lambdas
Date: Wed, 04 Oct 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: 6.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc blocked resolution target_milestone
Message-ID: <bug-78018-4-qW7JWdtEHK@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78018-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78018-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00485.txt.bz2
Content-length: 726

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78018

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|andipeer at gmx dot net            |
             Blocks|                            |54367
         Resolution|---                         |FIXED
   Target Milestone|---                         |6.4

--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Fixed in 6.4.0.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54367
[Bug 54367] [meta-bug] lambda expressions
>From gcc-bugs-return-577426-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 20:35:54 2017
Return-Path: <gcc-bugs-return-577426-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 89849 invoked by alias); 4 Oct 2017 20:35: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 89609 invoked by uid 48); 4 Oct 2017 20:35:48 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/54367] [meta-bug] lambda expressions
Date: Wed, 04 Oct 2017 20:35:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: dep_changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.8.0
X-Bugzilla-Keywords: meta-bug
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-54367-4-nKwnFSe2i2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-54367-4@http.gcc.gnu.org/bugzilla/>
References: <bug-54367-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00486.txt.bz2
Content-length: 508

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54367
Bug 54367 depends on bug 78018, which changed state.

Bug 78018 Summary: [C++14] "internal compiler error: Segmentation fault" with templates and lambdas
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78018

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
>From gcc-bugs-return-577427-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 20:59:28 2017
Return-Path: <gcc-bugs-return-577427-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 84789 invoked by alias); 4 Oct 2017 20:59: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 84727 invoked by uid 55); 4 Oct 2017 20:59:24 -0000
From: "paolo at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: =?UTF-8?B?W0J1ZyBjKysvNzgxMzFdIEluY29uc2lzdGVudCBldmFsdWF0aW9uIGZvciBg?= =?UTF-8?B?Y29uc3RleHByYCBsYW1iZGFzIGluIHRlbXBsYXRlcyBiZXR3ZWVuIGBzdGF0?= =?UTF-8?B?aWNfYXNzZXJ0YCwgYGlmIGNvbnN0ZXhwcijigKYpYCBhbmQgYGNvbnN0ZXhw?= =?UTF-8?B?cmAgdmFyaWFibGVz?Date: Wed, 04 Oct 2017 20:59:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-78131-4-jVvVC64QQn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78131-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78131-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00487.txt.bz2
Content-length: 506

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78131

--- Comment #1 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Wed Oct  4 20:58:52 2017
New Revision: 253431

URL: https://gcc.gnu.org/viewcvs?rev=253431&root=gcc&view=rev
Log:
2017-10-04  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/78131
        * g++.dg/cpp1z/constexpr-lambda17.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1z/constexpr-lambda17.C
Modified:
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-577428-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 21:00:31 2017
Return-Path: <gcc-bugs-return-577428-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 85895 invoked by alias); 4 Oct 2017 21:00: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 85624 invoked by uid 48); 4 Oct 2017 21:00:02 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: =?UTF-8?B?W0J1ZyBjKysvNzgxMzFdIEluY29uc2lzdGVudCBldmFsdWF0aW9uIGZvciBg?= =?UTF-8?B?Y29uc3RleHByYCBsYW1iZGFzIGluIHRlbXBsYXRlcyBiZXR3ZWVuIGBzdGF0?= =?UTF-8?B?aWNfYXNzZXJ0YCwgYGlmIGNvbnN0ZXhwcijigKYpYCBhbmQgYGNvbnN0ZXhw?= =?UTF-8?B?cmAgdmFyaWFibGVz?Date: Wed, 04 Oct 2017 21:00:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution target_milestone
Message-ID: <bug-78131-4-FsSYegXj8U@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78131-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78131-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00488.txt.bz2
Content-length: 499

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78131

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |8.0

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Fixed in trunk.
>From gcc-bugs-return-577429-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 21:02:19 2017
Return-Path: <gcc-bugs-return-577429-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 100443 invoked by alias); 4 Oct 2017 21:02:19 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 98725 invoked by uid 48); 4 Oct 2017 21:02:15 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/82393] Compilation error on cygwin64
Date: Wed, 04 Oct 2017 21:02:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: ada
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: build
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ebotcazou at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ebotcazou at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to
Message-ID: <bug-82393-4-3Z8rMXXQz0@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82393-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82393-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00489.txt.bz2
Content-length: 464

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82393

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |ebotcazou at gcc dot gnu.org

--- Comment #8 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Fixing.
>From gcc-bugs-return-577430-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 21:06:57 2017
Return-Path: <gcc-bugs-return-577430-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 95374 invoked by alias); 4 Oct 2017 21:06: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 91502 invoked by uid 48); 4 Oct 2017 21:06:53 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/82393] Compilation error on cygwin64
Date: Wed, 04 Oct 2017 21:06:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: ada
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: build
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ebotcazou at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ebotcazou at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82393-4-fUfg3WBHUr@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82393-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82393-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00490.txt.bz2
Content-length: 388

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82393

--- Comment #9 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> Trace of check ada runtests

You can do 'make mail-report.log' after 'make -k check' to have a report.

The results are acceptable although gnat.dg/entry_queues.adb and c380004, which
probably come from the same underlying issue, would need to be investigated.
>From gcc-bugs-return-577431-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 21:08:18 2017
Return-Path: <gcc-bugs-return-577431-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 35420 invoked by alias); 4 Oct 2017 21:08:18 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 25855 invoked by uid 48); 4 Oct 2017 21:08:11 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/82393] Compilation error on cygwin64
Date: Wed, 04 Oct 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: ada
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: build
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ebotcazou at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ebotcazou at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82393-4-qH4LAuhnQY@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82393-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82393-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00491.txt.bz2
Content-length: 281

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82393

--- Comment #10 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> PS : Do you know we certainly live separated by 3,5 km at Toulouse City ?
> I live at 35, rue Edmond Rostand 31200 ... :-)

OK, this is a small world. :-)
>From gcc-bugs-return-577432-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 21:25:56 2017
Return-Path: <gcc-bugs-return-577432-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 59840 invoked by alias); 4 Oct 2017 21:25:56 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 57908 invoked by uid 55); 4 Oct 2017 21:25:52 -0000
From: "paolo at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/80471] (gcc extension) Forwarding-reference `auto` function parameters do not follow the same rules as template functions or generic lambdas
Date: Wed, 04 Oct 2017 21:25:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-80471-4-yjahc2KFK7@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80471-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80471-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00492.txt.bz2
Content-length: 484

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80471

--- Comment #1 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Wed Oct  4 21:25:20 2017
New Revision: 253432

URL: https://gcc.gnu.org/viewcvs?rev=253432&root=gcc&view=rev
Log:
2017-10-04  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/80471
        * g++.dg/cpp1y/pr80471.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1y/pr80471.C
Modified:
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-577433-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 21:26:41 2017
Return-Path: <gcc-bugs-return-577433-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 104959 invoked by alias); 4 Oct 2017 21:26: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 99590 invoked by uid 48); 4 Oct 2017 21:26:37 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/80471] (gcc extension) Forwarding-reference `auto` function parameters do not follow the same rules as template functions or generic lambdas
Date: Wed, 04 Oct 2017 21:26:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution target_milestone
Message-ID: <bug-80471-4-OhQvd0jaKi@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80471-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80471-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00493.txt.bz2
Content-length: 519

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80471

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |7.0

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Works fine with the released 7.1.0.
>From gcc-bugs-return-577434-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 23:41:55 2017
Return-Path: <gcc-bugs-return-577434-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 58278 invoked by alias); 4 Oct 2017 23:41: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 55630 invoked by uid 48); 4 Oct 2017 23:41:50 -0000
From: "kees at outflux dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82411] const is not always read-only
Date: Wed, 04 Oct 2017 23: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: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: kees at outflux 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-82411-4-WmYPcrTvuu@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82411-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82411-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00494.txt.bz2
Content-length: 303

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82411

--- Comment #3 from Kees Cook <kees at outflux dot net> ---
To clarify, using -mno-sdata means all things are removed from sdata, not just
const, yes? I'd like to be able to leave writable stuff there, to avoid any
additional performance penalty.
>From gcc-bugs-return-577435-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 23:49:53 2017
Return-Path: <gcc-bugs-return-577435-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 58403 invoked by alias); 4 Oct 2017 23:49:53 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 58371 invoked by uid 48); 4 Oct 2017 23:49:49 -0000
From: "peter at cordes dot ca" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82432] New: Missed constant propagation of return values of non-inlined static functions
Date: Wed, 04 Oct 2017 23: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: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: peter at cordes dot ca
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-82432-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00495.txt.bz2
Content-length: 3530

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82432

            Bug ID: 82432
           Summary: Missed constant propagation of return values of
                    non-inlined static functions
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: peter at cordes dot ca
  Target Milestone: ---

static __attribute((noinline)) 
  int get_constant() { /* optionally stuff with side effects */
                       return 42; }
        movl    $42, %eax
        ret

// Consider the case where this is large enough to not inline (even without an
attribute), but still returns a constant.  e.g. a success/fail status that we
can prove is always success, or just the current implementation always returns
success but the callers still check.

int call_constant() { return 10 - get_constant(); }

        call    get_constant()
        movl    $10, %edx
        subl    %eax, %edx
        movl    %edx, %eax
        ret

Even though the function didn't inline so we still have to call it, its return
value is a compile-time constant.  

   call  get_constant
   mov $(10-42), %eax
   ret

would be a better way to compile this.  It potentially breaks a data dependency
chain, and saves instructions.  And enables further constprop if the caller
isn't trivial and does more with the return value.

For return values passed by hidden pointer, it avoids store-forwarding latency.
 If we want the value in memory, we can use the copy the callee put there.  If
we made a .clone version that uses a custom calling convention, we could have
the callee skip storing the return value if it's constant for all callers. 
(Hmm, checking this could cost a lot of compile time, especially with LTO.  The
simpler version is to only optimize it away for small objects that are really
constant, not just from constant propagation from one caller's args.)


One useful case is returning a std::optional<>.  Even if the .value() is
unknown, it might be known that there *is* a value, so the caller doesn't have
to check the `bool` member.

libstdc++'s optional<T> is not trivially-copyable even if T is, so it returns
via hidden pointer for optional<int>.  (libc++ does implement it that way, so
it returns packed into a register in x86-64, but clang also still checks the
return value when it doesn't inline.
https://stackoverflow.com/a/46546636/224132)

int baz() {
    return 1 + get_std_optional_int().value();
}
        subq    $24, %rsp
        leaq    8(%rsp), %rdi
        call    get_std_optional_int()
        cmpb    $0, 12(%rsp)
        je      .L98
        movl    8(%rsp), %eax
        addq    $24, %rsp
        addl    $1, %eax
        ret
baz() [clone .cold.49]:
.L98:
        call    abort

This obviously simplifies the call site some if we don't have to check the
return value.

But we still have to provide storage space unless we make a
nonstandard-calling-convention clone of get_std_optional_int() which ideally
returns in %eax and %edx.  (Returning small objects packed less tightly into
multiple registers would probably be a win in general for non-constant return
values, if we want to start cloning static functions and discarding the
ABI-compliant definition.  Or with LTO or whole-program, as this post argues:
https://stackoverflow.com/a/46549978/224132)
>From gcc-bugs-return-577436-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 04 23:55:17 2017
Return-Path: <gcc-bugs-return-577436-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 61417 invoked by alias); 4 Oct 2017 23:55: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 61395 invoked by uid 48); 4 Oct 2017 23:55:12 -0000
From: "peter at cordes dot ca" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82432] Missed constant propagation of return values of non-inlined static functions
Date: Wed, 04 Oct 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: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: peter at cordes dot ca
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82432-4-GzGLX6s2lE@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82432-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82432-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00496.txt.bz2
Content-length: 638

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82432

--- Comment #1 from Peter Cordes <peter at cordes dot ca> ---
Meant to add https://godbolt.org/g/K9CxQ6 before submitting.  And to say I
wasn't sure tree-optimization was the right component.

I did check that -flto didn't do this optimization either.

Is it worth opening a separate bug for making .clone versions of functions with
a more convenient calling convention?  Obviously that can gain performance, but
can make debugging harder.  https://stackoverflow.com/a/46549978/224132 is
right that compilers *could* do this, but there are probably good reasons why
they don't.
>From gcc-bugs-return-577437-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 00:01:20 2017
Return-Path: <gcc-bugs-return-577437-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 81687 invoked by alias); 5 Oct 2017 00: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 81361 invoked by uid 48); 5 Oct 2017 00:01:04 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ipa/81323] IPA-VRP doesn't handle return values
Date: Thu, 05 Oct 2017 00:01:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: ipa
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: pinskia at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_severity
Message-ID: <bug-81323-4-M3txDfWrXr@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81323-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81323-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00497.txt.bz2
Content-length: 300

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81323

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement
>From gcc-bugs-return-577438-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 00:02:51 2017
Return-Path: <gcc-bugs-return-577438-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 87403 invoked by alias); 5 Oct 2017 00:02: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 83684 invoked by uid 48); 5 Oct 2017 00:02:45 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82432] Missed constant propagation of return values of non-inlined static functions
Date: Thu, 05 Oct 2017 00:02:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
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: bug_severity
Message-ID: <bug-82432-4-E0mrhMlEiw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82432-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82432-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00498.txt.bz2
Content-length: 495

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82432

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I think the get_constant issue is a dup of bug 81323.  But the rest is harder
due to it being a struct rather than a scalar.
>From gcc-bugs-return-577439-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 00:46:43 2017
Return-Path: <gcc-bugs-return-577439-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 69334 invoked by alias); 5 Oct 2017 00:46: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 69256 invoked by uid 48); 5 Oct 2017 00:46:39 -0000
From: "segher at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82411] const is not always read-only
Date: Thu, 05 Oct 2017 00: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: unknown
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: cf_gcctarget
Message-ID: <bug-82411-4-RGGeWAIynb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82411-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82411-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00499.txt.bz2
Content-length: 494

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82411

Segher Boessenkool <segher at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|Powerpc*-*-*                |powerpc*-*-*

--- Comment #4 from Segher Boessenkool <segher at gcc dot gnu.org> ---
That what it means yes.  You can use it as a workaround.

There is no option yet to put only writable data in sdata.
>From gcc-bugs-return-577440-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 01:50:02 2017
Return-Path: <gcc-bugs-return-577440-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 78825 invoked by alias); 5 Oct 2017 01:50: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 77748 invoked by uid 48); 5 Oct 2017 01:49:58 -0000
From: "peter.bohning at gmx dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82408] cross-compiling for arm64 problems
Date: Thu, 05 Oct 2017 01: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:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: peter.bohning at gmx 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-82408-4-IihvNONVlD@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82408-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82408-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00500.txt.bz2
Content-length: 604

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82408

--- Comment #13 from Peter Bohning <peter.bohning at gmx dot com> ---
Okay, amazingly I have a computer again.  I tried what you suggested and it
didn't work.  I need a libstdc++ library for aarch.  Like I said several times,
I already have the linaro toolchain, what I want is the host and target aarch
libraries.

So again, I'm in the exact same situation...  I will try to just copy the
linaro stdc++ library and hope it works but I really should be able to compile
it using the linaro toolchain, which again comes back to these C++ errors.
>From gcc-bugs-return-577441-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 04:16:34 2017
Return-Path: <gcc-bugs-return-577441-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 57580 invoked by alias); 5 Oct 2017 04: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 54851 invoked by uid 48); 5 Oct 2017 04:16:30 -0000
From: "pkg at 1tein dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/80865] broken compilation on Mac OS X 10.5 / powerpc: unrecognizable insn
Date: Thu, 05 Oct 2017 04: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.1.0
X-Bugzilla-Keywords: build
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pkg at 1tein dot de
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-80865-4-n72LzgLppK@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80865-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80865-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00501.txt.bz2
Content-length: 320

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80865

--- Comment #6 from Christian Cornelssen <pkg at 1tein dot de> ---
Created attachment 42304
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42304&action=edit
Patchset 2 from patch-darwin-ppc-2017-01-msg02971.diff, sufficient for non-Ada
builds to succeed
>From gcc-bugs-return-577442-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 04:30:37 2017
Return-Path: <gcc-bugs-return-577442-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 115268 invoked by alias); 5 Oct 2017 04:30: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 114920 invoked by uid 48); 5 Oct 2017 04:30:05 -0000
From: "pkg at 1tein dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/80865] broken compilation on Mac OS X 10.5 / powerpc: unrecognizable insn
Date: Thu, 05 Oct 2017 04:30:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords: build
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pkg at 1tein dot de
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-80865-4-jrgxalZcsc@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80865-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80865-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00502.txt.bz2
Content-length: 1222

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80865

--- Comment #7 from Christian Cornelssen <pkg at 1tein dot de> ---
I have made the time-consuming effort of building and testing gcc-7.2.0 with
varying subsets of the four patchsets proposed with attachment 42124.

* Patchset 1/4 copies stack alignment changes previously applied to aix.h.
  This seems to cause 15 additional testsuite failures
  involving gcc/testsuite/gcc.dg/builtin-apply4.c and
  gcc/testsuite/gcc.dg/torture/stackalign/builtin-apply-4.c.
  The failures are related to the builtins around __builtin_apply
  as defined in gcc/builtins.c.
  I'd leave that patchset out.
* Patchset 2/4 turns out to be necessary and sufficient for the non-Ada
  build to succeed. If you want a minimal patchset, stick to that one.
  Given as attachment 42304 now.
* Patchset 3/4 seems reasonable (marking longjmp noreturn),
  but does not contribute changes to the test summary.
* Patchset 4/4 looks reasonable (selecting Darwin thread headers),
  but is Ada-related, thus irrelevant for non-Ada builds.

Attaching the gcc7 testsuite log diff showing the removal of
alignment test failures when only patchset 2 (attachment 42304 instead of
attachment 42124) is used.
>From gcc-bugs-return-577443-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 04:34:00 2017
Return-Path: <gcc-bugs-return-577443-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 127468 invoked by alias); 5 Oct 2017 04:34:00 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 127379 invoked by uid 48); 5 Oct 2017 04:33:57 -0000
From: "pkg at 1tein dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/80865] broken compilation on Mac OS X 10.5 / powerpc: unrecognizable insn
Date: Thu, 05 Oct 2017 04:34:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords: build
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pkg at 1tein dot de
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-80865-4-iq2e1GFnVN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80865-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80865-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00503.txt.bz2
Content-length: 321

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80865

--- Comment #8 from Christian Cornelssen <pkg at 1tein dot de> ---
Created attachment 42305
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42305&action=edit
differences in non-Ada testsuite results when switching from attachment 42124
to attachment 42304
>From gcc-bugs-return-577444-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 06:48:49 2017
Return-Path: <gcc-bugs-return-577444-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 81877 invoked by alias); 5 Oct 2017 06:48: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 78456 invoked by uid 48); 5 Oct 2017 06:48:43 -0000
From: "iains at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/80865] broken compilation on Mac OS X 10.5 / powerpc: unrecognizable insn
Date: Thu, 05 Oct 2017 06:48:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords: build
X-Bugzilla-Severity: normal
X-Bugzilla-Who: iains at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-80865-4-vkvR8mjzbf@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80865-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80865-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00504.txt.bz2
Content-length: 2292

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80865

--- Comment #9 from Iain Sandoe <iains at gcc dot gnu.org> ---
(In reply to Christian Cornelssen from comment #7)
> I have made the time-consuming effort of building and testing gcc-7.2.0 with
> varying subsets of the four patchsets proposed with attachment 42124
> [details].

Thanks for doing this!

I have building work going on here (to repair water damage to my office) and
temporarily had to relocate - at present, I don't have access to my PPC Darwin
machines.  Hopefully, the works will complete in a month or so, and i'll be
back to normal (please be patient - but I don't believe another 7.x release is
scheduled in that time).

Note that the patches solve individual problems, it would be reasonable to
apply them independently.

> * Patchset 1/4 copies stack alignment changes previously applied to aix.h.
>   This seems to cause 15 additional testsuite failures
>   involving gcc/testsuite/gcc.dg/builtin-apply4.c and
>   gcc/testsuite/gcc.dg/torture/stackalign/builtin-apply-4.c.
>   The failures are related to the builtins around __builtin_apply
>   as defined in gcc/builtins.c.
>   I'd leave that patchset out.

The patch was originally required to allow bootstrap to complete, so clearly
some intervening change has made that unnecessary - but I'd like to identify
what (and if there are other implications).

> * Patchset 2/4 turns out to be necessary and sufficient for the non-Ada
>   build to succeed. If you want a minimal patchset, stick to that one.
>   Given as attachment 42304 [details] now.
> * Patchset 3/4 seems reasonable (marking longjmp noreturn),
>   but does not contribute changes to the test summary.

Are you building Fortran?
IIRC, that patch was required for Fortran bootstrap to complete.

> * Patchset 4/4 looks reasonable (selecting Darwin thread headers),
>   but is Ada-related, thus irrelevant for non-Ada builds.

Well, generally I build for all the supported languages including Ada, Fortran
(and Java where supported) so generally I will keep patches to allow all of
those to succeed.

> 
> Attaching the gcc7 testsuite log diff showing the removal of
> alignment test failures when only patchset 2 (attachment 42304 [details]
> instead of attachment 42124 [details]) is used.
>From gcc-bugs-return-577445-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 07:26:40 2017
Return-Path: <gcc-bugs-return-577445-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 19634 invoked by alias); 5 Oct 2017 07:26: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 19589 invoked by uid 48); 5 Oct 2017 07:26:35 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82406] [7 Regression] Rejects a valid snippet
Date: Thu, 05 Oct 2017 07:26:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.2.1
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82406-4-T0c6A5Opgl@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82406-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82406-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00505.txt.bz2
Content-length: 220

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82406

--- Comment #4 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to Jason Merrill from comment #3)
> Backported the fix.

Thanks Jason, that was fast.
>From gcc-bugs-return-577446-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 07:34:41 2017
Return-Path: <gcc-bugs-return-577446-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 127106 invoked by alias); 5 Oct 2017 07: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 120275 invoked by uid 48); 5 Oct 2017 07:34:36 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82431] [8 Regression] Rejects 416.gamess
Date: Thu, 05 Oct 2017 07:34:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: INVALID
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-82431-4-CZwjathHJY@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82431-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82431-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00506.txt.bz2
Content-length: 792

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82431

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|---                         |INVALID

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to Thomas Koenig from comment #1)
> This was an intentional change introduced by
> 
> https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=253286
> 
> -std=legacy
> 
> should allow compilation.

It does - thanks for the hint.

> If that works, we can then discuss if we close this bug
> as WONTFIX or as INVALID :-)

Clearly INVALID I guess ;)
>From gcc-bugs-return-577447-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 08:01:32 2017
Return-Path: <gcc-bugs-return-577447-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 107145 invoked by alias); 5 Oct 2017 08:01: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 107020 invoked by uid 48); 5 Oct 2017 08:01:24 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ipa/82432] Missed constant propagation of return values of non-inlined static functions
Date: Thu, 05 Oct 2017 08:01:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: ipa
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 component everconfirmed
Message-ID: <bug-82432-4-SGLrE1KcVQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82432-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82432-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00507.txt.bz2
Content-length: 984

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82432

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-10-05
                 CC|                            |hubicka at gcc dot gnu.org
          Component|tree-optimization           |ipa
     Ever confirmed|0                           |1

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
I think there's more general dup PR about the IPA propagation machinery not
having "return functions".  That is, we can't propagate through function
returns.

For constant propagation this would be IPA-CP.

You could say partial inlining aka function-splitting might solve this as well
(in case it's so obvious) by not outlining the tail but the head of the
function.

Confirmed.
>From gcc-bugs-return-577448-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 08:07:18 2017
Return-Path: <gcc-bugs-return-577448-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 15289 invoked by alias); 5 Oct 2017 08:07: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 15252 invoked by uid 48); 5 Oct 2017 08:07:14 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/82412] [8 regression] gfortran.dg/graphite/pr42334-1.f fails starting with r253342
Date: Thu, 05 Oct 2017 08:07:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: testsuite
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 everconfirmed
Message-ID: <bug-82412-4-uLacw4f29g@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82412-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82412-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00508.txt.bz2
Content-length: 749

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82412

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2017-10-05
           Assignee|unassigned at gcc dot gnu.org      |rguenth at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Ok, I see the loop being tiled (stupidly tho...), your dump doesn't have that.

I have a patch that resolves the codegen error so lets just wait for that to
land and the fail will go.
>From gcc-bugs-return-577450-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 08:42:25 2017
Return-Path: <gcc-bugs-return-577450-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 113882 invoked by alias); 5 Oct 2017 08: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 113798 invoked by uid 48); 5 Oct 2017 08:42:20 -0000
From: "ramana 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: Thu, 05 Oct 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: 7.1.1
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ramana at gcc dot gnu.org
X-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-81863-4-RhBg7B72v6@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-10/txt/msg00510.txt.bz2
Content-length: 637

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81863

--- Comment #18 from Ramana Radhakrishnan <ramana at gcc dot gnu.org> ---
> 
> > That certainly appears to be a better approach prima-facie and a quick
> > experiment with a 
> > 
> > 
> > if (target_word_relocations)
> >   return false;
> > 
> > in arm_valid_symbolic_address () appears to deal with the issue. 
> 
> I think I tried that in first place, and it didn't fix one of the testcases,
> but maybe I used a wrong build tree, I'll re-test that.


I've tried it now and it appears to work for both the testcases. I'll post a
patch once testing finishes today.
>From gcc-bugs-return-577451-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 08:42:45 2017
Return-Path: <gcc-bugs-return-577451-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 13372 invoked by alias); 5 Oct 2017 08: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 4920 invoked by uid 48); 5 Oct 2017 08:42:41 -0000
From: "ramana 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: Thu, 05 Oct 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: 7.1.1
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ramana at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ramana at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to
Message-ID: <bug-81863-4-tjQpRLK263@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-10/txt/msg00511.txt.bz2
Content-length: 387

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81863

Ramana Radhakrishnan <ramana at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |ramana at gcc dot gnu.org
>From gcc-bugs-return-577449-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 08:42:07 2017
Return-Path: <gcc-bugs-return-577449-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 113042 invoked by alias); 5 Oct 2017 08:42: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 112981 invoked by uid 48); 5 Oct 2017 08:42:02 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82433] New: IPA-VRP not handling tcc_binary with constant argument
Date: Thu, 05 Oct 2017 08:42: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: jakub at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-82433-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00509.txt.bz2
Content-length: 1031

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82433

            Bug ID: 82433
           Summary: IPA-VRP not handling tcc_binary with constant argument
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jakub at gcc dot gnu.org
  Target Milestone: ---

On -O2 -fdump-{tree,ipa}-all-alias -fno-inline:

volatile int z, w;

static int
foo (int x, int y)
{
  z = x + 1;
  w = y + 1;
  return x + y;
}

static int
bar (int x, int y)
{
  return foo (x + 1, y + 1) + 1;
}

int
baz (int x, int y)
{
  return bar (x & 4095, y & 4095) + bar (x & 255, y & 255);
}

IPA-CP seems to figure out that foo's arguments have non-zero bits 8191, but
doesn't figure out their range is [1, 4096].  Seems we only handle tcc_unary,
not tcc_binary with constant argument for IPA-VRP, but somehow do handle it for 
the alignment/nonzero-bits propagation.
>From gcc-bugs-return-577452-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 09:11:56 2017
Return-Path: <gcc-bugs-return-577452-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 12229 invoked by alias); 5 Oct 2017 09:11:56 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 12137 invoked by uid 48); 5 Oct 2017 09:11:51 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/71546] lambda capture fails with "was not declared in this scope"
Date: Thu, 05 Oct 2017 09:11:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on blocked everconfirmed
Message-ID: <bug-71546-4-JgpZjdXvCw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-71546-4@http.gcc.gnu.org/bugzilla/>
References: <bug-71546-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00512.txt.bz2
Content-length: 578

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71546

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-10-05
             Blocks|                            |54367
     Ever confirmed|0                           |1


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54367
[Bug 54367] [meta-bug] lambda expressions
>From gcc-bugs-return-577453-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 09:17:08 2017
Return-Path: <gcc-bugs-return-577453-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 57747 invoked by alias); 5 Oct 2017 09:17:07 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 57687 invoked by uid 48); 5 Oct 2017 09:17:04 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: =?UTF-8?B?W0J1ZyBjKysvODIwMjJdIGNvbnN0ZXhwciBsYW1iZGEgaW4gdGVtcGxhdGUg?= =?UTF-8?B?Y29udGV4dDogZXhwcmVzc2lvbiDigJg8bGFtYmRhPuKAmSBpcyBub3QgYSBj?= =?UTF-8?B?b25zdGFudCBleHByZXNzaW9u?Date: Thu, 05 Oct 2017 09:17:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-82022-4-QM5r2jL2DF@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82022-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82022-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00513.txt.bz2
Content-length: 408

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82022

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-10-05
     Ever confirmed|0                           |1
>From gcc-bugs-return-577454-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 09:21:44 2017
Return-Path: <gcc-bugs-return-577454-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 127995 invoked by alias); 5 Oct 2017 09:21: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 122538 invoked by uid 48); 5 Oct 2017 09:21:41 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81700] Unresolved function type when taking address of operator() of generic lambda
Date: Thu, 05 Oct 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: c++
X-Bugzilla-Version: 7.1.1
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc blocked everconfirmed
Message-ID: <bug-81700-4-hpsfKxWYTf@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81700-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81700-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00514.txt.bz2
Content-length: 635

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81700

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-10-05
                 CC|gufideg at gmail dot com           |
             Blocks|                            |54367
     Ever confirmed|0                           |1


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54367
[Bug 54367] [meta-bug] lambda expressions
>From gcc-bugs-return-577456-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 09:23:34 2017
Return-Path: <gcc-bugs-return-577456-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 54245 invoked by alias); 5 Oct 2017 09:23: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 53883 invoked by uid 48); 5 Oct 2017 09:23:30 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/80873] ICE in tsubst_copy when trying to use an overloaded function without a definition in a lambda
Date: Thu, 05 Oct 2017 09:23:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.1.1
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on blocked everconfirmed
Message-ID: <bug-80873-4-H6uh5IRma9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80873-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80873-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00516.txt.bz2
Content-length: 578

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80873

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-10-05
             Blocks|                            |54367
     Ever confirmed|0                           |1


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54367
[Bug 54367] [meta-bug] lambda expressions
>From gcc-bugs-return-577455-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 09:23:13 2017
Return-Path: <gcc-bugs-return-577455-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 49103 invoked by alias); 5 Oct 2017 09:23: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 49048 invoked by uid 48); 5 Oct 2017 09:23:09 -0000
From: "maxim.yegorushkin at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82434] New: -fstore-merging does not work reliably.
Date: Thu, 05 Oct 2017 09:23:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: maxim.yegorushkin 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-82434-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00515.txt.bz2
Content-length: 1425

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82434

            Bug ID: 82434
           Summary: -fstore-merging does not work reliably.
           Product: gcc
           Version: 7.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: maxim.yegorushkin at gmail dot com
  Target Milestone: ---

Consider the following code:

    struct A
    {
        long a;
        bool b, c, d, e;
    };

    struct B
    {
        long a;
        bool b, c, d, e;
        ~B();
    };

    A f() {
        A a;
        a.a = 1;
        a.b = true;
        a.c = true;
        a.d = true;
        a.e = true;
        return a;
    }

    B g() {
        B b;
        b.a = 1;
        b.b = true;
        b.c = true;
        b.d = true;
        b.e = true;
        return b;
    }

And the generated assembly:

    f():
            movl    $1, %eax
            movl    $16843009, %edx
            ret
    g():
            movq    %rdi, %rax
            movq    $1, (%rdi)
            movb    $1, 8(%rdi)
            movb    $1, 9(%rdi)
            movb    $1, 10(%rdi)
            movb    $1, 11(%rdi)
            ret

Declaring a destructor prevents returning an object of B in registers, which is
well documented.

Why isn't store merging applied in function g please?
>From gcc-bugs-return-577457-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 09:25:54 2017
Return-Path: <gcc-bugs-return-577457-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 58764 invoked by alias); 5 Oct 2017 09:25:54 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 58716 invoked by uid 48); 5 Oct 2017 09:25:51 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/80488] Erroneous error "lambda-expression in template argument"
Date: Thu, 05 Oct 2017 09:25:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on blocked everconfirmed
Message-ID: <bug-80488-4-1I4YYK15ig@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80488-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80488-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00517.txt.bz2
Content-length: 578

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80488

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-10-05
             Blocks|                            |54367
     Ever confirmed|0                           |1


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54367
[Bug 54367] [meta-bug] lambda expressions
>From gcc-bugs-return-577458-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 09:35:39 2017
Return-Path: <gcc-bugs-return-577458-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 35131 invoked by alias); 5 Oct 2017 09:35: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 27030 invoked by uid 48); 5 Oct 2017 09:35:35 -0000
From: "didu31 at hotmail dot fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/82393] Compilation error on cygwin64
Date: Thu, 05 Oct 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: ada
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: build
X-Bugzilla-Severity: normal
X-Bugzilla-Who: didu31 at hotmail dot fr
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ebotcazou at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-82393-4-lXIg2bxHrf@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82393-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82393-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00518.txt.bz2
Content-length: 280

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82393

--- Comment #11 from Didier G <didu31 at hotmail dot fr> ---
Created attachment 42306
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42306&action=edit
mail-report.log

log of make -k check-ada ; make mail-report.log
>From gcc-bugs-return-577459-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 09:37:06 2017
Return-Path: <gcc-bugs-return-577459-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 53198 invoked by alias); 5 Oct 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 43322 invoked by uid 48); 5 Oct 2017 09:37:01 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/80439] __attribute__((target("xxx"))) not applied to lambdas
Date: Thu, 05 Oct 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.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle 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-80439-4-n8sN2CBDMN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80439-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80439-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00519.txt.bz2
Content-length: 650

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80439

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rguenth at gcc dot gnu.org

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Richard, can you actually reproduce this? I can't with the released 7.1.0
(given the error message I doubt submitter was actually using a 7 pre). Neither
I can reproduce it with 6.3.0, anyway. I'm passing, as requested, -m32 -msse4.1
(or -m32 -msse4.2)
>From gcc-bugs-return-577460-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 09:40:08 2017
Return-Path: <gcc-bugs-return-577460-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 70050 invoked by alias); 5 Oct 2017 09:40: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 69950 invoked by uid 48); 5 Oct 2017 09:40:04 -0000
From: "dcb314 at hotmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82360] [8 Regression]  tree check fail in get_inner_reference, at expr.c:6996
Date: Thu, 05 Oct 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: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dcb314 at hotmail dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82360-4-4gCnciOxUN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82360-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82360-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00520.txt.bz2
Content-length: 717

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82360

--- Comment #4 from David Binderman <dcb314 at hotmail dot com> ---
Possibly in the same area, I just tried a valgrind build of trunk gcc and
got this:

==4967== Invalid read of size 8
==4967==    at 0xD87FD8: component_ref_field_offset(tree_node*) (tree.c:12600)
==4967==    by 0x9786EB: get_inner_reference(tree_node*, long*, long*,
tree_node**, machine_mode*, int*, int*, int*) (expr.c:7059)
==4967==    by 0x9A9C6E: fold_unary_loc(unsigned int, tree_code, tree_node*,
tree_node*) (fold-const.c:7724)
==4967==    by 0x9AA0D9: fold_build1_loc(unsigned int, tree_code, tree_node*,
tree_node*) (fold-const.c:12226)
>From gcc-bugs-return-577461-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 09:40:37 2017
Return-Path: <gcc-bugs-return-577461-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 75098 invoked by alias); 5 Oct 2017 09: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 75033 invoked by uid 48); 5 Oct 2017 09:40:32 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/80439] __attribute__((target("xxx"))) not applied to lambdas
Date: Thu, 05 Oct 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: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-80439-4-T0SjlOR3h5@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80439-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80439-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00521.txt.bz2
Content-length: 593

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80439

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-10-05
     Ever confirmed|0                           |1

--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Ah, ok, now I get it, the issue is that it should be accepted without, say,
-m32 -msse4.1, on the command line.
>From gcc-bugs-return-577462-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 09:43:53 2017
Return-Path: <gcc-bugs-return-577462-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 91086 invoked by alias); 5 Oct 2017 09:43:53 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 91044 invoked by uid 48); 5 Oct 2017 09:43:49 -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, 05 Oct 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.1.1
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ard.biesheuvel at linaro dot org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ramana at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81863-4-xHggGaJiup@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-10/txt/msg00522.txt.bz2
Content-length: 946

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81863

--- Comment #19 from ard.biesheuvel at linaro dot org ---
(In reply to Ramana Radhakrishnan from comment #17)
> 
> Could you put some instructions in this BZ about how you build and test the
> kernel to get these errors ? I'm happy to try something before I post the
> patch rather than going backwards and forwards.

Please use the following branch

https://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git/log/?h=arm-kaslr-word-relocs

and build the multi_v7_defconfig target

export ARCH=arm
export CROSS_COMPILE=arm-linux-gnueabihf-

make multi_v7_defconfig
make zImage

(Sidenote: in this case, we apply -mword-relocations to modules as well, which
is not really necessary given that Linux kernel modules are simply partially
linked objects, and the exposed static relocations are handled by the modules
loader, including R_ARM_THM_MOVT_ABS/R_ARM_THM_MOVW_ABS_NC.)
>From gcc-bugs-return-577463-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 09:45:42 2017
Return-Path: <gcc-bugs-return-577463-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 95140 invoked by alias); 5 Oct 2017 09:45: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 95091 invoked by uid 48); 5 Oct 2017 09:45:38 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/80439] __attribute__((target("xxx"))) not applied to lambdas
Date: Thu, 05 Oct 2017 09:45:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-80439-4-PdDoLKmtCE@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80439-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80439-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00523.txt.bz2
Content-length: 1921

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80439

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed.

> g++-7 t.C -S
In file included from
/usr/lib64/gcc/x86_64-suse-linux/7/include/immintrin.h:37:0,
                 from t.C:1:
t.C: In lambda function:
t.C:9:19: error: ‘__builtin_ia32_vec_set_v4si’ needs isa option -m32 -msse4.1
       __m128i m = _mm_insert_epi32(_mm_setzero_si128(), data, 1);
                   ^

> g++-7 t.C -S -O
In file included from
/usr/lib64/gcc/x86_64-suse-linux/7/include/immintrin.h:37:0,
                 from t.C:1:
/usr/lib64/gcc/x86_64-suse-linux/7/include/smmintrin.h: In lambda function:
/usr/lib64/gcc/x86_64-suse-linux/7/include/smmintrin.h:447:1: error: inlining
failed in call to always_inline ‘int _mm_extract_epi32(__m128i, int)’: target
specific option mismatch
 _mm_extract_epi32 (__m128i __X, const int __N)
 ^~~~~~~~~~~~~~~~~
t.C:10:36: note: called from here
       return _mm_extract_epi32(m, 1);
                                    ^
In file included from
/usr/lib64/gcc/x86_64-suse-linux/7/include/immintrin.h:37:0,
                 from t.C:1:
/usr/lib64/gcc/x86_64-suse-linux/7/include/smmintrin.h:406:1: error: inlining
failed in call to always_inline ‘__m128i _mm_insert_epi32(__m128i, int, int)’:
target specific option mismatch
...


This is with 7.2.1 (rev. 253227) but 7.1.0 and 7.2.0 are affected the same,
so is 6.4.0.  GCC 5 rejects the testcase on unknown C++ grounds.

The key is to _not_ pass -msse4.2 -- it shouldn't be necessary given the
target attribute and as the following testcase dropping the lambda shows:

#include <immintrin.h>
#include <stdint.h>

__attribute__((target("sse4.2")))
unsigned aeshash(const uint8_t *p, size_t len, unsigned seed)
{
    __m128i m = _mm_insert_epi32(_mm_setzero_si128(), seed, 1);
    return _mm_extract_epi32(m, 1);
}
>From gcc-bugs-return-577464-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 09:46:50 2017
Return-Path: <gcc-bugs-return-577464-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 96341 invoked by alias); 5 Oct 2017 09:46:50 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 96282 invoked by uid 48); 5 Oct 2017 09:46:46 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79021] attribute noreturn on function template ignored in generic lambda
Date: Thu, 05 Oct 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: 6.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on blocked everconfirmed
Message-ID: <bug-79021-4-QDeC7063Wn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79021-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79021-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00524.txt.bz2
Content-length: 578

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79021

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-10-05
             Blocks|                            |54367
     Ever confirmed|0                           |1


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54367
[Bug 54367] [meta-bug] lambda expressions
>From gcc-bugs-return-577465-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 09:50:30 2017
Return-Path: <gcc-bugs-return-577465-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 111219 invoked by alias); 5 Oct 2017 09: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 104682 invoked by uid 48); 5 Oct 2017 09:50:25 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82434] -fstore-merging does not work reliably.
Date: Thu, 05 Oct 2017 09:50:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-82434-4-Sky608Zg4a@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82434-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82434-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00525.txt.bz2
Content-length: 734

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82434

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
B needs to be returned by invisible reference, so f actually is seen by the
store merging pass as
struct A
{
  long a;
  bool b, c, d, e;
};

void f(A *p) {
  p->a = 1;
  p->b = true;
  p->c = true;
  p->d = true;
  p->e = true;
}

which we don't merge either.  Though, I don't see why we couldn't merge these
either.  Let me have a quick look.
>From gcc-bugs-return-577467-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 09:59:02 2017
Return-Path: <gcc-bugs-return-577467-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 69955 invoked by alias); 5 Oct 2017 09:59: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 69738 invoked by uid 48); 5 Oct 2017 09:58:58 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/67273] Incorrect -Wshadow warning with generic lambdas
Date: Thu, 05 Oct 2017 09:59:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: minor
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: nathan at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-67273-4-edOPt9FEx3@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67273-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67273-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00527.txt.bz2
Content-length: 448

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67273

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |daiw at gmx dot net

--- Comment #6 from Paolo Carlini <paolo.carlini at oracle dot com> ---
*** Bug 78850 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-577468-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 09:59:02 2017
Return-Path: <gcc-bugs-return-577468-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 70059 invoked by alias); 5 Oct 2017 09:59: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 69779 invoked by uid 48); 5 Oct 2017 09:58:58 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/54367] [meta-bug] lambda expressions
Date: Thu, 05 Oct 2017 09:59:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: dep_changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.8.0
X-Bugzilla-Keywords: meta-bug
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-54367-4-zRkZ0TfJtZ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-54367-4@http.gcc.gnu.org/bugzilla/>
References: <bug-54367-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00528.txt.bz2
Content-length: 513

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54367
Bug 54367 depends on bug 78850, which changed state.

Bug 78850 Summary: Parameter of returned generic lambda allegedly shadows parameter of free function
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78850

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |DUPLICATE
>From gcc-bugs-return-577466-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 09:59:01 2017
Return-Path: <gcc-bugs-return-577466-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 69876 invoked by alias); 5 Oct 2017 09:59:01 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 69711 invoked by uid 48); 5 Oct 2017 09:58:57 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/78850] Parameter of returned generic lambda allegedly shadows parameter of free function
Date: Thu, 05 Oct 2017 09:59:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle 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: bug_status blocked resolution
Message-ID: <bug-78850-4-bGZ60wmINB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78850-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78850-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00526.txt.bz2
Content-length: 687

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78850

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
             Blocks|                            |54367
         Resolution|---                         |DUPLICATE

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Dup. Fixed in 7.1.0.

*** This bug has been marked as a duplicate of bug 67273 ***


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54367
[Bug 54367] [meta-bug] lambda expressions
>From gcc-bugs-return-577469-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 10:11:22 2017
Return-Path: <gcc-bugs-return-577469-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 57047 invoked by alias); 5 Oct 2017 10:11: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 48590 invoked by uid 48); 5 Oct 2017 10:11:13 -0000
From: "arnd at linaro dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82435] New: new __attribute__((alias)) warning gets in the way
Date: Thu, 05 Oct 2017 10:11:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: unknown
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-82435-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00529.txt.bz2
Content-length: 2812

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82435

            Bug ID: 82435
           Summary: new __attribute__((alias)) warning gets in the way
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: arnd at linaro dot org
  Target Milestone: ---

gcc-8 started warning about function aliases that have a non-matching
prototype. This seems rather useful in general, but it causes tons of warnings
in the Linux kernel, where we rely on abusing those aliases for system call
entry points, in order to sanitze the arguments passed from user space in
registers, see 
http://elixir.free-electrons.com/linux/v4.13/source/include/linux/syscalls.h#L84

In file included from /git/arm-soc/kernel/sysctl_binary.c:6:0:
/git/arm-soc/include/linux/syscalls.h:211:18: error: 'sys_sysctl' alias between
functions of incompatible types 'long int(struct __sysctl_args *)' and 'long
int(long int)' [-Werror=attributes]
  asmlinkage long sys##name(__MAP(x,__SC_DECL,__VA_ARGS__)) \
                  ^~~
/git/arm-soc/include/linux/syscalls.h:207:2: note: in expansion of macro
'__SYSCALL_DEFINEx'
  __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
  ^~~~~~~~~~~~~~~~~
/git/arm-soc/include/linux/syscalls.h:196:36: note: in expansion of macro
'SYSCALL_DEFINEx'
 #define SYSCALL_DEFINE1(name, ...) SYSCALL_DEFINEx(1, _##name, __VA_ARGS__)
                                    ^~~~~~~~~~~~~~~
/git/arm-soc/kernel/sysctl_binary.c:1418:1: note: in expansion of macro
'SYSCALL_DEFINE1'
 SYSCALL_DEFINE1(sysctl, struct __sysctl_args __user *, args)
 ^~~~~~~~~~~~~~~
/git/arm-soc/include/linux/syscalls.h:215:18: note: aliased declaration here
  asmlinkage long SyS##name(__MAP(x,__SC_LONG,__VA_ARGS__)) \
                  ^~~
/git/arm-soc/include/linux/syscalls.h:207:2: note: in expansion of macro
'__SYSCALL_DEFINEx'
  __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
  ^~~~~~~~~~~~~~~~~
/git/arm-soc/include/linux/syscalls.h:196:36: note: in expansion of macro
'SYSCALL_DEFINEx'
 #define SYSCALL_DEFINE1(name, ...) SYSCALL_DEFINEx(1, _##name, __VA_ARGS__)
                                    ^~~~~~~~~~~~~~~
/git/arm-soc/kernel/sysctl_binary.c:1418:1: note: in expansion of macro
'SYSCALL_DEFINE1'
 SYSCALL_DEFINE1(sysctl, struct __sysctl_args __user *, args)
 ^~~~~~~~~~~~~~~

I have not found a way to disable this warning without also disabling all other
warnings about attributes. Ideally we'd have another attribute that lets us
keep on using the existing kernel code with macro to pick the right attributes
based on the gcc version. Alternatively, a separate diagnostic flag to turn off
the warning about incompatible aliases globally would also work.
>From gcc-bugs-return-577470-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 10:28:01 2017
Return-Path: <gcc-bugs-return-577470-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 113588 invoked by alias); 5 Oct 2017 10:28: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 112372 invoked by uid 48); 5 Oct 2017 10:27:56 -0000
From: "pkg at 1tein dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/80865] broken compilation on Mac OS X 10.5 / powerpc: unrecognizable insn
Date: Thu, 05 Oct 2017 10:28:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords: build
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pkg at 1tein dot de
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-80865-4-geUo2LQduT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80865-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80865-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00530.txt.bz2
Content-length: 1185

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80865

--- Comment #10 from Christian Cornelssen <pkg at 1tein dot de> ---
(In reply to Iain Sandoe from comment #9)
> > * Patchset 3/4 seems reasonable (marking longjmp noreturn),
> >   but does not contribute changes to the test summary.
> 
> Are you building Fortran?

Yes. I use the MacPorts setup which sets

    --enable-languages=c,c++,objc,obj-c++,lto,fortran

> IIRC, that patch was required for Fortran bootstrap to complete.

Well, my testsuite runs are based on the GCC-7.2.0 release, plus some or all of
the patches in attachment 42124.

> > * Patchset 4/4 looks reasonable (selecting Darwin thread headers),
> >   but is Ada-related, thus irrelevant for non-Ada builds.
> 
> Well, generally I build for all the supported languages including Ada,
> Fortran (and Java where supported) so generally I will keep patches to allow
> all of those to succeed.

That's fine; just keep in mind that the patch has not been covered in my tests
because Ada has not been enabled there. To me, it looks like patch 4 should be
necessary for Darwin 8 (Tiger) and Darwin 9 (Leopard) if Ada is built, but that
is just a guess.
>From gcc-bugs-return-577471-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 10:38:34 2017
Return-Path: <gcc-bugs-return-577471-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 54186 invoked by alias); 5 Oct 2017 10:38: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 54147 invoked by uid 48); 5 Oct 2017 10:38:30 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82436] New: 465.tonto ICE in vect_get_slp_vect_defs, at tree-vect-slp.c:3410
Date: Thu, 05 Oct 2017 10:38: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: 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-82436-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00531.txt.bz2
Content-length: 2388

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82436

            Bug ID: 82436
           Summary: 465.tonto ICE in vect_get_slp_vect_defs, at
                    tree-vect-slp.c:3410
           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: rguenth at gcc dot gnu.org
  Target Milestone: ---
            Target: i?86-*-*

With -Ofast -march=core-avx2 -flto -m32.

We are vectorizing

     do n=1,n_refl
       y = y + abs(F_z_(ext_refs(n)))
       w = w + abs(F_r_(ext_refs(n)))
     end do

from put_fcalc_plots which looks like the following before vectorization:

<bb 47> [84.24%] [count: INV]:
# _649 = PHI <1(46), _118(48)>
# y_lsm.44_396 = PHI <0.0(46), _113(48)>
# w_lsm.45_24 = PHI <0.0(46), _117(48)>
_104 = _103 * _649;
_105 = _102 + _104;
_107 = _105 * _106;
_108 = (sizetype) _107;
_109 = _101 + _108;
_651 = MEM[(struct reflection_type &)_109].f_pred;
_652 = MEM[(struct reflection_type &)_109].f_exp;
_653 = _651 - _652;
_655 = MEM[(struct reflection_type &)_109].f_sigma;
res_656 = _653 / _655;
_111 = ABS_EXPR <res_656>;
_113 = _111 + y_lsm.44_396;
res_648 = _653 / _652;
_115 = ABS_EXPR <res_648>;
_117 = _115 + w_lsm.45_24;
_118 = _649 + 1;
if (_118 > res_485)
  goto <bb 49>; [15.00%] [count: INV]
else
  goto <bb 48>; [85.00%] [count: INV]

<bb 48> [71.60%] [count: INV]:
goto <bb 47>; [100.00%] [count: INV]


all types are doubles.  The reflection_type is

   type reflection_type

   INT :: h
   ! Miller h index for the reflection

   INT :: k
   ! Miller k index for the reflection

   INT :: l
   ! Miller l index for the reflection

   REAL :: F_exp
   ! Experimental structure factor

   REAL :: F_sigma
   ! Experimental error in the structure factor

   CPX :: F_calc
   ! Calculated complex structure factor without including corrections

   REAL :: F_pred
   ! Calculated structure factor including scale and extinction corrections

   REAL :: I_exp
   ! Experimental intensity

   REAL :: I_sigma
   ! Experimental error in the intensity

   REAL :: I_pred
   ! Calculated intensity including scale and extinction corrections

   end type

where INT is int32_t and CPX is _Complex double.
>From gcc-bugs-return-577472-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 10:41:41 2017
Return-Path: <gcc-bugs-return-577472-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 7270 invoked by alias); 5 Oct 2017 10: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 94256 invoked by uid 55); 5 Oct 2017 10:40:53 -0000
From: "hjl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/82379] [7/8 Regression] internal_sigreturn not defined in libasan.so or libubsan.so with -mx32
Date: Thu, 05 Oct 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: sanitizer
X-Bugzilla-Version: 7.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
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: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82379-4-dDFoi1tkG6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82379-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82379-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00532.txt.bz2
Content-length: 776

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82379

--- Comment #7 from hjl at gcc dot gnu.org <hjl at gcc dot gnu.org> ---
Author: hjl
Date: Thu Oct  5 10:39:32 2017
New Revision: 253441

URL: https://gcc.gnu.org/viewcvs?rev=253441&root=gcc&view=rev
Log:
Add sanitizer_linux_x86_64.lo if __x86_64__ is defined by $CC

Since size of "void *" is 4 bytes for x32, check if __x86_64__ is defined
by $CC, instead of

if test x$ac_cv_sizeof_void_p = x8; then

to decide wether sanitizer_linux_x86_64.lo should be used.

        PR sanitizer/82379
        * configure.tgt (SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS): Set
        to sanitizer_linux_x86_64.lo if __x86_64__ is defined by $CC.

Modified:
    trunk/libsanitizer/ChangeLog
    trunk/libsanitizer/configure.tgt
>From gcc-bugs-return-577473-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 10:45:51 2017
Return-Path: <gcc-bugs-return-577473-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 70826 invoked by alias); 5 Oct 2017 10:45: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 64651 invoked by uid 48); 5 Oct 2017 10:45:46 -0000
From: "arnd at linaro dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82437] New: false-positive -Wtautological-compare warning with -std=gnu89
Date: Thu, 05 Oct 2017 10:45:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 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-82437-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00533.txt.bz2
Content-length: 1147

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82437

            Bug ID: 82437
           Summary: false-positive -Wtautological-compare warning with
                    -std=gnu89
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: arnd at linaro dot org
  Target Milestone: ---

I found several instances of a new warning in the linux kernel, building with
"gcc-8.0.0 -std=gnu89", reduced a test case to this:

$ arm-linux-gnueabi-gcc-8.0.0  -c vfpmodule.c   -std=c89 -Wall
int f(unsigned int x)
{
        if ((x & ((1 << 31) | (1 << 28))) != ((1 << 31) | (1 << 28)))
                return 0;
        return 1;
}

vfpmodule.c: In function 'f':
vfpmodule.c:3:36: warning: bitwise comparison always evaluates to true
[-Wtautological-compare]
  if ((x & ((1 << 31) | (1 << 28))) != ((1 << 31) | (1 << 28)))

The object code that gets produces looks correct, so I assume this is simply a
warning problem, possibly related to pr81783 that introduced new warnings.
>From gcc-bugs-return-577474-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 10:46:03 2017
Return-Path: <gcc-bugs-return-577474-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 81587 invoked by alias); 5 Oct 2017 10:46: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 75810 invoked by uid 55); 5 Oct 2017 10:45:58 -0000
From: "hjl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/82379] [7/8 Regression] internal_sigreturn not defined in libasan.so or libubsan.so with -mx32
Date: Thu, 05 Oct 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: sanitizer
X-Bugzilla-Version: 7.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
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: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82379-4-GiNlX9OU7M@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82379-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82379-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00534.txt.bz2
Content-length: 841

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82379

--- Comment #8 from hjl at gcc dot gnu.org <hjl at gcc dot gnu.org> ---
Author: hjl
Date: Thu Oct  5 10:45:04 2017
New Revision: 253442

URL: https://gcc.gnu.org/viewcvs?rev=253442&root=gcc&view=rev
Log:
Add sanitizer_linux_x86_64.lo if __x86_64__ is defined by $CC

Since size of "void *" is 4 bytes for x32, check if __x86_64__ is defined
by $CC, instead of

if test x$ac_cv_sizeof_void_p = x8; then

to decide wether sanitizer_linux_x86_64.lo should be used.

        Backported from mainline
        PR sanitizer/82379
        * configure.tgt (SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS): Set
        to sanitizer_linux_x86_64.lo if __x86_64__ is defined by $CC.

Modified:
    branches/gcc-7-branch/libsanitizer/ChangeLog
    branches/gcc-7-branch/libsanitizer/configure.tgt
>From gcc-bugs-return-577475-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 11:03:06 2017
Return-Path: <gcc-bugs-return-577475-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 13919 invoked by alias); 5 Oct 2017 11:03:06 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 8773 invoked by uid 48); 5 Oct 2017 11:02:59 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82436] 465.tonto ICE in vect_get_slp_vect_defs, at tree-vect-slp.c:3410
Date: Thu, 05 Oct 2017 11:03:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: 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: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82436-4-5Xdap9bWtV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82436-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82436-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00535.txt.bz2
Content-length: 1499

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82436

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Doesn't reproduce with

struct reflection_type
{
  int h;
  int k;
  int l;
  double f_exp;
  double f_sigma;
  _Complex double f_calc;
  double f_pred;
  double i_exp;
  double i_sigma;
  double i_pred;
};

struct { void *data; int offset; int stride; int span; } ext_refs;

double y, w;
void foo (struct reflection_type *r, int n, unsigned s)
{
  y = 0;
  w = 0;
  for (int i = 1; i < n; ++i)
    {
      struct reflection_type *x = (struct reflection_type *)(ext_refs.data +
(ext_refs.offset + ext_refs.stride * i) * ext_refs.span);
      double fpred = x->f_pred;
      double fexp = x->f_exp;
      double tem = (fpred - fexp);
      y += __builtin_fabs (tem / x->f_sigma);
      w += __builtin_fabs (tem / fexp);
    }
}

and -Ofast -march=core-avx2 -m32 -fno-vect-cost-model --param
vect-max-peeling-for-alignment=0.

Somehow the original case gets

crystal.fppized.f90:3643:0: note: === vect_make_slp_decision ===
crystal.fppized.f90:3643:0: note: Decided to SLP 1 instances. Unrolling factor
2
crystal.fppized.f90:3643:0: note: === vect_detect_hybrid_slp ===
crystal.fppized.f90:3643:0: note: === vect_update_vf_for_slp ===
crystal.fppized.f90:3643:0: note: Loop contains SLP and non-SLP stmts
crystal.fppized.f90:3643:0: note: Updating vectorization factor to 8

while I get only SLP stmts in the C case.
>From gcc-bugs-return-577476-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 11:15:39 2017
Return-Path: <gcc-bugs-return-577476-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 15279 invoked by alias); 5 Oct 2017 11:15:39 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 8732 invoked by uid 48); 5 Oct 2017 11:15:34 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82436] 465.tonto ICE in vect_get_slp_vect_defs, at tree-vect-slp.c:3410
Date: Thu, 05 Oct 2017 11:15:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on assigned_to everconfirmed
Message-ID: <bug-82436-4-xuxZuUbHdz@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82436-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82436-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00536.txt.bz2
Content-length: 1346

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82436

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2017-10-05
           Assignee|unassigned at gcc dot gnu.org      |rguenth at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Hmm, it's the IV update that makes it not pure SLP:

_118 = _649 + 1;

it's vect_used_only_live, loop_vect and vect_internal_def.

Simplified C testcase:

struct reflection_type
{
  int h;
  int k;
  int l;
  double f_exp;
  double f_sigma;
  _Complex double f_calc;
  double f_pred;
  double i_exp;
  double i_sigma;
  double i_pred;
};

double y, w;
int foo (struct reflection_type *r, int n, unsigned s)
{
  int i;
  y = 0;
  w = 0;
  for (i = 1; i < n; ++i)
    {
      struct reflection_type *x = &r[i*s];
      double fpred = x->f_pred;
      double fexp = x->f_exp;
      double tem = (fpred - fexp);
      y += __builtin_fabs (tem / x->f_sigma);
      w += __builtin_fabs (tem / fexp);
    }
  return i;
}

needs -Ofast -mavx2 -m32 -fnop-tree-scev-cprop.
>From gcc-bugs-return-577477-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 11:17:05 2017
Return-Path: <gcc-bugs-return-577477-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 89140 invoked by alias); 5 Oct 2017 11:17:05 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 83140 invoked by uid 48); 5 Oct 2017 11:17:01 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82436] [8 Regression] 465.tonto ICE in vect_get_slp_vect_defs, at tree-vect-slp.c:3410
Date: Thu, 05 Oct 2017 11: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: 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: target_milestone short_desc
Message-ID: <bug-82436-4-BNg9ujSB9w@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82436-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82436-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00537.txt.bz2
Content-length: 711

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82436

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |8.0
            Summary|465.tonto ICE in            |[8 Regression] 465.tonto
                   |vect_get_slp_vect_defs, at  |ICE in
                   |tree-vect-slp.c:3410        |vect_get_slp_vect_defs, at
                   |                            |tree-vect-slp.c:3410

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
The C testcase works on the GCC 7 branch and earlier but fails on trunk.
>From gcc-bugs-return-577478-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 11:18:09 2017
Return-Path: <gcc-bugs-return-577478-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 94292 invoked by alias); 5 Oct 2017 11:18:09 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 94212 invoked by uid 48); 5 Oct 2017 11:18:05 -0000
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/82379] [7/8 Regression] internal_sigreturn not defined in libasan.so or libubsan.so with -mx32
Date: Thu, 05 Oct 2017 11:18:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: sanitizer
X-Bugzilla-Version: 7.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
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: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-82379-4-5WjzYJYX8z@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82379-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82379-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00538.txt.bz2
Content-length: 427

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82379

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #9 from H.J. Lu <hjl.tools at gmail dot com> ---
Fixed for GCC 7.3.
>From gcc-bugs-return-577479-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 11:23:14 2017
Return-Path: <gcc-bugs-return-577479-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 99835 invoked by alias); 5 Oct 2017 11:23:13 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 99727 invoked by uid 48); 5 Oct 2017 11:23:09 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82436] [7/8 Regression] 465.tonto ICE in vect_get_slp_vect_defs, at tree-vect-slp.c:3410
Date: Thu, 05 Oct 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: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cf_known_to_work target_milestone short_desc cf_known_to_fail
Message-ID: <bug-82436-4-fCLPqQEx13@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82436-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82436-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00539.txt.bz2
Content-length: 817

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82436

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |6.4.1
   Target Milestone|8.0                         |7.3
            Summary|[8 Regression] 465.tonto    |[7/8 Regression] 465.tonto
                   |ICE in                      |ICE in
                   |vect_get_slp_vect_defs, at  |vect_get_slp_vect_defs, at
                   |tree-vect-slp.c:3410        |tree-vect-slp.c:3410
      Known to fail|                            |7.1.0, 7.2.1, 8.0

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Actually fails on the GCC 7 branch, messed up testing.
>From gcc-bugs-return-577480-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 11:26:36 2017
Return-Path: <gcc-bugs-return-577480-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 130689 invoked by alias); 5 Oct 2017 11: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 130621 invoked by uid 48); 5 Oct 2017 11:26:32 -0000
From: "glisse at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82434] -fstore-merging does not work reliably.
Date: Thu, 05 Oct 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: tree-optimization
X-Bugzilla-Version: 7.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: glisse at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82434-4-X8oYbfqNHE@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82434-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82434-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00540.txt.bz2
Content-length: 212

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82434

--- Comment #2 from Marc Glisse <glisse at gcc dot gnu.org> ---
-Dbool=char lets it merge the stores, I guess this is because bool has
precision < bitsize.
>From gcc-bugs-return-577481-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 11:31:06 2017
Return-Path: <gcc-bugs-return-577481-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 2511 invoked by alias); 5 Oct 2017 11: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 2376 invoked by uid 48); 5 Oct 2017 11:31:01 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82434] -fstore-merging does not work reliably.
Date: Thu, 05 Oct 2017 11:31:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82434-4-AyxdQkZXtj@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82434-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82434-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00541.txt.bz2
Content-length: 393

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82434

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Marc Glisse from comment #2)
> -Dbool=char lets it merge the stores, I guess this is because bool has
> precision < bitsize.

No.  It is because can_native_encode_type_p doesn't return true for
BOOLEAN_TYPE or ENUMERAL_TYPE.  But that routine is just flawed.
>From gcc-bugs-return-577482-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 11:48:45 2017
Return-Path: <gcc-bugs-return-577482-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 88618 invoked by alias); 5 Oct 2017 11:48:45 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 88487 invoked by uid 48); 5 Oct 2017 11:48:41 -0000
From: "nathan at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/69855] Missing diagnostic for overload that only differs by return type
Date: Thu, 05 Oct 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: 6.0
X-Bugzilla-Keywords: accepts-invalid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: nathan at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: nathan at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc resolution assigned_to
Message-ID: <bug-69855-4-rO1q4gsC2w@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-69855-4@http.gcc.gnu.org/bugzilla/>
References: <bug-69855-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00542.txt.bz2
Content-length: 851

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69855

Nathan Sidwell <nathan at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |nathan at gcc dot gnu.org
         Resolution|---                         |FIXED
           Assignee|unassigned at gcc dot gnu.org      |nathan at gcc dot gnu.org

--- Comment #8 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
this is fixed, I think my earlier namespace lookup handling patches got it.

69855.ii:11:9: error: local external declaration 'guard get()' [-fpermissive]
   guard get();
         ^~~
69855.ii:3:8: note: does not match previous declaration 'mutex& get()'
 mutex& get();
>From gcc-bugs-return-577483-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 11:53:34 2017
Return-Path: <gcc-bugs-return-577483-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 96314 invoked by alias); 5 Oct 2017 11:53: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 93720 invoked by uid 48); 5 Oct 2017 11:53:29 -0000
From: "didu31 at hotmail dot fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/82393] Compilation error on cygwin64
Date: Thu, 05 Oct 2017 11:53:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: ada
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: build
X-Bugzilla-Severity: normal
X-Bugzilla-Who: didu31 at hotmail dot fr
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ebotcazou at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82393-4-kXKBw5Q5vS@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82393-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82393-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00543.txt.bz2
Content-length: 3054

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82393

--- Comment #12 from Didier G <didu31 at hotmail dot fr> ---
(In reply to Eric Botcazou from comment #9)
> > Trace of check ada runtests
> 
> You can do 'make mail-report.log' after 'make -k check' to have a report.
> 
> The results are acceptable although gnat.dg/entry_queues.adb and c380004,
> which probably come from the same underlying issue, would need to be
> investigated.

FYI, to make you an idea of the c380004's failure, a SEGV occurs in
cygwin.S:___chkstk_ms, caused by stack check at c380004.adb:132.

The trace, here :

Starting program: /home/didier/c380004.exe
[New Thread 11216.0x1fc4]
[New Thread 11216.0x1e4]
[New Thread 11216.0x2794]
[New Thread 11216.0x1f00]

,.,. C380004 ACATS 2.5 17-10-05 11:45:34
---- C380004 Check evaluation of discriminant expressions when the
                constraint depends on a discriminant, and the
                discriminants have defaults -
                discriminant-dependententry families and protected
                components.
   - C380004 Discriminant-dependent entry families for task types.
[New Thread 11216.0x1b6c]
[New Thread 11216.0x265c]
[Thread 11216.0x1b6c exited with code 1]
[Thread 11216.0x265c exited with code 1]
[New Thread 11216.0x15a4]
[Thread 11216.0x15a4 exited with code 1]
[New Thread 11216.0xac4]
[Thread 11216.0xac4 exited with code 1]
[New Thread 11216.0x34e8]
[Thread 11216.0x34e8 exited with code 1]
[New Thread 11216.0x2170]
[New Thread 11216.0x1698]
[Thread 11216.0x1698 exited with code 1]
[Thread 11216.0x2170 exited with code 1]
[New Thread 11216.0xfd8]
[New Thread 11216.0x356c]
[Thread 11216.0xfd8 exited with code 1]
[Thread 11216.0x356c exited with code 1]
[New Thread 11216.0x520]
   - C380004 Discriminant-dependent entry families for protected types.
[Thread 11216.0x520 exited with code 1]

Program received signal SIGSEGV, Segmentation fault.
___chkstk_ms () at
/cygdrive/c/Users/didier/git/gcc/libgcc/config/i386/cygwin.S:146
146             orq     $0x0, (%rcx)            /* probe there */
(gdb) info registers
rax            0x283b0  164784
rbx            0x880e80 8916608
rcx            0xffe032d0       4292883152
rdx            0x0      0
rsi            0xffffc2d0       4294951632
rdi            0xffffcab0       4294953648
rbp            0xffffc350       0xffffc350
rsp            0xffffc2b8       0xffffc2b8
r8             0x0      0
r9             0x0      0
r10            0xffffcab0       4294953648
r11            0x10042d9c9      4299348425
r12            0x100441768      4299429736
r13            0x100441958      4299430232
r14            0x1004416a0      4299429536
r15            0x100441720      4299429664
rip            0x10043b0b6      0x10043b0b6 <___chkstk_ms+22>
eflags         0x10202  [ IF RF ]
cs             0x33     51
ss             0x2b     43
ds             0x2b     43
es             0x2b     43
fs             0x53     83
gs             0x2b     43
(gdb) up
#1  0x000000010040dfb2 in c380004.chk () at c380004.adb:132
132                     X : Arr;
>From gcc-bugs-return-577484-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 12:04:47 2017
Return-Path: <gcc-bugs-return-577484-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 122561 invoked by alias); 5 Oct 2017 12:04:46 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 112193 invoked by uid 48); 5 Oct 2017 12:04:33 -0000
From: "didu31 at hotmail dot fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/82393] Compilation error on cygwin64
Date: Thu, 05 Oct 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: ada
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: build
X-Bugzilla-Severity: normal
X-Bugzilla-Who: didu31 at hotmail dot fr
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ebotcazou at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82393-4-2aMF9ZYdqy@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82393-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82393-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00544.txt.bz2
Content-length: 1530

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82393

--- Comment #13 from Didier G <didu31 at hotmail dot fr> ---
gnat.dg/entry_queues.adb debug execution :

(gdb) run
Starting program: /home/didier/entry_queues.exe
[New Thread 8264.0x299c]
[New Thread 8264.0x1950]
[New Thread 8264.0x1a94]
[New Thread 8264.0x3508]

Program received signal SIGSEGV, Segmentation fault.
___chkstk_ms () at
/cygdrive/c/Users/didier/git/gcc/libgcc/config/i386/cygwin.S:146
146             orq     $0x0, (%rcx)            /* probe there */
(gdb) info registers
rax            0x283b0  164784
rbx            0xffffcb00       4294953728
rcx            0xffe037f0       4292884464
rdx            0x0      0
rsi            0xffffc7f0       4294952944
rdi            0x880e80 8916608
rbp            0xffffc870       0xffffc870
rsp            0xffffc7d8       0xffffc7d8
r8             0x0      0
r9             0x1101d0 1114576
r10            0x0      0
r11            0x1101d0 1114576
r12            0x0      0
r13            0x0      0
r14            0x1101d0 1114576
r15            0x0      0
rip            0x1004198f6      0x1004198f6 <___chkstk_ms+22>
eflags         0x10206  [ PF IF RF ]
cs             0x33     51
ss             0x2b     43
ds             0x2b     43
es             0x2b     43
fs             0x53     83
gs             0x2b     43
(gdb) c
Continuing.

raised STORAGE_ERROR : EXCEPTION_STACK_OVERFLOW
[Thread 8264.0x1a94 exited with code 1]
[Thread 8264.0x3508 exited with code 1]
[Inferior 1 (process 8264) exited with code 01]
>From gcc-bugs-return-577485-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 12:08:18 2017
Return-Path: <gcc-bugs-return-577485-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 15672 invoked by alias); 5 Oct 2017 12:08:18 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 15628 invoked by uid 48); 5 Oct 2017 12:08:12 -0000
From: "antoshkka at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/82438] New: Memory access not optimized for loops with known bounds
Date: Thu, 05 Oct 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: middle-end
X-Bugzilla-Version: 8.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-82438-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00545.txt.bz2
Content-length: 1802

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82438

            Bug ID: 82438
           Summary: Memory access not optimized for loops with known
                    bounds
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: antoshkka at gmail dot com
  Target Milestone: ---

Reading and writing small data in loops with -O2 generates "movzx ecx, BYTE PTR
[rdi+rdx]" and "mov BYTE PTR [rax], 15" instead of reading and writing using
words/dwords:

Code 

unsigned loop_read(unsigned char* a) {
    const unsigned size = 128;

    unsigned sum = 0;
    for (unsigned i = 0; i < size; ++i) {
        sum += a[i];
    }

    return sum;
}

generates assembly

loop_read(unsigned char*):
  lea rcx, [rdi+128]
  xor eax, eax
.L7:
  movzx edx, BYTE PTR [rdi]
  add rdi, 1
  add eax, edx
  cmp rdi, rcx
  jne .L7
  rep ret


Reading words/dwords significantly reduces iterations count. Clang reads using
dwords:

loop_read(unsigned char*): # @loop_read(unsigned char*)
  pxor xmm1, xmm1
  mov rax, -128
  pxor xmm0, xmm0
.LBB1_1: # =>This Inner Loop Header: Depth=1
  movd xmm2, dword ptr [rdi + rax + 128] # xmm2 = mem[0],zero,zero,zero
  punpcklbw xmm2, xmm1 # xmm2 =
xmm2[0],xmm1[0],xmm2[1],xmm1[1],xmm2[2],xmm1[2],xmm2[3],xmm1[3],xmm2[4],xmm1[4],xmm2[5],xmm1[5],xmm2[6],xmm1[6],xmm2[7],xmm1[7]
  punpcklwd xmm2, xmm1 # xmm2 =
xmm2[0],xmm1[0],xmm2[1],xmm1[1],xmm2[2],xmm1[2],xmm2[3],xmm1[3]
  paddd xmm0, xmm2
  add rax, 4
  jne .LBB1_1
  pshufd xmm1, xmm0, 78 # xmm1 = xmm0[2,3,0,1]
  paddd xmm1, xmm0
  pshufd xmm0, xmm1, 229 # xmm0 = xmm1[1,1,2,3]
  paddd xmm0, xmm1
  movd eax, xmm0
  ret
>From gcc-bugs-return-577486-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 12:22:06 2017
Return-Path: <gcc-bugs-return-577486-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 36872 invoked by alias); 5 Oct 2017 12:22:06 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 23547 invoked by uid 48); 5 Oct 2017 12:22:01 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82434] -fstore-merging does not work reliably.
Date: Thu, 05 Oct 2017 12:22:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on assigned_to everconfirmed attachments.created
Message-ID: <bug-82434-4-jiOaN8YkDr@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82434-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82434-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00546.txt.bz2
Content-length: 689

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82434

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2017-10-05
           Assignee|unassigned at gcc dot gnu.org      |jakub at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 42307
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42307&action=edit
gcc8-pr82434.patch

Untested fix.
>From gcc-bugs-return-577487-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 12:26:45 2017
Return-Path: <gcc-bugs-return-577487-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 17183 invoked by alias); 5 Oct 2017 12: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 17131 invoked by uid 48); 5 Oct 2017 12:26:40 -0000
From: "wilco at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82439] New: [AArch64] Missing (x | y) == x simplifications
Date: Thu, 05 Oct 2017 12:26: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: wilco at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
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-82439-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00547.txt.bz2
Content-length: 908

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82439

            Bug ID: 82439
           Summary: [AArch64] Missing (x | y) == x simplifications
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: wilco at gcc dot gnu.org
  Target Milestone: ---

The following logical simplifications are missing on targets with a bitclear
instruction:

(x | y) == x -> (y & ~x) == 0
(x & y) == y -> (y & ~x) == 0

Simple testcase (f1 should generate the same as f2):

int f1(int x, int y) { return (x | y) == x; }
int f2(int x, int y) { return (y & ~x) == 0; }

f1:
        orr     w1, w0, w1
        cmp     w1, w0
        cset    w0, eq
        ret
f2:
        bics    wzr, w1, w0
        cset    w0, eq
        ret
>From gcc-bugs-return-577488-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 12:34:20 2017
Return-Path: <gcc-bugs-return-577488-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 32271 invoked by alias); 5 Oct 2017 12:34:20 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 32143 invoked by uid 48); 5 Oct 2017 12:34:16 -0000
From: "segher at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/77729] aarch64 inserts unneeded uxtb after ldrb, orr ...32
Date: Thu, 05 Oct 2017 12:34:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 6.1.1
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: segher at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: segher 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-77729-4-R4jx9cJjJs@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-77729-4@http.gcc.gnu.org/bugzilla/>
References: <bug-77729-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00548.txt.bz2
Content-length: 520

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77729

Segher Boessenkool <segher at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |8.0

--- Comment #14 from Segher Boessenkool <segher at gcc dot gnu.org> ---
Fixed on trunk; no backports planned.
>From gcc-bugs-return-577490-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 12:38:58 2017
Return-Path: <gcc-bugs-return-577490-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 26151 invoked by alias); 5 Oct 2017 12: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 26096 invoked by uid 48); 5 Oct 2017 12:38:53 -0000
From: "schwab@linux-m68k.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82440] [8 regression] ICE in aarch64_simd_valid_immediate
Date: Thu, 05 Oct 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: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: build, ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: schwab@linux-m68k.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: target_milestone
Message-ID: <bug-82440-4-sQfsvQPFP1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82440-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82440-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00550.txt.bz2
Content-length: 288

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82440

Andreas Schwab <schwab@linux-m68k.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |8.0
>From gcc-bugs-return-577489-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 12:38:35 2017
Return-Path: <gcc-bugs-return-577489-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 25252 invoked by alias); 5 Oct 2017 12:38: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 25104 invoked by uid 48); 5 Oct 2017 12:38:30 -0000
From: "schwab@linux-m68k.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82440] New: [8 regression] ICE in aarch64_simd_valid_immediate
Date: Thu, 05 Oct 2017 12:38:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: build, ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: schwab@linux-m68k.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
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-82440-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00549.txt.bz2
Content-length: 3419

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82440

            Bug ID: 82440
           Summary: [8 regression] ICE in aarch64_simd_valid_immediate
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Keywords: build, ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: schwab@linux-m68k.org
  Target Milestone: ---
            Target: aarch64-*-*

The stage1 compiler crashes while compiling libcpp/lex.c:

/opt/gcc/test/Build/./prev-gcc/xg++ -B/opt/gcc/test/Build/./prev-gcc/
-B/usr/aarch64-suse-linux/bin/ -nostdinc++
-B/opt/gcc/test/Build/prev-aarch64-suse-linux/libstdc++-v3/src/.libs
-B/opt/gcc/test/Build/prev-aarch64-suse-linux/libstdc++-v3/libsupc++/.libs 
-I/opt/gcc/test/Build/prev-aarch64-suse-linux/libstdc++-v3/include/aarch64-suse-linux
 -I/opt/gcc/test/Build/prev-aarch64-suse-linux/libstdc++-v3/include 
-I/opt/gcc/test/libstdc++-v3/libsupc++
-L/opt/gcc/test/Build/prev-aarch64-suse-linux/libstdc++-v3/src/.libs
-L/opt/gcc/test/Build/prev-aarch64-suse-linux/libstdc++-v3/libsupc++/.libs 
-I../../libcpp -I. -I../../libcpp/../include -I../../libcpp/include  -g -O2
-gtoggle -W -Wall -Wno-narrowing -Wwrite-strings -Wmissing-format-attribute
-pedantic -Wno-long-long -Werror -fno-exceptions -fno-rtti -I../../libcpp -I.
-I../../libcpp/../include -I../../libcpp/include   -c -o lex.o -MT lex.o -MMD
-MP -MF .deps/lex.Tpo ../../libcpp/lex.c
lude/aarch64-suse-linux 
-I/opt/gcc/test/Build/prev-aarch64-suse-linux/libstdc++-v3/include 
-I/opt/gcc/test/libstdc++-v3/libsupc++
-L/opt/gcc/test/Build/prev-aarch64-suse-linux/libstdc++-v3/src/.libs
-L/opt/gcc/test/Build/prev-aarch64-suse-linux/libstdc++-v3/libsupc++/.libs 
-I../../libcpp -I. -I../../libcpp/../include -I../../libcpp/include  -g -O2
-gtoggle -W -Wall -Wno-narrowing -Wwrite-strings -Wmissing-format-attribute
-pedantic -Wno-long-long -Werror -fno-exceptions -fno-rtti -I../../libcpp -I.
-I../../libcpp/../include -I../../libcpp/include   -c -o lex.o -MT lex.o -MMD
-MP -MF .deps/lex.Tpo ../../libcpp/lex.c
during RTL pass: combine
../../libcpp/lex.c: In function ‘void _cpp_clean_line(cpp_reader*)’:
../../libcpp/lex.c:1074:1: internal compiler error: Segmentation fault
 }
 ^
0x12dd153 crash_signal
        ../../gcc/toplev.c:326
0x175fe40 aarch64_simd_valid_immediate(rtx_def*, machine_mode, bool,
simd_immediate_info*, simd_immediate_check)
        ../../gcc/config/aarch64/aarch64.c:11539
0x1a118af aarch64_reg_or_bic_imm(rtx_def*, machine_mode)
        ../../gcc/config/aarch64/predicates.md:79
0x1a2bda3 pattern211
        /opt/gcc/test/Build/gcc/insn-recog.c:8759
0x1a81c43 recog_113
        ../../gcc/config/aarch64/aarch64-simd.md:571
0x1a90a93 recog_133
        ../../gcc/config/aarch64/aarch64.md:1032
0x1a941b7 recog(rtx_def*, rtx_insn*, int*)
        ../../gcc/config/aarch64/aarch64-simd.md:3365
0x1af6ae7 recog_for_combine_1
        ../../gcc/combine.c:11264
0x1af795b recog_for_combine
        ../../gcc/combine.c:11520
0x1adf877 try_combine
        ../../gcc/combine.c:3549
0x1ad913b combine_instructions
        ../../gcc/combine.c:1283
0x1b00887 rest_of_handle_combine
        ../../gcc/combine.c:14784
0x1b0096f execute
        ../../gcc/combine.c:14829

(You need to disable qsort checking in haifa-sched.c to get that far.)
>From gcc-bugs-return-577491-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 12:41:26 2017
Return-Path: <gcc-bugs-return-577491-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 33470 invoked by alias); 5 Oct 2017 12:41: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 33364 invoked by uid 48); 5 Oct 2017 12:41:20 -0000
From: "dclarke at blastwave dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/82037] Debian 8.8 powerpc64-unknown-linux-gnu bootstrap breaks in stage1 with gcc/liblto_plugin.so: wrong ELF class: ELFCLASS64
Date: Thu, 05 Oct 2017 12:41: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: 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:
Message-ID: <bug-82037-4-PIa1GI3i0m@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82037-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82037-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00551.txt.bz2
Content-length: 560

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82037

--- Comment #9 from Dennis Clarke <dclarke at blastwave dot org> ---
OKay, this is a surprise to me but I will take it as a given in the linux
world that a 32-bit linker binary is not able to perform linkage with 
objects that are in a different ELF class.  My experiences in the SPARC
world of Solaris don't help me here ( no surprise ) so I will get the 
binutils sources and fall down that rabbit hole a while and then return
here with 64-bit binutils in hand.  So let's keep this bug open for now.
>From gcc-bugs-return-577492-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 12:43:17 2017
Return-Path: <gcc-bugs-return-577492-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 59280 invoked by alias); 5 Oct 2017 12: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 59186 invoked by uid 48); 5 Oct 2017 12:43:12 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82436] [7/8 Regression] 465.tonto ICE in vect_get_slp_vect_defs, at tree-vect-slp.c:3410
Date: Thu, 05 Oct 2017 12:43:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82436-4-bKZYSIqGGV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82436-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82436-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00552.txt.bz2
Content-length: 3636

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82436

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
Ok.  So what happens is that during analysis we can perform all permutations
but later during code-gen we'd fail (but we may not fail there plus we don't
actually check for it).

This is because during analysis we have vf == 2 and during transform vf == 8.
group_size is 5 so we go 0 1 5 6 10 11 15 16 20 21 ...
and for 10 11 15 16 we cross three vectors which we do not support.

Either we can try to be more conservative in

  /* For loop vectorization verify we can generate the permutation.  */
  unsigned n_perms;
  FOR_EACH_VEC_ELT (SLP_INSTANCE_LOADS (slp_instn), i, node)
    if (node->load_permutation.exists ()
        && !vect_transform_slp_perm_load
              (node, vNULL, NULL,
               SLP_INSTANCE_UNROLLING_FACTOR (slp_instn), slp_instn, true,
               &n_perms))
      return false;

given the vectorization factor can end up as least-common-multiple of the
loop VF and the maximum SLP instance unrolling factor.  But at this point
it's hard to guess.

We can also re-do the analysis after finalizing the vectorization factor
and give up on SLP if failing (as the only option).

Or we can enhance code-generation to support the three-vector case if it
happens (but still reject it if it occurs at analysis time).

First option whuch may reject SLP cases we can actually handle (and isn't
100% fool-proof either):

Index: gcc/tree-vect-slp.c
===================================================================
--- gcc/tree-vect-slp.c (revision 253439)
+++ gcc/tree-vect-slp.c (working copy)
@@ -1567,14 +1567,20 @@ vect_supported_load_permutation_p (slp_i
       return true;
     }

-  /* For loop vectorization verify we can generate the permutation.  */
+  /* For loop vectorization verify we can generate the permutation.  Be
+     conservative about the vectorization factor, there are permutations
+     that will use three vector inputs only starting from a specific factor
+     and the vectorization factor is not yet final.
+     ???  The SLP instance unrolling factor might not be the maximum one.  */
   unsigned n_perms;
+  unsigned test_vf
+    = least_common_multiple (SLP_INSTANCE_UNROLLING_FACTOR (slp_instn),
+                            LOOP_VINFO_VECT_FACTOR
+                              (STMT_VINFO_LOOP_VINFO (vinfo_for_stmt
(stmt))));
   FOR_EACH_VEC_ELT (SLP_INSTANCE_LOADS (slp_instn), i, node)
     if (node->load_permutation.exists ()
-       && !vect_transform_slp_perm_load
-             (node, vNULL, NULL,
-              SLP_INSTANCE_UNROLLING_FACTOR (slp_instn), slp_instn, true,
-              &n_perms))
+       && !vect_transform_slp_perm_load (node, vNULL, NULL, test_vf,
+                                         slp_instn, true, &n_perms))
       return false;

   return true;
@@ -3560,6 +3566,7 @@ vect_transform_slp_perm_load (slp_tree n
                  dump_gimple_stmt (MSG_MISSED_OPTIMIZATION, TDF_SLIM,
                                    stmt, 0);
                }
+             gcc_assert (analyze_only);
              return false;
            }

@@ -3583,6 +3590,7 @@ vect_transform_slp_perm_load (slp_tree n
                        dump_printf (MSG_MISSED_OPTIMIZATION, "%d ", mask[i]);
                      dump_printf (MSG_MISSED_OPTIMIZATION, "}\n");
                    }
+                 gcc_assert (analyze_only);
                  return false;
                }
>From gcc-bugs-return-577493-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 12:57:58 2017
Return-Path: <gcc-bugs-return-577493-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 76359 invoked by alias); 5 Oct 2017 12:57: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 68862 invoked by uid 48); 5 Oct 2017 12:57:52 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82397] [8 Regression] qsort comparator non-negative on sorted output: 1 in vect_analyze_data_ref_accesses
Date: Thu, 05 Oct 2017 12:57:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-checking, ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to
Message-ID: <bug-82397-4-7s9K6Q8oze@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82397-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82397-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00553.txt.bz2
Content-length: 458

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82397

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |rguenth at gcc dot gnu.org

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
Mine.
>From gcc-bugs-return-577494-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 12:59:06 2017
Return-Path: <gcc-bugs-return-577494-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 105773 invoked by alias); 5 Oct 2017 12:59: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 105712 invoked by uid 48); 5 Oct 2017 12:59:02 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/82438] Memory access not optimized for loops with known bounds
Date: Thu, 05 Oct 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:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-82438-4-t3WYSpAxpu@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82438-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82438-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00554.txt.bz2
Content-length: 644

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82438

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
That is called vectorization and gcc performs it only with -O3 or if
-ftree-vectorize is used, so in this case you need to use -O2 -ftree-vectorize.
 Then gcc handles 16 original iterations in every loop iterations (for SSE2, or
32 for AVX2, or 64 for AVX512BW).
>From gcc-bugs-return-577495-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 13:07:10 2017
Return-Path: <gcc-bugs-return-577495-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 101562 invoked by alias); 5 Oct 2017 13:07:10 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 92537 invoked by uid 48); 5 Oct 2017 13:07:00 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug driver/31350] gcc -v --help puts some output on std. out, and some on std. error.
Date: Thu, 05 Oct 2017 13:07:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: driver
X-Bugzilla-Version: 4.2.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 everconfirmed
Message-ID: <bug-31350-4-2AF8WeCIF4@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-31350-4@http.gcc.gnu.org/bugzilla/>
References: <bug-31350-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00555.txt.bz2
Content-length: 1373

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=31350

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-10-05
     Ever confirmed|0                           |1

--- Comment #4 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Ladislas de Toldi from comment #3)
> I confirm this is also the case for avr-gcc
> 
> This is what I get to stderr:
> 
> --- 
> 
> Using built-in specs.
> Reading specs from
> /usr/local/Cellar/avr-gcc/7.2.0/lib/gcc/avr/7.2.0/device-specs/specs-avr2
> COLLECT_GCC=avr-gcc
> COLLECT_LTO_WRAPPER=/usr/local/Cellar/avr-gcc/7.2.0/libexec/gcc/avr/7.2.0/
> lto-wrapper
> Target: avr
> Configured with: ../configure --target=avr
> --prefix=/usr/local/Cellar/avr-gcc/7.2.0 --enable-languages=c,c++
> --with-ld=/usr/local/opt/avr-binutils/bin/avr-ld
> --with-as=/usr/local/opt/avr-binutils/bin/avr-as --disable-nls
> --disable-libssp --disable-shared --disable-threads --disable-libgomp
> --with-dwarf2
> Thread model: single
> gcc version 7.2.0 (GCC)

OK, changing status to NEW. This isn't necessarily confirmation that this is a
bug with gcc, just that it happens.
>From gcc-bugs-return-577496-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 13:26:07 2017
Return-Path: <gcc-bugs-return-577496-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 39869 invoked by alias); 5 Oct 2017 13:26: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 39689 invoked by uid 48); 5 Oct 2017 13:25:57 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82397] [8 Regression] qsort comparator non-negative on sorted output: 1 in vect_analyze_data_ref_accesses
Date: Thu, 05 Oct 2017 13:26:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-checking, ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: 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-82397-4-fovMTF1UDi@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82397-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82397-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00556.txt.bz2
Content-length: 1837

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82397

--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to Alexander Monakov from comment #1)
> This is because operand_equal_p is "smarter" than data_ref_compare_tree. We
> have something like
> 
> A: (long)_1 + (_2 + _3)
> B: (_2 + _4) + (long)_1
> C: (_2 + _3) + (long)_1
> 
> with A == C != B according to operand_equal_p (and A < B < C according to
> data_ref_compare_tree), making comparison steps like this non-transitive:
> 
>   if (!operand_equal_p (DR_BASE_ADDRESS (dra), DR_BASE_ADDRESS (drb), 0))
>     {
>       cmp = data_ref_compare_tree (DR_BASE_ADDRESS (dra),
>                                    DR_BASE_ADDRESS (drb));
> 
> 
> Perhaps additive chains in compared operands should be canonicalized first
> so that if two items are equal according to operand_equal_p they're also
> guaranteed to be equal according to data_ref_compare_tree?

I think the issue is not so much the equalness (which we really like to
see!) but the recursion down to the operands with determining which
one is less depends on the order of the operands:

      /* For expressions with operands, compare their operands recursively.  */
      for (i = TREE_OPERAND_LENGTH (t1) - 1; i >= 0; --i)
        {
          cmp = data_ref_compare_tree (TREE_OPERAND (t1, i),
                                       TREE_OPERAND (t2, i));
          if (cmp != 0)
            return cmp;
        }

for a solution we either may _not_ exploit commutativity when looking for
equalities or we need to make the above loop take into consideration
all operands and compute a result that is independent of individual
operand order (which I guess makes the comparison useless...).

Thus.  Hum.  The only thing we can do is to apply clever canonicalization.
>From gcc-bugs-return-577497-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 13:36:40 2017
Return-Path: <gcc-bugs-return-577497-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 98889 invoked by alias); 5 Oct 2017 13:36: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 94036 invoked by uid 48); 5 Oct 2017 13:36:34 -0000
From: "clyon at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82408] cross-compiling for arm64 problems
Date: Thu, 05 Oct 2017 13:36:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: clyon at gcc dot gnu.org
X-Bugzilla-Status: 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-82408-4-HfxquFWzBq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82408-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82408-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00557.txt.bz2
Content-length: 632

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82408

Christophe Lyon <clyon at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |clyon at gcc dot gnu.org

--- Comment #14 from Christophe Lyon <clyon at gcc dot gnu.org> ---
Hello,

If you don't absolutely need 7.2, but 7.1 is good enough for you, it's probably
easier to download the most recent Linaro toolchain from:
https://releases.linaro.org/components/toolchain/binaries/

The most recent is currently 7.1-2017.08.
>From gcc-bugs-return-577498-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 13:50:49 2017
Return-Path: <gcc-bugs-return-577498-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 88280 invoked by alias); 5 Oct 2017 13:50: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 84009 invoked by uid 48); 5 Oct 2017 13:50:44 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82437] [8 Regression] false-positive -Wtautological-compare warning with -std=gnu89
Date: Thu, 05 Oct 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: 8.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc assigned_to target_milestone short_desc everconfirmed
Message-ID: <bug-82437-4-u9dSDGuqMj@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82437-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82437-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00558.txt.bz2
Content-length: 1127

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82437

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2017-10-05
                 CC|                            |jakub at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |jakub at gcc dot gnu.org
   Target Milestone|---                         |8.0
            Summary|false-positive              |[8 Regression]
                   |-Wtautological-compare      |false-positive
                   |warning with -std=gnu89     |-Wtautological-compare
                   |                            |warning with -std=gnu89
     Ever confirmed|0                           |1

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
The problem is that warn_tautological_cmp is called on the original arguments,
not yet converted to the common type.  So one of them is negative, the other
positive.
>From gcc-bugs-return-577499-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 13:51:30 2017
Return-Path: <gcc-bugs-return-577499-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 3335 invoked by alias); 5 Oct 2017 13:51: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 126800 invoked by uid 48); 5 Oct 2017 13:51:24 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82397] [8 Regression] qsort comparator non-negative on sorted output: 1 in vect_analyze_data_ref_accesses
Date: Thu, 05 Oct 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: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-checking, ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: 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-82397-4-jA2YKfXnHx@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82397-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82397-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00559.txt.bz2
Content-length: 1934

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82397

--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
Ok, so I'm going to remove all the operand_equal_p tests as a first step.  As a
second we can add cleverness like the following (but we really would like to
do this "flatter" in the end...).  iterative_hash_expr could compute it once
for each node in the tree and we could pass the info down when recursing.
Need to think about some clever way to do that tho...

Index: tree-data-ref.c
===================================================================
--- tree-data-ref.c     (revision 253437)
+++ tree-data-ref.c     (working copy)
@@ -1251,6 +1251,28 @@ data_ref_compare_tree (tree t1, tree t2)
          break;
        }

+      if (commutative_tree_code (code))
+       {
+         tree t10 = TREE_OPERAND (t1, 0);
+         tree t11 = TREE_OPERAND (t1, 1);
+         tree t20 = TREE_OPERAND (t2, 0);
+         tree t21 = TREE_OPERAND (t2, 1);
+         /* Apply "clever" canonicalization to detect more equalities.
+            ???  Doing this here rather than in whoever builds the
+            trees makes it exponential in the tree size.  */
+         if (iterative_hash_expr (t10, 0) > iterative_hash_expr (t11, 0))
+           std::swap (t10, t11);
+         if (iterative_hash_expr (t20, 0) > iterative_hash_expr (t21, 0))
+           std::swap (t20, t21);
+         cmp = data_ref_compare_tree (t10, t20);
+         if (cmp != 0)
+           return cmp;
+         cmp = data_ref_compare_tree (t11, t21);
+         if (cmp != 0)
+           return cmp;
+         return 0;
+       }
+
       /* For expressions with operands, compare their operands recursively. 
*/
       for (i = TREE_OPERAND_LENGTH (t1) - 1; i >= 0; --i)
        {
>From gcc-bugs-return-577501-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 13:54:13 2017
Return-Path: <gcc-bugs-return-577501-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 115212 invoked by alias); 5 Oct 2017 13:54: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 113025 invoked by uid 48); 5 Oct 2017 13:54:09 -0000
From: "jamborm at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug hsa/82416] Miscompilation due to HSA BE expanding all sub-integer types to integer types
Date: Thu, 05 Oct 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: hsa
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jamborm at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-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-82416-4-9bCqIFaDBH@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82416-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82416-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00561.txt.bz2
Content-length: 3304

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82416

--- Comment #1 from Martin Jambor <jamborm at gcc dot gnu.org> ---
Created attachment 42308
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42308&action=edit
Fix

This is a fix I have come up with so far.  The key change is the
simple flip from true to false in
hsa_function_representation::reg_for_gimple_ssa, everything else is
there to compensate the big impact that has.

Basically, until the time we really output them, registers keep the
type of the data that they hold and we extend them whenever we want
perform on them any computation that can only be done in at least 32
bits in HSA, which is almost all of them - and then we convert them
back to a shorter type if necessary.

The only exception are complex numbers because combine/expand also
only exist in 32bits which in theory might break like the testcase
does when someone does something similar with a complex char... but
hopefully gimple does not perform such optimization on complex
numbers.  If it turns out it does, I guess we'll refuse to generate
HSA for them.

Pekka, can you try if this works for you as well?  I plan to commit
this early next week after a tiny bit more testing.

2017-10-04  Martin Jambor  <mjambor@suse.cz>

        PR hsa/82416
gcc/
        * hsa-common.h (hsa_op_with_type): New method extend_int_to_32bit.
        * hsa-gen.c (hsa_extend_inttype_to_32bit): New function.
        (hsa_type_for_scalar_tree_type): Use it.  Always force min32int for
        COMPLEX types.
        (hsa_fixup_mov_insn_type): New function.
        (hsa_op_with_type::get_in_type): Use it.
        (hsa_build_append_simple_mov): Likewise.  Allow sub-32bit
        immediates in an assert.
        (hsa_op_with_type::extend_int_to_32bit): New method.
        (gen_hsa_insns_for_bitfield): Fixup instruction and intermediary
        types.  Convert to dest type if necessary.
        (gen_hsa_insns_for_bitfield_load): Fixup load type if necessary.
        (reg_for_gimple_ssa): Pass false as min32int to
        hsa_type_for_scalar_tree_type.
        (gen_hsa_addr): Fixup type when creating addresable temporary.
        (gen_hsa_cmp_insn_from_gimple): Extend operands if necessary.
        (gen_hsa_unary_operation): Extend operands and convert to dest type if
        necessary.  Call hsa_fixup_mov_insn_type.
        (gen_hsa_binary_operation): Changed operand types to hsa_op_with_type,
        extend operands and convert to dest type if necessary.
        (gen_hsa_insns_for_operation_assignment): Extend operands and convert
        to dest type if necessary.
        (set_output_in_type): Call hsa_fixup_mov_insn_type.  Just ude dest
        if conversion nt necessary and size matches.
        (gen_hsa_insns_for_load): Call hsa_fixup_mov_insn_type, convert
        to dest type if necessary.
        (gen_hsa_insns_for_store): Call hsa_fixup_mov_insn_type.
        (gen_hsa_insns_for_switch_stmt): Likewise. Also extend operands if
        necessary.
        (gen_hsa_clrsb): Likewise.
        (gen_hsa_ffs): Likewise.
        (gen_hsa_divmod): Extend operands and convert to dest type if
        necessary.
        (gen_hsa_atomic_for_builtin): Change type of op to hsa_op_with_type.

libgomp/
        * testsuite/libgomp.hsa.c/pr82416.c: New test.
>From gcc-bugs-return-577500-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 13:54:06 2017
Return-Path: <gcc-bugs-return-577500-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 111516 invoked by alias); 5 Oct 2017 13:54: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 104992 invoked by uid 48); 5 Oct 2017 13:54:02 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/82438] Memory access not optimized for loops with known bounds
Date: Thu, 05 Oct 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: middle-end
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: 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-82438-4-zpplboB18j@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82438-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82438-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00560.txt.bz2
Content-length: 447

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82438

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |WORKSFORME

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Thus works already.
>From gcc-bugs-return-577502-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 14:23:19 2017
Return-Path: <gcc-bugs-return-577502-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 82223 invoked by alias); 5 Oct 2017 14: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 82163 invoked by uid 48); 5 Oct 2017 14:23:16 -0000
From: "lloyd at randombit dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/78010] --Wsuggest-override reports a redundant warning on a 'final' method
Date: Thu, 05 Oct 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: c++
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: lloyd at randombit 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-78010-4-SQyIb7SSwC@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78010-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78010-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00562.txt.bz2
Content-length: 405

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78010

Jack Lloyd <lloyd at randombit dot net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lloyd at randombit dot net

--- Comment #6 from Jack Lloyd <lloyd at randombit dot net> ---
Still occurs with GCC 7.2.0
>From gcc-bugs-return-577503-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 14:37:19 2017
Return-Path: <gcc-bugs-return-577503-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 115227 invoked by alias); 5 Oct 2017 14:37: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 115174 invoked by uid 48); 5 Oct 2017 14:37:14 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82437] [8 Regression] false-positive -Wtautological-compare warning with -std=gnu89
Date: Thu, 05 Oct 2017 14: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: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-82437-4-XE54qbY9yA@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82437-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82437-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00563.txt.bz2
Content-length: 253

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82437

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 42309
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42309&action=edit
gcc8-pr82437.patch

Untested fix.
>From gcc-bugs-return-577504-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 14:58:03 2017
Return-Path: <gcc-bugs-return-577504-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 81318 invoked by alias); 5 Oct 2017 14:58:03 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 81209 invoked by uid 48); 5 Oct 2017 14:57:59 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82435] new __attribute__((alias)) warning gets in the way
Date: Thu, 05 Oct 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: 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: 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-82435-4-SRfbjr7fq2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82435-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82435-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00564.txt.bz2
Content-length: 816

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82435

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2017-10-05
     Ever confirmed|0                           |1

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
The warning can be selectively suppressed by declaring the alias to have no
prototype, e.g., like so:

  int bar (int i) { return 0; }
  int foo () __attribute__ ((alias ("bar")));

In the latest revision of the patch (still under review), the warning is
controlled by -Wincompatible-pointer-types rather than -Wattributes.

Is this sufficient?
>From gcc-bugs-return-577506-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 15:26:41 2017
Return-Path: <gcc-bugs-return-577506-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 130140 invoked by alias); 5 Oct 2017 15:26: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 130085 invoked by uid 48); 5 Oct 2017 15:26:37 -0000
From: "sje at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82440] [8 regression] ICE in aarch64_simd_valid_immediate
Date: Thu, 05 Oct 2017 15:26:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: build, ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: sje at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-82440-4-yqek3IlPwp@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82440-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82440-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00566.txt.bz2
Content-length: 1488

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82440

Steve Ellcey <sje at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sje at gcc dot gnu.org,
                   |                            |sudi.das at arm dot com

--- Comment #1 from Steve Ellcey <sje at gcc dot gnu.org> ---
Presumably due to this patch:

2017-10-04  Sudakshina Das  <sudi.das@arm.com>

        * config/aarch64/aarch64-protos.h (enum simd_immediate_check): New
        check type for aarch64_simd_valid_immediate.
        (aarch64_output_simd_mov_immediate): Update prototype.
        (aarch64_simd_valid_immediate): Update prototype.
        * config/aarch64/aarch64-simd.md (orr<mode>3): modified pattern to add
        support for ORR-immediate.
        (and<mode>3): modified pattern to add support for BIC-immediate.
        * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Function
        now checks for valid immediate for BIC and ORR based on new enum
        argument.
        (aarch64_output_simd_mov_immediate): Function now used to output
        BIC/ORR imm as well based on new enum argument.
        * config/aarch64/constraints.md (Do): New vector immediate constraint.
        (Db) : Likewise.
        * config/aarch64/predicates.md (aarch64_reg_or_orr_imm): New predicate.
        (aarch64_reg_or_bic_imm): Likewise.
>From gcc-bugs-return-577505-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 15:26:14 2017
Return-Path: <gcc-bugs-return-577505-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 129271 invoked by alias); 5 Oct 2017 15:26:14 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 129220 invoked by uid 48); 5 Oct 2017 15:26:10 -0000
From: "amonakov at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/82395] [8 Regression] qsort comparator non-negative on sorted output: 1 in color_allocnos
Date: Thu, 05 Oct 2017 15:26:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-checking, ice-on-valid-code
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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-82395-4-ZRdgV2i7hn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82395-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82395-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00565.txt.bz2
Content-length: 579

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82395

Alexander Monakov <amonakov at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-10-05
     Ever confirmed|0                           |1

--- Comment #1 from Alexander Monakov <amonakov at gcc dot gnu.org> ---
I posted a candidate patch for review at
https://gcc.gnu.org/ml/gcc-patches/2017-10/msg00271.html
>From gcc-bugs-return-577507-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 15:27:20 2017
Return-Path: <gcc-bugs-return-577507-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 131004 invoked by alias); 5 Oct 2017 15:27: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 130942 invoked by uid 48); 5 Oct 2017 15:27:15 -0000
From: "tnfchris at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/80928] SLP vectorization does not handle induction in outer loop vectorization
Date: Thu, 05 Oct 2017 15:27:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tnfchris at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-80928-4-6OC4ds2F3O@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80928-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80928-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00567.txt.bz2
Content-length: 1087

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80928

Tamar Christina <tnfchris at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tnfchris at gcc dot gnu.org

--- Comment #26 from Tamar Christina <tnfchris at gcc dot gnu.org> ---
Author: tnfchris
Date: Thu Oct 05 15:17:39 2017
New Revision: 253452

URL: https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=253452
Log:
gcc/testsuite/
2017-10-05  Tamar Christina  <tamar.christina@arm.com>

        * gcc.dg/vect/slp-perm-9.c: Use vect_sizes_16B_8B.
        * lib/target-supports.exp (vect_sizes_16B_8B): New.

gcc/
2017-10-05  Tamar Christina  <tamar.christina@arm.com>

        * doc/sourcebuild.texi (vect_sizes_16B_8B, vect_sizes_32B_16B): New.

Modified:
        trunk/gcc/ChangeLog
        trunk/gcc/doc/sourcebuild.texi
        trunk/gcc/testsuite/ChangeLog
        trunk/gcc/testsuite/gcc.dg/vect/slp-perm-9.c
        trunk/gcc/testsuite/lib/target-supports.exp
>From gcc-bugs-return-577508-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 15:49:50 2017
Return-Path: <gcc-bugs-return-577508-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 22849 invoked by alias); 5 Oct 2017 15:49: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 22816 invoked by uid 48); 5 Oct 2017 15:49:46 -0000
From: "sudi.das at arm dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82440] [8 regression] ICE in aarch64_simd_valid_immediate
Date: Thu, 05 Oct 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: build, ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: sudi.das at arm dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82440-4-K1Hgj7PuDY@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82440-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82440-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00568.txt.bz2
Content-length: 188

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82440

--- Comment #2 from Sudakshina Das <sudi.das at arm dot com> ---
Sorry about this. I am currently testing a fix for this.

Sudakshina
>From gcc-bugs-return-577509-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 15:53:48 2017
Return-Path: <gcc-bugs-return-577509-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 41265 invoked by alias); 5 Oct 2017 15:53: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 40633 invoked by uid 48); 5 Oct 2017 15:53:42 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/82365] stack locations are consolidated if noreturn function is on the path
Date: Thu, 05 Oct 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: middle-end
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-82365-4-TUzD4Icvyg@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82365-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82365-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00569.txt.bz2
Content-length: 4245

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82365

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org,
                   |                            |matz at gcc dot gnu.org,
                   |                            |rguenth at gcc dot gnu.org

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #2)
> Basically someone needs to look into add_scope_conflicts (in gimplecfg.c) to
> see the scope conflict is being added.

??  Implying clobber stmts for all variables after noreturn calls wouldn't
change anything.  The problem is that all the variables are addressable/escape
and all the fortify_panic () calls are threaded.  So, on the coalesced
fortify_panic () call the stack conflict code thinks all the 4 info escaped
variables can be live during that call.

The current add_scope_conflicts is fairly simple algorithm, first we walk basic
blocks, whenever we see any kind of reference to a stack variable under
consideration, we set it in a bitmap, whenever we see a clobber stmt for such a
variable, we clear it, at the start of bb we or into the bitmap the bitmaps
from all the predecessor bb and remember the bitmap at the end of the bb, we
keep propagating it until no further changes happen.
And finally we just walk all bbs, on the first non-debug non-conflict stmt we
add conflicts for all currently live vars at that point, and then for any stmt
add conflicts for directly referenced vars in the stmt.

Now, for this testcase to be optimized, one step would be to be more
conservative on which stmt we do this:
          if (for_conflict
              && visit == visit_op)
            {
              /* If this is the first real instruction in this BB we need
                 to add conflicts for everything live at this point now.
                 Unlike classical liveness for named objects we can't
                 rely on seeing a def/use of the names we're interested in.
                 There might merely be indirect loads/stores.  We'd not add any
                 conflicts for such partitions.  */
              bitmap_iterator bi;
              unsigned i;
              EXECUTE_IF_SET_IN_BITMAP (work, 0, i, bi)
                {
                  struct stack_var *a = &stack_vars[i];
                  if (!a->conflicts)
                    a->conflicts = BITMAP_ALLOC (&stack_var_bitmap_obstack);
                  bitmap_ior_into (a->conflicts, work);
                }
              visit = visit_conflict;
            }
(well, obviously we'd need to visit = visit_conflict; for for_conflict from the
first stmt and use some bool to track the first "indirect" stmt).
I think it needs to be done solely on statements that could have any indirect
loads/stores (so calls, loads, stores, asm stmts, anything else?), but not say
on arithmetics with SSA_NAME operands only etc., there we care only about
explicitly referenced vars.

This wouldn't help here because fortify_panic is a call.

Another step could be track which of the live variables are address taken in
another set of bitmaps (don't track just whether it is addressable, that is
TREE_ADDRESSABLE bit after all, but when its address was taken).  In statements
when the var has been seen live already, but not yet address taken, we wouldn't
need to record conflicts on possibly indirect stmts, for those only explict
references would imply a conflict (in particular, only conflicts between the
addressable work set vs. addressable work set).  I bet a clobber should still
clear both bitmaps, even if address is live across a clobber, any dereferences
through that would be invalid.  The last argument of
walk_stmt_load_store_addr_ops is the callback for stuff that had the address
taken, so I think we could use that.  We'd need to take care of either handling
all the possibly indirect stmts the above way, or track separately which vars
were marked addressable since the last possibly indirect stmt.

Richard/Micha, thoughts on that?
>From gcc-bugs-return-577510-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 16:04:40 2017
Return-Path: <gcc-bugs-return-577510-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 39886 invoked by alias); 5 Oct 2017 16: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 39793 invoked by uid 48); 5 Oct 2017 16:04:32 -0000
From: "sje at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/82395] [8 Regression] qsort comparator non-negative on sorted output: 1 in color_allocnos
Date: Thu, 05 Oct 2017 16:04:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-checking, ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: sje at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-82395-4-w0QmLy2F7L@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82395-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82395-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00570.txt.bz2
Content-length: 1728

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82395

Steve Ellcey <sje at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sje at gcc dot gnu.org

--- Comment #2 from Steve Ellcey <sje at gcc dot gnu.org> ---
I tried the patch on an aarch64 bootstrap and it still fails, though the trace
looks different.

/home/sellcey/gcc-stdc/obj/gcc/aarch64-unknown-linux-gnu/libstdc++-v3/include/bits/deque.tcc:626:7:
error: qsort comparator non-negative on sorted output: 8
       }
       ^
during RTL pass: sched2
/home/sellcey/gcc-stdc/obj/gcc/aarch64-unknown-linux-gnu/libstdc++-v3/include/bits/deque.tcc:626:7:
internal compiler error: qsort checking failed
0x1d1c5c7 qsort_chk_error
        ../../../src/gcc/gcc/vec.c:222
0x1d1c9e7 qsort_chk(void*, unsigned long, unsigned long, int (*)(void const*,
void const*))
        ../../../src/gcc/gcc/vec.c:274
0x1be2ebf ready_sort_real
        ../../../src/gcc/gcc/haifa-sched.c:3087
0x1be2f53 ready_sort
        ../../../src/gcc/gcc/haifa-sched.c:3103
0x1bede13 schedule_block(basic_block_def**, void*)
        ../../../src/gcc/gcc/haifa-sched.c:6749
0x1285b9f schedule_region
        ../../../src/gcc/gcc/sched-rgn.c:3174
0x1286da3 schedule_insns()
        ../../../src/gcc/gcc/sched-rgn.c:3513
0x1287acf rest_of_handle_sched2
        ../../../src/gcc/gcc/sched-rgn.c:3737
0x1287d2f execute
        ../../../src/gcc/gcc/sched-rgn.c:3873
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-577511-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 16:06:31 2017
Return-Path: <gcc-bugs-return-577511-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 41897 invoked by alias); 5 Oct 2017 16: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 41806 invoked by uid 48); 5 Oct 2017 16:06:22 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/82365] stack locations are consolidated if noreturn function is on the path
Date: Thu, 05 Oct 2017 16:06:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82365-4-3XmZTa764j@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82365-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82365-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00571.txt.bz2
Content-length: 1718

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82365

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
The reason why that would work in this case is that we have
  info = {};
as the first stmt that mentions it, but doesn't take address of info.
Then there is
  if (something)
    fortify_panic ();
The condition isn't possibly indirect stmt, fortify_panic is (it is a call),
but none of the info vars are addressable at that point.  Then there is:
  i2c_new_device(&info);
which first takes info's address and is also (afterwards) a possibly indirect
call (so, we first need to walk explicit references and then handle the
possibly indirect, not the other way around).  But, in this spot only one of
the info vars is live/addressable, not all of them (on fortify_panic () all 4
info vars are live, but none is addressable).
  info ={v} {CLOBBER};
Finally, the var is no longer live nor addressable.

Now, if you change the code so that 
i2c_new_device(&info);
comes first and then
f(a);
this would no longer be optimized, because in the common fortify_panic call all
4 info vars would be addressable (even escaped to another function).

That said, if it is the same type of variable and it can't be shared, I wonder
why the kernel just doesn't use the same variable.
Like:
        switch (model) {
                struct i2c_board_info info;
        case 1:
                info = (struct i2c_board_info) {};
                f(a);
                i2c_new_device(&info);
                break;
        case 2:
                info = (struct i2c_board_info) {};
                f(b);
                i2c_new_device(&info);
                break;
...
        }
(or memset or whatever).
>From gcc-bugs-return-577512-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 16:20:58 2017
Return-Path: <gcc-bugs-return-577512-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 24567 invoked by alias); 5 Oct 2017 16:20:57 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 23861 invoked by uid 48); 5 Oct 2017 16:20:52 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/82393] Compilation error on cygwin64
Date: Thu, 05 Oct 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: ada
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: build
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ebotcazou at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ebotcazou at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82393-4-nM1KaokwCy@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82393-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82393-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00572.txt.bz2
Content-length: 496

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82393

--- Comment #14 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> FYI, to make you an idea of the c380004's failure, a SEGV occurs in
> cygwin.S:___chkstk_ms, caused by stack check at c380004.adb:132.

Ah, yes, it's a known issue on 64-bit Windows.  Both tests are pathological and
require more than 2 MB of stack to pass on 64-bit platforms, so the special
pragma Link_With in s-taprop-mingw.adb would need to be bumped to 0x400000.
>From gcc-bugs-return-577513-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 16:25:24 2017
Return-Path: <gcc-bugs-return-577513-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 39130 invoked by alias); 5 Oct 2017 16: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 39022 invoked by uid 55); 5 Oct 2017 16:25:19 -0000
From: "joseph at codesourcery dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82435] new __attribute__((alias)) warning gets in the way
Date: Thu, 05 Oct 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: 8.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: joseph at codesourcery 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-82435-4-qNCmxzOtWw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82435-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82435-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00573.txt.bz2
Content-length: 420

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82435

--- Comment #2 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
In my view, a separate option for this warning rather than 
-Wincompatible-pointer-types would be best (as it's much more likely 
people will want to disable this warning than that they will want to 
disable other cases of -Wincompatible-pointer-types or -Wattributes).
>From gcc-bugs-return-577514-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 16:32:58 2017
Return-Path: <gcc-bugs-return-577514-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 74908 invoked by alias); 5 Oct 2017 16:32:58 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 74827 invoked by uid 55); 5 Oct 2017 16:32:52 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/82393] Compilation error on cygwin64
Date: Thu, 05 Oct 2017 16:32:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: ada
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: build
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ebotcazou at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ebotcazou at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82393-4-tlnXRkSopy@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82393-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82393-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00574.txt.bz2
Content-length: 515

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82393

--- Comment #15 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Author: ebotcazou
Date: Thu Oct  5 16:32:21 2017
New Revision: 253454

URL: https://gcc.gnu.org/viewcvs?rev=253454&root=gcc&view=rev
Log:
        PR ada/82393
        * mingw32.h (_O_U8TEXT, _O_U16TEXT, _O_WTEXT): Delete.
        * sysdep.c (__gnat_set_mode ): Use DJGPP version for Cygwin.

Modified:
    trunk/gcc/ada/ChangeLog
    trunk/gcc/ada/mingw32.h
    trunk/gcc/ada/sysdep.c
>From gcc-bugs-return-577515-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 16:33:17 2017
Return-Path: <gcc-bugs-return-577515-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 77088 invoked by alias); 5 Oct 2017 16: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 76652 invoked by uid 55); 5 Oct 2017 16:33:12 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/82393] Compilation error on cygwin64
Date: Thu, 05 Oct 2017 16:33:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: ada
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: build
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ebotcazou at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ebotcazou at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82393-4-S1qhG2yqyg@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82393-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82393-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00575.txt.bz2
Content-length: 563

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82393

--- Comment #16 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Author: ebotcazou
Date: Thu Oct  5 16:32:40 2017
New Revision: 253455

URL: https://gcc.gnu.org/viewcvs?rev=253455&root=gcc&view=rev
Log:
        PR ada/82393
        * mingw32.h (_O_U8TEXT, _O_U16TEXT, _O_WTEXT): Delete.
        * sysdep.c (__gnat_set_mode ): Use DJGPP version for Cygwin.

Modified:
    branches/gcc-7-branch/gcc/ada/ChangeLog
    branches/gcc-7-branch/gcc/ada/mingw32.h
    branches/gcc-7-branch/gcc/ada/sysdep.c
>From gcc-bugs-return-577516-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 16:33:46 2017
Return-Path: <gcc-bugs-return-577516-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 78026 invoked by alias); 5 Oct 2017 16:33: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 77965 invoked by uid 48); 5 Oct 2017 16:33:42 -0000
From: "sje at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/82395] [8 Regression] qsort comparator non-negative on sorted output: 1 in color_allocnos
Date: Thu, 05 Oct 2017 16:33:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-checking, ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: sje at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82395-4-OchJZtXuUf@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82395-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82395-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00576.txt.bz2
Content-length: 287

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82395

--- Comment #3 from Steve Ellcey <sje at gcc dot gnu.org> ---
I am not sure if PR 82385 and PR 82396 are different bugs or not, they both
involve qsort problems.  I guess the aarch64 failure is PR 82396 and not this
one, PR 82395.
>From gcc-bugs-return-577517-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 16:34:22 2017
Return-Path: <gcc-bugs-return-577517-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 78993 invoked by alias); 5 Oct 2017 16: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 78929 invoked by uid 48); 5 Oct 2017 16:34:16 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/82393] Compilation error on cygwin64
Date: Thu, 05 Oct 2017 16:34:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: ada
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: build
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ebotcazou at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ebotcazou at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution target_milestone
Message-ID: <bug-82393-4-eooOrkvg9b@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82393-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82393-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00577.txt.bz2
Content-length: 493

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82393

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |7.3

--- Comment #17 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Patch applied.
>From gcc-bugs-return-577518-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 16:51:15 2017
Return-Path: <gcc-bugs-return-577518-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 99294 invoked by alias); 5 Oct 2017 16:51:15 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 90407 invoked by uid 48); 5 Oct 2017 16:51:11 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/69604] ICE in gfc_add_modify_loc, at fortran/trans.c:159
Date: Thu, 05 Oct 2017 16:51:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-69604-4-iYD5CmC83v@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-69604-4@http.gcc.gnu.org/bugzilla/>
References: <bug-69604-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00578.txt.bz2
Content-length: 371

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69604

--- Comment #14 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> The patch in comment 7 no longer applies: 'ts.type == BT_DERIVED' has been
> replaced with 'ts.type == BT_DERIVED'. Updating the patch along this line
> does not remove the ICE!-(

Read "replaced with 'gfc_bt_struct (ts.type)'".
>From gcc-bugs-return-577519-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 17:01:52 2017
Return-Path: <gcc-bugs-return-577519-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 39608 invoked by alias); 5 Oct 2017 17:01:51 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 36071 invoked by uid 48); 5 Oct 2017 17:01:42 -0000
From: "mukesh.kapoor at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82307] unscoped enum-base incorrect cast
Date: Thu, 05 Oct 2017 17:01:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 6.4.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mukesh.kapoor at oracle dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-82307-4-HAgWwACHZu@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82307-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82307-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00579.txt.bz2
Content-length: 1363

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82307

Mukesh Kapoor <mukesh.kapoor at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mukesh.kapoor at oracle dot com

--- Comment #4 from Mukesh Kapoor <mukesh.kapoor at oracle dot com> ---
This seems to be a problem in integral promotion in function
type_promotes_to(). The following change fixes the bug:

--- gcc/cp/cvt.c        (revision 253270)
+++ gcc/cp/cvt.c        (working copy)
@@ -1854,11 +1854,15 @@
       tree prom = type;
       if (TREE_CODE (prom) == ENUMERAL_TYPE)
        prom = ENUM_UNDERLYING_TYPE (prom);
-      if (TYPE_UNSIGNED (prom)
-         && ! int_fits_type_p (TYPE_MAX_VALUE (prom), totype))
-       prom = c_common_type_for_size (precision, 1);
-      else
-       prom = totype;
+      // If enum has fixed underlying type, use that type (bug 82307)
+      if (!ENUM_FIXED_UNDERLYING_TYPE_P (type))
+       {
+         if (TYPE_UNSIGNED (prom)
+             && ! int_fits_type_p (TYPE_MAX_VALUE (prom), totype))
+           prom = c_common_type_for_size (precision, 1);
+         else
+           prom = totype;
+       }
       if (SCOPED_ENUM_P (type))
        {
          if (abi_version_crosses (6)
>From gcc-bugs-return-577520-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 17:01:59 2017
Return-Path: <gcc-bugs-return-577520-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 40220 invoked by alias); 5 Oct 2017 17:01:59 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 39804 invoked by uid 48); 5 Oct 2017 17:01:54 -0000
From: "hubicka at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/80313] -march=znver1 produce worse code than -march=haswell
Date: Thu, 05 Oct 2017 17:01:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hubicka at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-80313-4-GTH56taBFc@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80313-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80313-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00580.txt.bz2
Content-length: 498

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80313

Jan Hubicka <hubicka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hubicka at gcc dot gnu.org

--- Comment #4 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
I have benchmarked the update of branch cost from 2 to 3 and commited it today.
So this should be fixed on mainline.
>From gcc-bugs-return-577521-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 18:48:36 2017
Return-Path: <gcc-bugs-return-577521-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 20008 invoked by alias); 5 Oct 2017 18:48:35 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 19695 invoked by uid 48); 5 Oct 2017 18:48:13 -0000
From: "qing.zhao at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/82396] [8 Regression] qsort comparator non-negative on sorted output: 4 in ready_sort_real in haifa scheduler
Date: Thu, 05 Oct 2017 18:48:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: build, ice-checking, ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: qing.zhao at oracle dot com
X-Bugzilla-Status: REOPENED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: wilco at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-82396-4-j7QnM6UOX2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82396-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82396-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00581.txt.bz2
Content-length: 460

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82396

Qing Zhao <qing.zhao at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |qing.zhao at oracle dot com

--- Comment #11 from Qing Zhao <qing.zhao at oracle dot com> ---
I am seeing the exactly same issue on aarch64 today (10/5/2017) as comment 10.
>From gcc-bugs-return-577522-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 18:52:50 2017
Return-Path: <gcc-bugs-return-577522-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 33662 invoked by alias); 5 Oct 2017 18:52:50 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 33594 invoked by uid 48); 5 Oct 2017 18:52:46 -0000
From: "wilco at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/82396] [8 Regression] qsort comparator non-negative on sorted output: 4 in ready_sort_real in haifa scheduler
Date: Thu, 05 Oct 2017 18:52:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: build, ice-checking, ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wilco at gcc dot gnu.org
X-Bugzilla-Status: REOPENED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: wilco at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82396-4-TuAMKkXF30@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82396-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82396-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00582.txt.bz2
Content-length: 320

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82396

--- Comment #12 from Wilco <wilco at gcc dot gnu.org> ---
(In reply to Qing Zhao from comment #11)
> I am seeing the exactly same issue on aarch64 today (10/5/2017) as comment
> 10.

It works if you apply my patch or replace qsort with (qsort) in
gcc/haifa-sched.c.
>From gcc-bugs-return-577523-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 19:31:11 2017
Return-Path: <gcc-bugs-return-577523-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 38341 invoked by alias); 5 Oct 2017 19:31:11 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 38295 invoked by uid 48); 5 Oct 2017 19:31:06 -0000
From: "arnd at linaro dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82437] [8 Regression] false-positive -Wtautological-compare warning with -std=gnu89
Date: Thu, 05 Oct 2017 19:31:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: arnd at linaro dot org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82437-4-h3kw2fVCCg@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82437-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82437-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00583.txt.bz2
Content-length: 247

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82437

--- Comment #3 from Arnd Bergmann <arnd at linaro dot org> ---
(In reply to Jakub Jelinek from comment #2)
> Untested fix.

This appears to address all instances of the problem for me, thanks!
>From gcc-bugs-return-577524-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 19:31:57 2017
Return-Path: <gcc-bugs-return-577524-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 39311 invoked by alias); 5 Oct 2017 19:31:57 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 39262 invoked by uid 48); 5 Oct 2017 19:31:52 -0000
From: "su at cs dot ucdavis.edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82441] New: ICE on valid code at -O3: qsort checking failed
Date: Thu, 05 Oct 2017 19:31:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: su at cs dot ucdavis.edu
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-82441-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00584.txt.bz2
Content-length: 2537

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82441

            Bug ID: 82441
           Summary: ICE on valid code at -O3: qsort checking failed
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: su at cs dot ucdavis.edu
  Target Milestone: ---

$ gcctk -v
Using built-in specs.
COLLECT_GCC=gcctk
COLLECT_LTO_WRAPPER=/home/su/software/tmp/gcc/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/8.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc-source-trunk/configure --enable-languages=c,c++,lto
--prefix=/home/su/software/tmp/gcc/gcc-trunk --disable-bootstrap
Thread model: posix
gcc version 8.0.0 20171005 (experimental) [trunk revision 253450] (GCC)
$
$ gcctk -O2 small.c
$ gcc-7.2.0 -O3 small.c
$
$ gcctk -O3 small.c
small.c: In function ‘fn1’:
small.c:8:6: error: qsort comparator non-negative on sorted output: 1
 void fn1 ()
      ^~~
during GIMPLE pass: slp
small.c:8:6: internal compiler error: qsort checking failed
0x66ef85 qsort_chk_error
        ../../gcc-source-trunk/gcc/vec.c:222
0x14dfc15 qsort_chk(void*, unsigned long, unsigned long, int (*)(void const*,
void const*))
        ../../gcc-source-trunk/gcc/vec.c:274
0x14c1953 vec<data_reference*, va_heap, vl_embed>::qsort(int (*)(void const*,
void const*))
        ../../gcc-source-trunk/gcc/vec.h:973
0x14c1953 vec<data_reference*, va_heap, vl_ptr>::qsort(int (*)(void const*,
void const*))
        ../../gcc-source-trunk/gcc/vec.h:1735
0x14c1953 vect_analyze_data_ref_accesses(vec_info*)
        ../../gcc-source-trunk/gcc/tree-vect-data-refs.c:2802
0xf15f66 vect_slp_analyze_bb_1
        ../../gcc-source-trunk/gcc/tree-vect-slp.c:2869
0xf15f66 vect_slp_bb(basic_block_def*)
        ../../gcc-source-trunk/gcc/tree-vect-slp.c:3034
0xf17865 execute
        ../../gcc-source-trunk/gcc/tree-vectorizer.c:998
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.
$


----------------------------------


struct A
{ 
  short b;
} c[1][4][9];

unsigned d, e, f, g;

void fn1 ()
{ 
  for (; e; e++)
    ;
  if (f)
    for (d = 0; d < 4; d++)
      for (g = 0; g < 9; g++)
        { 
          struct A i = { 1 };
          c[f][d][g] = i;
        }
}

int main ()
{ 
  fn1 ();
  return 0;
}
>From gcc-bugs-return-577525-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 19:47:33 2017
Return-Path: <gcc-bugs-return-577525-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 96949 invoked by alias); 5 Oct 2017 19: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 96890 invoked by uid 48); 5 Oct 2017 19:47:29 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/44882] Bogus types in references with mismatched commons
Date: Thu, 05 Oct 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: fortran
X-Bugzilla-Version: 4.6.0
X-Bugzilla-Keywords: accepts-invalid, wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-44882-4-ND6cESPvu6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-44882-4@http.gcc.gnu.org/bugzilla/>
References: <bug-44882-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00585.txt.bz2
Content-length: 327

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44882

--- Comment #18 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
The code in comment 1 is invalid, thus the FE can do what it likes. Would it be
enough to close this PR by emitting an error unless the code is compiled with
-std=legacy (as done for pr25071)?
>From gcc-bugs-return-577526-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 19:48:37 2017
Return-Path: <gcc-bugs-return-577526-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 98447 invoked by alias); 5 Oct 2017 19:48: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 98253 invoked by uid 48); 5 Oct 2017 19:48:25 -0000
From: "arnd at linaro dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/82365] stack locations are consolidated if noreturn function is on the path
Date: Thu, 05 Oct 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: middle-end
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: arnd at linaro 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-82365-4-vzwt7JWgSo@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82365-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82365-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00586.txt.bz2
Content-length: 1640

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82365

--- Comment #6 from Arnd Bergmann <arnd at linaro dot org> ---
(In reply to Jakub Jelinek from comment #5)

> Now, if you change the code so that 
> i2c_new_device(&info);
> comes first and then
> f(a);
> this would no longer be optimized, because in the common fortify_panic call
> all 4 info vars would be addressable (even escaped to another function).
> 
> That said, if it is the same type of variable and it can't be shared, I
> wonder why the kernel just doesn't use the same variable.

That is one of multiple workarounds I already implemented, the others are

1. split out the long case statements into separate functions (much too large
to be backported into stable kernel releases, but reduces the stack frames more
than the other approaches).
2. have only one variable (in the original driver the variables don't all have
the same name, so this patch also ends up being larger than the usual limit for
backported patches)
3. use strncpy() rather than strlcpy() (the fortified strncpy doesn't use
   strnlen()).
4. add the empty asm statement in strnlen()

Any of the above work fine, we just need to decide which one to use. I'm
currently leaning toward 3, followed by 1.

We will need to work around older compilers anyway, I mainly reported this
because it seemed like something that gcc should be able to handle better and
it could in theory cause problems elsewhere. I have only observed the problem
in one file in the kernel (an older device driver that probably has very few
users), so if this turns out hard to avoid in gcc, it won't be a big deal.
>From gcc-bugs-return-577527-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 20:17:28 2017
Return-Path: <gcc-bugs-return-577527-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 5662 invoked by alias); 5 Oct 2017 20:17: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 4087 invoked by uid 48); 5 Oct 2017 20:17:23 -0000
From: "clyon at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82442] New: vect/pr31699.c fails on arm
Date: Thu, 05 Oct 2017 20:17:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: clyon at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-82442-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00587.txt.bz2
Content-length: 907

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82442

            Bug ID: 82442
           Summary: vect/pr31699.c fails on arm
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: clyon at gcc dot gnu.org
  Target Milestone: ---

Since r253403, the gcc.dg/vect/pr31699.c is now enabled on arm*hf targets
thanks to vect_float effective target. It used to be unsupported with
vect_double.

Now that it is enabled, it fails on such targets:
FAIL:    gcc.dg/vect/pr31699.c -flto -ffat-lto-objects  scan-tree-dump-times
vect "vectorized 1 loops" 2
FAIL:    gcc.dg/vect/pr31699.c scan-tree-dump-times vect "vectorized 1 loops" 2

for instance,
--target arm-none-linux-gnueabihf
--with-mode arm
--with-cpu cortex-a9
--with-fpu neon-fp16
>From gcc-bugs-return-577528-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 20:47:54 2017
Return-Path: <gcc-bugs-return-577528-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 21071 invoked by alias); 5 Oct 2017 20:47:54 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 21006 invoked by uid 48); 5 Oct 2017 20:47:50 -0000
From: "didu31 at hotmail dot fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/82393] Compilation error on cygwin64
Date: Thu, 05 Oct 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: ada
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: build
X-Bugzilla-Severity: normal
X-Bugzilla-Who: didu31 at hotmail dot fr
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ebotcazou at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82393-4-FgqlwshFAF@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82393-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82393-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00588.txt.bz2
Content-length: 148

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82393

--- Comment #18 from Didier G <didu31 at hotmail dot fr> ---
Fine.
That's all folk !
;°)
>From gcc-bugs-return-577529-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 20:51:30 2017
Return-Path: <gcc-bugs-return-577529-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 27801 invoked by alias); 5 Oct 2017 20:51: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 27644 invoked by uid 48); 5 Oct 2017 20:51:21 -0000
From: "arnd at linaro dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82435] new __attribute__((alias)) warning gets in the way
Date: Thu, 05 Oct 2017 20:51:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: arnd at linaro dot org
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82435-4-I2N1IZJfoM@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82435-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82435-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00589.txt.bz2
Content-length: 886

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82435

--- Comment #3 from Arnd Bergmann <arnd at linaro dot org> ---
(In reply to Martin Sebor from comment #1)
> The warning can be selectively suppressed by declaring the alias to have no
> prototype, e.g., like so:
> 
>   int bar (int i) { return 0; }
>   int foo () __attribute__ ((alias ("bar")));

I think this won't work since we rely both prototypes to be just what they are
(yes, this is an ugly area of the kernel)

> In the latest revision of the patch (still under review), the warning is
> controlled by -Wincompatible-pointer-types rather than -Wattributes.
> 
> Is this sufficient?

Maybe we could change the SYSCALL_DEFINEx macro to use _Pragma("GCC diagnostic
push") etc to turn off whichever warning we hit around just the alias
declaration. Having a new warning to turn off globally would be easier though.
>From gcc-bugs-return-577530-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 21:03:41 2017
Return-Path: <gcc-bugs-return-577530-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 84224 invoked by alias); 5 Oct 2017 21:03: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 82523 invoked by uid 48); 5 Oct 2017 21:03:37 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libfortran/78549] Very slow formatted internal file output
Date: Thu, 05 Oct 2017 21:03:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libfortran
X-Bugzilla-Version: 6.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jvdelisle at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-78549-4-nvuCss39Kb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78549-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78549-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00590.txt.bz2
Content-length: 199

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78549

--- Comment #9 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Gfortran is even slower now (~9.5s), likely revision r251374 (pr78387).
>From gcc-bugs-return-577531-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 22:10:10 2017
Return-Path: <gcc-bugs-return-577531-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 118474 invoked by alias); 5 Oct 2017 22:10: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 118416 invoked by uid 48); 5 Oct 2017 22:10:05 -0000
From: "thiago at kde dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82443] New: Would like a way to control emission of vague/weak symbol for inline variables
Date: Thu, 05 Oct 2017 22:10:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: thiago at kde 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-82443-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00591.txt.bz2
Content-length: 1483

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82443

            Bug ID: 82443
           Summary: Would like a way to control emission of vague/weak
                    symbol for inline variables
           Product: gcc
           Version: 7.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: thiago at kde dot org
  Target Milestone: ---

C++17 introduced inline variables and made all static constexpr members be
implicitly inline. With C++14, this code:

=== header.h ===
struct S
{
    static constexpr int i = 42;
};

=== tu1.cpp ===
#include <header.h>
constexpr int S::i;

=== tu2.cpp ===
#include <header.h>
const void *f() { return &S::i; }

======

Clang 5 and GCC 7.2, when compiled with -std=c++14, emit the S::i symbol in
tu1.o and it's not weak. There's no S::i symbol emitted in tu2.o.

When compiled with -std=c++17, GCC 7 does not emit the symbol in tu1.o. Clang 5
does. Both compilers emit a weak symbol in tu2.o.

ICC 17 with -std=c++14 emits nothing in tu1.o and emits a weak S::i in tu2.o.

This inconsistency is fragile.

Now add -fvisibility=hidden -fvisibility-inlines-hidden: I'd like a way to make
sure that he inline variable is emitted only in my .cpp file. Everywhere else
that needs to take the address will not emit a copy and will get it from my
.so.
>From gcc-bugs-return-577532-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 05 23:41:48 2017
Return-Path: <gcc-bugs-return-577532-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 7638 invoked by alias); 5 Oct 2017 23: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 7569 invoked by uid 55); 5 Oct 2017 23:41:44 -0000
From: "dave.anglin at bell dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libfortran/79540] [7/8 Regression] FAIL: gfortran.dg/fmt_fw_d.f90   -O0  execution test
Date: Thu, 05 Oct 2017 23:41:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libfortran
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dave.anglin at bell dot net
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79540-4-80QVzmMgNV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79540-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79540-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00592.txt.bz2
Content-length: 506

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79540

--- Comment #11 from dave.anglin at bell dot net ---
# ./pr79540
 print '(f1.0)',    100.000000      ! => len=    1 *: no digits print '(f2.0)',
   100.000000      ! => len=    0 : no digits
 print '(f3.0)',    100.000000      ! => len=    0 : no digits
 print '(f1.1)',    100.000000      ! => len=    1 *: no digits
 print '(f3.1)',    100.000000      ! => len=    0 : no digits

--
John David Anglin       dave.anglin@bell.net
>From gcc-bugs-return-577533-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 00:47:14 2017
Return-Path: <gcc-bugs-return-577533-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 115417 invoked by alias); 6 Oct 2017 00:47:14 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 115379 invoked by uid 48); 6 Oct 2017 00:47:10 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82439] Missing (x | y) == x simplifications
Date: Fri, 06 Oct 2017 00:47:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: 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: cf_gcctarget bug_status cf_reconfirmed_on short_desc everconfirmed
Message-ID: <bug-82439-4-h66zD3rOzz@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82439-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82439-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00593.txt.bz2
Content-length: 823

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82439

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |aarch64
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-10-06
            Summary|[AArch64] Missing (x | y)   |Missing (x | y) == x
                   |== x simplifications        |simplifications
     Ever confirmed|0                           |1

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
"(x | y) == x" is simpler than "(y & ~x) == 0" on the tree level. 2 gimple vs
3.
So converting it on the gimple level is not going to happen.
>From gcc-bugs-return-577534-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 00:52:24 2017
Return-Path: <gcc-bugs-return-577534-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 126245 invoked by alias); 6 Oct 2017 00: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 125746 invoked by uid 48); 6 Oct 2017 00:52:21 -0000
From: "wdijkstr at arm dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82439] Missing (x | y) == x simplifications
Date: Fri, 06 Oct 2017 00:52:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wdijkstr at arm 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-82439-4-vKadjvoaGZ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82439-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82439-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00594.txt.bz2
Content-length: 735

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82439

Wilco <wdijkstr at arm dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |wdijkstr at arm dot com

--- Comment #2 from Wilco <wdijkstr at arm dot com> ---
(In reply to Andrew Pinski from comment #1)
> "(x | y) == x" is simpler than "(y & ~x) == 0" on the tree level. 2 gimple
> vs 3.
> So converting it on the gimple level is not going to happen.

Indeed, so not match.pd, but maybe target.pd could work. There is no BIC
tree/RTL operator, neither is there a target independent way to ask whether a
target supports BIC.
>From gcc-bugs-return-577535-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 01:00:39 2017
Return-Path: <gcc-bugs-return-577535-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 88485 invoked by alias); 6 Oct 2017 01:00: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 88407 invoked by uid 48); 6 Oct 2017 01:00:28 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82439] Missing (x | y) == x simplifications
Date: Fri, 06 Oct 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: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pinskia at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82439-4-ygK0eNNQzl@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82439-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82439-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00595.txt.bz2
Content-length: 374

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82439

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I was thinking more of expand time.  We need better expansion time options.

Maybe the option for expansion time is something which is parsed things like
this:

(for op (bit_and bit_ior)
 (expand
  (eq (op @0 @1) @0)
  ...


Hopefully you get the idea.
>From gcc-bugs-return-577536-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 06:25:00 2017
Return-Path: <gcc-bugs-return-577536-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 75266 invoked by alias); 6 Oct 2017 06:25: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 75153 invoked by uid 48); 6 Oct 2017 06:24:55 -0000
From: "amonakov at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82441] ICE on valid code at -O3: qsort checking failed
Date: Fri, 06 Oct 2017 06:25:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: amonakov 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-82441-4-Do7GjDDgWo@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82441-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82441-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00596.txt.bz2
Content-length: 675

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82441

Alexander Monakov <amonakov at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |amonakov at gcc dot gnu.org
         Resolution|---                         |DUPLICATE

--- Comment #1 from Alexander Monakov <amonakov at gcc dot gnu.org> ---
Thanks. Bug 82397 already has some analysis for this comparator - marking this
report as duplicate.

*** This bug has been marked as a duplicate of bug 82397 ***
>From gcc-bugs-return-577537-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 06:25:00 2017
Return-Path: <gcc-bugs-return-577537-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 75363 invoked by alias); 6 Oct 2017 06:25: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 75191 invoked by uid 48); 6 Oct 2017 06:24:57 -0000
From: "amonakov at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82397] [8 Regression] qsort comparator non-negative on sorted output: 1 in vect_analyze_data_ref_accesses
Date: Fri, 06 Oct 2017 06:25:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-checking, ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: amonakov 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: cc
Message-ID: <bug-82397-4-uuh6khPxij@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82397-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82397-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00597.txt.bz2
Content-length: 453

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82397

Alexander Monakov <amonakov at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |su at cs dot ucdavis.edu

--- Comment #8 from Alexander Monakov <amonakov at gcc dot gnu.org> ---
*** Bug 82441 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-577538-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 06:56:35 2017
Return-Path: <gcc-bugs-return-577538-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 120511 invoked by alias); 6 Oct 2017 06:56:35 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 117584 invoked by uid 48); 6 Oct 2017 06:56:31 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82444] New: ICE in ira_init_register_move_cost, at ira.c:1581
Date: Fri, 06 Oct 2017 06:56:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone
Message-ID: <bug-82444-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00598.txt.bz2
Content-length: 1726

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82444

            Bug ID: 82444
           Summary: ICE in ira_init_register_move_cost, at ira.c:1581
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: vmakarov at gcc dot gnu.org
  Target Milestone: ---

This looks like a very old ICE:

$ cat /tmp/ice.i
__float128 a;
void b () { __asm__("" : "+r"(a)); }

$ gcc /tmp/ice.i -m32 -march=athlon -c
during RTL pass: ira
/tmp/ice.i: In function ‘b’:
/tmp/ice.i:2:1: internal compiler error: in ira_init_register_move_cost, at
ira.c:1581
 void b () { __asm__("" : "+r"(a)); }
 ^~~~
0xcc3f0e ira_init_register_move_cost(machine_mode)
        ../../gcc/ira.c:1581
0xcda81e ira_init_register_move_cost_if_necessary
        ../../gcc/ira-int.h:1087
0xcdc912 record_reg_classes
        ../../gcc/ira-costs.c:857
0xcde57f record_operand_costs
        ../../gcc/ira-costs.c:1342
0xcdedac scan_one_insn
        ../../gcc/ira-costs.c:1492
0xcdf499 process_bb_for_costs
        ../../gcc/ira-costs.c:1613
0xcdf4dc process_bb_node_for_costs
        ../../gcc/ira-costs.c:1625
0xcd39b5 ira_traverse_loop_tree(bool, ira_loop_tree_node*, void
(*)(ira_loop_tree_node*), void (*)(ira_loop_tree_node*))
        ../../gcc/ira-build.c:1799
0xcdf8e1 find_costs_and_classes
        ../../gcc/ira-costs.c:1709
0xce1739 ira_costs()
        ../../gcc/ira-costs.c:2250
0xcd7e84 ira_build()
        ../../gcc/ira-build.c:3420
0xcce341 ira
        ../../gcc/ira.c:5270
0xcceb84 execute
        ../../gcc/ira.c:5581
>From gcc-bugs-return-577540-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 07:04:48 2017
Return-Path: <gcc-bugs-return-577540-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 1682 invoked by alias); 6 Oct 2017 07:04:48 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 1595 invoked by uid 48); 6 Oct 2017 07:04:43 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82436] [7 Regression] 465.tonto ICE in vect_get_slp_vect_defs, at tree-vect-slp.c:3410
Date: Fri, 06 Oct 2017 07:04:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority cf_known_to_work short_desc cf_known_to_fail
Message-ID: <bug-82436-4-PRy0NKjUnl@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82436-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82436-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00600.txt.bz2
Content-length: 762

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82436

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
      Known to work|                            |8.0
            Summary|[7/8 Regression] 465.tonto  |[7 Regression] 465.tonto
                   |ICE in                      |ICE in
                   |vect_get_slp_vect_defs, at  |vect_get_slp_vect_defs, at
                   |tree-vect-slp.c:3410        |tree-vect-slp.c:3410
      Known to fail|8.0                         |

--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed on trunk sofar.
>From gcc-bugs-return-577539-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 07:04:02 2017
Return-Path: <gcc-bugs-return-577539-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 130914 invoked by alias); 6 Oct 2017 07:04:02 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 130832 invoked by uid 55); 6 Oct 2017 07:03:55 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82436] [7/8 Regression] 465.tonto ICE in vect_get_slp_vect_defs, at tree-vect-slp.c:3410
Date: Fri, 06 Oct 2017 07:04:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82436-4-K70hOGg3uB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82436-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82436-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00599.txt.bz2
Content-length: 816

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82436

--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Fri Oct  6 07:03:23 2017
New Revision: 253473

URL: https://gcc.gnu.org/viewcvs?rev=253473&root=gcc&view=rev
Log:
2017-10-06  Richard Biener  <rguenther@suse.de>

        PR tree-optimization/82436
        * tree-vect-slp.c (vect_supported_load_permutation_p): More
        conservatively choose the vectorization factor when checking
        whether we can perform the required load permutation.
        (vect_transform_slp_perm_load): Assert when we may not fail.

        * gcc.dg/vect/pr82436.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.dg/vect/pr82436.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-vect-slp.c
>From gcc-bugs-return-577541-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 07:12:01 2017
Return-Path: <gcc-bugs-return-577541-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 63926 invoked by alias); 6 Oct 2017 07: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 63837 invoked by uid 55); 6 Oct 2017 07:11:57 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82437] [8 Regression] false-positive -Wtautological-compare warning with -std=gnu89
Date: Fri, 06 Oct 2017 07:12:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82437-4-hNO6m15rJ8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82437-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82437-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00601.txt.bz2
Content-length: 665

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82437

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Oct  6 07:11:25 2017
New Revision: 253476

URL: https://gcc.gnu.org/viewcvs?rev=253476&root=gcc&view=rev
Log:
        PR c/82437
        * c-warn.c (warn_tautological_bitwise_comparison): Instead of
        using to_widest use wide_int with the larger of the two precisions.

        * c-c++-common/Wtautological-compare-6.c: New test.

Added:
    trunk/gcc/testsuite/c-c++-common/Wtautological-compare-6.c
Modified:
    trunk/gcc/c-family/ChangeLog
    trunk/gcc/c-family/c-warn.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-577542-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 07:37:47 2017
Return-Path: <gcc-bugs-return-577542-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 111184 invoked by alias); 6 Oct 2017 07: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 104250 invoked by uid 48); 6 Oct 2017 07:37:41 -0000
From: "chr at terma dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82159] [6/7/8 Regression] ICE: in assign_temp, at function.c:961
Date: Fri, 06 Oct 2017 07:37:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: chr at terma dot com
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-82159-4-cM5sArLYnE@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82159-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82159-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00602.txt.bz2
Content-length: 1461

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82159

chr at terma dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |chr at terma dot com

--- Comment #6 from chr at terma dot com ---
(In reply to Jakub Jelinek from comment #5)
> Author: jakub
> Date: Sat Sep 30 08:25:02 2017
> New Revision: 253318
> 
> URL: https://gcc.gnu.org/viewcvs?rev=253318&root=gcc&view=rev
> Log:
> 	Backported from mainline
> 	2017-09-27  Jakub Jelinek  <jakub@redhat.com>
> 
> 	PR c++/82159
> 	* gimplify.c (gimplify_modify_expr): Don't optimize away zero sized
> 	lhs from calls if the lhs has addressable type.
> 
> 	* g++.dg/opt/pr82159.C: New test.
> 
> Added:
>     branches/gcc-7-branch/gcc/testsuite/g++.dg/opt/pr82159.C
> Modified:
>     branches/gcc-7-branch/gcc/ChangeLog
>     branches/gcc-7-branch/gcc/gimplify.c
>     branches/gcc-7-branch/gcc/testsuite/ChangeLog

Don't know if this is releated, but we exprience a similar issue (works on
GCC5, fails on 6 and 7). 

Newest snapshot build gcc-7-20171005.tar.xz:
internal compiler error: in assign_temp, at function.c:968
                 mY(obs.mZ - ProjectState<Obs,
ProbabilityDensity>::project(prediction.getMean(), obs)) {

(the error arrow points at last ")"

I cannot include the preprocessed code. 

It works with -O1 to -O3, but fails with -O0
>From gcc-bugs-return-577543-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 07:40:00 2017
Return-Path: <gcc-bugs-return-577543-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 125488 invoked by alias); 6 Oct 2017 07: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 124622 invoked by uid 55); 6 Oct 2017 07:39:46 -0000
From: "clyon at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/71727] -O3 -mstrict-align produces code which assumes unaligned vector accesses work
Date: Fri, 06 Oct 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: target
X-Bugzilla-Version: 6.1.0
X-Bugzilla-Keywords: patch, wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: clyon at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-71727-4-McGqkfteoY@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-71727-4@http.gcc.gnu.org/bugzilla/>
References: <bug-71727-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00603.txt.bz2
Content-length: 1111

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71727

--- Comment #5 from Christophe Lyon <clyon at gcc dot gnu.org> ---
Author: clyon
Date: Fri Oct  6 07:38:51 2017
New Revision: 253477

URL: https://gcc.gnu.org/viewcvs?rev=253477&root=gcc&view=rev
Log:
[AArch64] Backport to gcc-7 PR71727 fix -mstrict-align

2017-10-06  Christophe Lyon  <christophe.lyon@linaro.org>

        gcc/
        Backport from mainline r253242.
        2017-09-27  Christophe Lyon  <christophe.lyon@linaro.org>

        PR target/71727
        * config/aarch64/aarch64.c
        (aarch64_builtin_support_vector_misalignment): Always return false
        when misalignment is unknown.

        gcc/testsuite/
        Backport from mainline r253251.
        2017-09-27  Christophe Lyon  <christophe.lyon@linaro.org>

        PR target/71727
        * gcc.target/aarch64/pr71727-2.c: New test.



Added:
    branches/gcc-7-branch/gcc/testsuite/gcc.target/aarch64/pr71727-2.c
Modified:
    branches/gcc-7-branch/gcc/ChangeLog
    branches/gcc-7-branch/gcc/config/aarch64/aarch64.c
    branches/gcc-7-branch/gcc/testsuite/ChangeLog
>From gcc-bugs-return-577544-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 08:10:11 2017
Return-Path: <gcc-bugs-return-577544-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 105829 invoked by alias); 6 Oct 2017 08:10:11 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 103000 invoked by uid 55); 6 Oct 2017 08:10:07 -0000
From: "rguenther at suse dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/44882] Bogus types in references with mismatched commons
Date: Fri, 06 Oct 2017 08:10:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 4.6.0
X-Bugzilla-Keywords: accepts-invalid, wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenther at suse dot de
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-44882-4-0l5omjzc2C@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-44882-4@http.gcc.gnu.org/bugzilla/>
References: <bug-44882-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00604.txt.bz2
Content-length: 1441

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44882

--- Comment #19 from rguenther at suse dot de <rguenther at suse dot de> ---
On Thu, 5 Oct 2017, dominiq at lps dot ens.fr wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44882
> 
> --- Comment #18 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> The code in comment 1 is invalid, thus the FE can do what it likes. Would it be
> enough to close this PR by emitting an error unless the code is compiled with
> -std=legacy (as done for pr25071)?

Well, with -std=legacy the FE still emits "wrong code".  See comment#4
where we have a VAR_DECL of type 0x7ffff5ad9888 but accessing it as
if it were type 0x7ffff7fcb930 (the COMPONENT_REF arg 0 has a different
, incompatible type than its arg 1 DECL_CONTEXT).  We've had tree
verification for this in place at some point but IIRC I removed it
because FEs didn't follow the rules.

A workaround for the FE would be, when it builds the COMPONENT_REF
to access the 'dr' field, do

  if (TYPE_MAIN_VARIANT (TREE_TYPE (decl)) != TYPE_MAIN_VARIANT 
(record_type))
    decl = build1 (VIEW_CONVERT_EXPR, record_type, decl);

thus wrap the variable (in this case the common, and this is probably
only ever needed for (blank) commons with -std=legacy) inside
a VIEW_CONVERT_EXPR telling the middle-end we're trying to access
the data with a type that is not the same as the declared type.

That'll also fix TBAA.
>From gcc-bugs-return-577545-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 08:17:59 2017
Return-Path: <gcc-bugs-return-577545-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 68253 invoked by alias); 6 Oct 2017 08:17:59 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 57310 invoked by uid 48); 6 Oct 2017 08:17:54 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/82412] [8 regression] gfortran.dg/graphite/pr42334-1.f fails starting with r253342
Date: Fri, 06 Oct 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: testsuite
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-82412-4-hx5ZqSNUyD@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82412-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82412-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00605.txt.bz2
Content-length: 443

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82412

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
Should be fixed now.
>From gcc-bugs-return-577547-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 08:21:38 2017
Return-Path: <gcc-bugs-return-577547-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 1107 invoked by alias); 6 Oct 2017 08:21: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 1031 invoked by uid 55); 6 Oct 2017 08:21:30 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82421] [8 Regression] [graphite] ICE: tree check: expected ssa_name, have integer_cst in get_rename, at graphite-isl-ast-to-gimple.c:1127
Date: Fri, 06 Oct 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: 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: 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-82421-4-MVS0AjltnZ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82421-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82421-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00607.txt.bz2
Content-length: 501

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82421

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Fri Oct  6 08:20:58 2017
New Revision: 253478

URL: https://gcc.gnu.org/viewcvs?rev=253478&root=gcc&view=rev
Log:
2017-10-06  Richard Biener  <rguenther@suse.de>

        PR tree-optimization/82421
        * gcc.dg/graphite/pr82421.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.dg/graphite/pr82421.c
Modified:
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-577546-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 08:21:06 2017
Return-Path: <gcc-bugs-return-577546-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 130883 invoked by alias); 6 Oct 2017 08:21:06 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 130805 invoked by uid 48); 6 Oct 2017 08:21:02 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82421] [8 Regression] [graphite] ICE: tree check: expected ssa_name, have integer_cst in get_rename, at graphite-isl-ast-to-gimple.c:1127
Date: Fri, 06 Oct 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: 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: 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-82421-4-xyY6ZT1Pcd@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82421-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82421-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00606.txt.bz2
Content-length: 429

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82421

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-577548-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 08:24:26 2017
Return-Path: <gcc-bugs-return-577548-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 5117 invoked by alias); 6 Oct 2017 08:24: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 4709 invoked by uid 48); 6 Oct 2017 08:24:02 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82422] [8 Regression][graphite] ICE in set_codegen_error, at graphite-isl-ast-to-gimple.c:248
Date: Fri, 06 Oct 2017 08:24:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: 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: 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-82422-4-rcGJKqHHLH@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82422-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82422-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00608.txt.bz2
Content-length: 429

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82422

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-577549-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 08:24:33 2017
Return-Path: <gcc-bugs-return-577549-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 7651 invoked by alias); 6 Oct 2017 08:24:33 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 6422 invoked by uid 55); 6 Oct 2017 08:24:28 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82422] [8 Regression][graphite] ICE in set_codegen_error, at graphite-isl-ast-to-gimple.c:248
Date: Fri, 06 Oct 2017 08:24:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: 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: 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-82422-4-HQolweBVje@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82422-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82422-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00609.txt.bz2
Content-length: 501

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82422

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Fri Oct  6 08:23:56 2017
New Revision: 253479

URL: https://gcc.gnu.org/viewcvs?rev=253479&root=gcc&view=rev
Log:
2017-10-06  Richard Biener  <rguenther@suse.de>

        PR tree-optimization/82422
        * gcc.dg/graphite/pr82422.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.dg/graphite/pr82422.c
Modified:
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-577550-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 08:36:13 2017
Return-Path: <gcc-bugs-return-577550-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 52193 invoked by alias); 6 Oct 2017 08:36:12 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 52162 invoked by uid 48); 6 Oct 2017 08:36:09 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/47791] finish function is using literal value instead of a #defined one
Date: Fri, 06 Oct 2017 08:36:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: paolo.carlini at oracle dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to
Message-ID: <bug-47791-4-Ugm5spxXQv@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-47791-4@http.gcc.gnu.org/bugzilla/>
References: <bug-47791-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00610.txt.bz2
Content-length: 471

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47791

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |paolo.carlini at oracle dot com

--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Mine.
>From gcc-bugs-return-577551-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 08:58:47 2017
Return-Path: <gcc-bugs-return-577551-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 72223 invoked by alias); 6 Oct 2017 08:58: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 72152 invoked by uid 48); 6 Oct 2017 08:58:43 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82159] [6/7/8 Regression] ICE: in assign_temp, at function.c:961
Date: Fri, 06 Oct 2017 08: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.2.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82159-4-niusHaLxFo@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82159-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82159-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00611.txt.bz2
Content-length: 539

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82159

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
If you can't provide a testcase, then we can't do anything with it.
If the inability to provide a testcase is because it contains some proprietary
stuff that can't be made public, you always have the option to reduce the
testcase sufficiently that it is small enough to be releasable (perhaps after
also changing identifiers).
See https://gcc.gnu.org/wiki/A_guide_to_testcase_reduction for details how to
do that.
>From gcc-bugs-return-577552-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 09:01:59 2017
Return-Path: <gcc-bugs-return-577552-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 82916 invoked by alias); 6 Oct 2017 09:01:59 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 81157 invoked by uid 48); 6 Oct 2017 09:01:50 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/57109] ice tsubst_copy, at cp/pt.c:12171
Date: Fri, 06 Oct 2017 09:01:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle 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-57109-4-5IoPZhZEQA@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-57109-4@http.gcc.gnu.org/bugzilla/>
References: <bug-57109-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00612.txt.bz2
Content-length: 458

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57109

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|---                         |INVALID

--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Feedback not forthcoming.
>From gcc-bugs-return-577553-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 09:11:02 2017
Return-Path: <gcc-bugs-return-577553-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 113450 invoked by alias); 6 Oct 2017 09:11:02 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 113399 invoked by uid 48); 6 Oct 2017 09:10:59 -0000
From: "agraf at suse dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82445] New: ARM target generates unaligned STRD instruction
Date: Fri, 06 Oct 2017 09:11:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.1.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: agraf 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone cf_gcctarget attachments.created
Message-ID: <bug-82445-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00613.txt.bz2
Content-length: 1000

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82445

            Bug ID: 82445
           Summary: ARM target generates unaligned STRD instruction
           Product: gcc
           Version: 7.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: agraf at suse dot de
                CC: rguenth at gcc dot gnu.org
  Target Milestone: ---
            Target: ARM

Created attachment 42310
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42310&action=edit
Reproducer

The 32-bit ARM target in gcc generates an STRD instruction at not-multiple-of-8
offsets even with -no-unaligned-access specified. This currently breaks grub on
ARM, as it runs with alignment faults enabled.

This is also a regression introduced somewhere recently (gcc7?), as I haven't
seen these unaligned accesses generated before.

I've also attached a small reproducer for the issue.
>From gcc-bugs-return-577554-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 09:19:14 2017
Return-Path: <gcc-bugs-return-577554-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 106302 invoked by alias); 6 Oct 2017 09:19: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 106248 invoked by uid 55); 6 Oct 2017 09:19:10 -0000
From: "krebbel at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82317] [8 Regression] "'__builtin_s390_vec_min' matching variant requires z14 or higher" for __vector(2) double when it should work on -march=z13 as well
Date: Fri, 06 Oct 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: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: krebbel at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82317-4-BccJWMo4u5@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82317-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82317-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00614.txt.bz2
Content-length: 1291

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82317

--- Comment #2 from Andreas Krebbel <krebbel at gcc dot gnu.org> ---
Author: krebbel
Date: Fri Oct  6 09:18:37 2017
New Revision: 253480

URL: https://gcc.gnu.org/viewcvs?rev=253480&root=gcc&view=rev
Log:
PR82317: S/390: Fix vec_min/vec_max builtins for IBM z13.

With IBM z14 a hardware instruction for floating point min and max has
been added while for IBM z13 we emulated min/max for vector double with
compare and select.  This testcase makes sure that we fall back to the
emulated variant when compiling for z13.

gcc/ChangeLog:

2017-10-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

        PR target/82317
        * config/s390/s390-builtin-types.def: Regenerate.
        * config/s390/s390-builtins.def (s390_vfmaxdb_4, s390_vfmindb_4):
        Change flag from B_VXE to B_VX.
        (s390_vec_min_dbl): Remove B_VXE flag.

gcc/testsuite/ChangeLog:

2017-10-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

        PR target/82317
        * gcc.target/s390/zvector/pr82317.c: New test.


Added:
    trunk/gcc/testsuite/gcc.target/s390/zvector/pr82317.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/s390/s390-builtin-types.def
    trunk/gcc/config/s390/s390-builtins.def
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-577555-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 09:20:22 2017
Return-Path: <gcc-bugs-return-577555-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 108517 invoked by alias); 6 Oct 2017 09: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 108460 invoked by uid 55); 6 Oct 2017 09:20:18 -0000
From: "krebbel at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82322] [7/8 Regression] vec_ceil/vec_floor/vec_round intrincics do not work for gcc 8, need __builtin_s390_vfidb
Date: Fri, 06 Oct 2017 09:20:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: krebbel at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: krebbel at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82322-4-kpbtdlE29w@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82322-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82322-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00615.txt.bz2
Content-length: 1277

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82322

--- Comment #2 from Andreas Krebbel <krebbel at gcc dot gnu.org> ---
Author: krebbel
Date: Fri Oct  6 09:19:46 2017
New Revision: 253481

URL: https://gcc.gnu.org/viewcvs?rev=253481&root=gcc&view=rev
Log:
PR82322: S/390: Fix vec_ceil and friends

vec_ceil and friends are expanded by vecintrin.h to __builtin_s390_vfi
which is an overloaded builtin being replaced by either
__builtin_s390_vfisb or __builtin_s390_vfidb depending on its argument
types.

The problem in this PR was that the overloaded builtin definition of
__builtin_s390_vfi was missing in s390-builtins.def.

gcc/ChangeLog:

2017-10-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

        PR target/82322
        * config/s390/s390-builtins.def (s390_vfi): Define new overloaded
        builtin.
        * config/s390/s390-builtin-types.def: Regenerate.

gcc/testsuite/ChangeLog:

2017-10-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

        PR target/82322
        * gcc.target/s390/zvector/pr82322.c: New test.


Added:
    trunk/gcc/testsuite/gcc.target/s390/zvector/pr82322.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/s390/s390-builtin-types.def
    trunk/gcc/config/s390/s390-builtins.def
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-577557-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 09:24:44 2017
Return-Path: <gcc-bugs-return-577557-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 14154 invoked by alias); 6 Oct 2017 09:24:44 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 11365 invoked by uid 48); 6 Oct 2017 09:24:40 -0000
From: "krebbel at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82322] [7/8 Regression] vec_ceil/vec_floor/vec_round intrincics do not work for gcc 8, need __builtin_s390_vfidb
Date: Fri, 06 Oct 2017 09:24:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: krebbel at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
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 resolution
Message-ID: <bug-82322-4-GPqIBtzcfg@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82322-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82322-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00617.txt.bz2
Content-length: 531

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82322

Andreas Krebbel <krebbel at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Andreas Krebbel <krebbel at gcc dot gnu.org> ---
I'll commit the patch to GCC 7 branch as well after you have verified that it
fixes the problem for you.
>From gcc-bugs-return-577556-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 09:24:41 2017
Return-Path: <gcc-bugs-return-577556-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 11756 invoked by alias); 6 Oct 2017 09:24:40 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 126908 invoked by uid 48); 6 Oct 2017 09:24:30 -0000
From: "krebbel at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82317] [8 Regression] "'__builtin_s390_vec_min' matching variant requires z14 or higher" for __vector(2) double when it should work on -march=z13 as well
Date: Fri, 06 Oct 2017 09:24:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: krebbel 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-82317-4-DXzkMdFww9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82317-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82317-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00616.txt.bz2
Content-length: 570

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82317

Andreas Krebbel <krebbel at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Andreas Krebbel <krebbel at gcc dot gnu.org> ---
The problem is probably also in GCC 7. I'll commit the patch to GCC 7 branch as
well after you have verified that it fixes the problem for you.
>From gcc-bugs-return-577558-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 09:27:44 2017
Return-Path: <gcc-bugs-return-577558-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 10436 invoked by alias); 6 Oct 2017 09:27:44 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 367 invoked by uid 55); 6 Oct 2017 09:27:40 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82397] [8 Regression] qsort comparator non-negative on sorted output: 1 in vect_analyze_data_ref_accesses
Date: Fri, 06 Oct 2017 09:27:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-checking, ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: 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-82397-4-UiJdwRdY7i@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82397-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82397-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00618.txt.bz2
Content-length: 822

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82397

--- Comment #9 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Fri Oct  6 09:27:09 2017
New Revision: 253482

URL: https://gcc.gnu.org/viewcvs?rev=253482&root=gcc&view=rev
Log:
2017-10-06  Richard Biener  <rguenther@suse.de>

        PR tree-optimization/82397
        * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use
        operand_equal_p but rely on data_ref_compare_tree for detecting
        equalities.
        (vect_analyze_data_ref_accesses): Use data_ref_compare_tree
        to match up with dr_group_sort_cmp.

        * gfortran.dg/pr82397.f: New testcase.

Added:
    trunk/gcc/testsuite/gfortran.dg/pr82397.f
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-vect-data-refs.c
>From gcc-bugs-return-577559-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 09:38:40 2017
Return-Path: <gcc-bugs-return-577559-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 19446 invoked by alias); 6 Oct 2017 09: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 19373 invoked by uid 48); 6 Oct 2017 09:38:36 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82397] [8 Regression] qsort comparator non-negative on sorted output: 1 in vect_analyze_data_ref_accesses
Date: Fri, 06 Oct 2017 09:38:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-checking, ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: 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-82397-4-cMr6pnFcX2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82397-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82397-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00619.txt.bz2
Content-length: 430

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82397

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #10 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-577560-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 09:38:40 2017
Return-Path: <gcc-bugs-return-577560-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 19532 invoked by alias); 6 Oct 2017 09: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 19409 invoked by uid 48); 6 Oct 2017 09:38:37 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/82407] [8 Regression][meta-bug] qsort_chk fallout tracking
Date: Fri, 06 Oct 2017 09:38: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: 8.0
X-Bugzilla-Keywords: ice-checking, meta-bug
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: bug_status resolution
Message-ID: <bug-82407-4-GxteLyHxvx@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82407-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82407-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00620.txt.bz2
Content-length: 526

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82407
Bug 82407 depends on bug 82397, which changed state.

Bug 82397 Summary: [8 Regression] qsort comparator non-negative on sorted output: 1 in vect_analyze_data_ref_accesses
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82397

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
>From gcc-bugs-return-577561-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 09:39:43 2017
Return-Path: <gcc-bugs-return-577561-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 21615 invoked by alias); 6 Oct 2017 09:39:43 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 21544 invoked by uid 55); 6 Oct 2017 09:39:39 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82434] -fstore-merging does not work reliably.
Date: Fri, 06 Oct 2017 09:39:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82434-4-lMhHYODuXN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82434-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82434-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00621.txt.bz2
Content-length: 1627

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82434

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Oct  6 09:39:07 2017
New Revision: 253483

URL: https://gcc.gnu.org/viewcvs?rev=253483&root=gcc&view=rev
Log:
        PR tree-optimization/82434
        * fold-const.h (can_native_encode_type_p,
        can_native_encode_string_p): Remove.
        * fold-const.c (native_encode_int): Formatting fixes.  If ptr is NULL,
        don't encode anything, just return what would be otherwise returned.
        (native_encode_fixed, native_encode_complex, native_encode_vector):
        Likewise.
        (native_encode_string): Likewise.  Inline by hand
        can_native_encode_string_p.
        (can_native_encode_type_p): Remove.
        (can_native_encode_string_p): Remove.
        * tree-vect-stmts.c (vectorizable_store): Instead of testing just
        STRING_CSTs using can_native_encode_string_p, test all
        CONSTANT_CLASS_P values using native_encode_expr with NULL ptr.
        * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Remove last
        argument from native_encode_expr.
        (rhs_valid_for_store_merging_p): Use native_encode_expr with NULL ptr.
        (pass_store_merging::execute): Don't unnecessarily look for 3 stmts,
        but just 2.

        * gcc.dg/store_merging_9.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/store_merging_9.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/fold-const.c
    trunk/gcc/fold-const.h
    trunk/gcc/gimple-ssa-store-merging.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-vect-stmts.c
>From gcc-bugs-return-577563-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 09:40:58 2017
Return-Path: <gcc-bugs-return-577563-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 28110 invoked by alias); 6 Oct 2017 09:40: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 28071 invoked by uid 48); 6 Oct 2017 09:40:54 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82446] [8 Regression] Missed equalities in dr_group_sort_cmp
Date: Fri, 06 Oct 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: 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: 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-82446-4-B3Av9GbLgp@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82446-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82446-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00623.txt.bz2
Content-length: 293

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82446

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |8.0
>From gcc-bugs-return-577562-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 09:40:40 2017
Return-Path: <gcc-bugs-return-577562-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 23184 invoked by alias); 6 Oct 2017 09:40:40 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 22934 invoked by uid 48); 6 Oct 2017 09:40:36 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82446] New: [8 Regression] Missed equalities in dr_group_sort_cmp
Date: Fri, 06 Oct 2017 09:40:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter blocked target_milestone
Message-ID: <bug-82446-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00622.txt.bz2
Content-length: 894

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82446

            Bug ID: 82446
           Summary: [8 Regression] Missed equalities in dr_group_sort_cmp
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rguenth at gcc dot gnu.org
            Blocks: 82397
  Target Milestone: ---

The fix for PR82397 causes a few missed equalities and thus different
vectorizer group access detections because operand_equal_p was handling
commutated operands
and data_ref_compare_tree does not.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82397
[Bug 82397] [8 Regression] qsort comparator non-negative on sorted output: 1 in
vect_analyze_data_ref_accesses
>From gcc-bugs-return-577564-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 09:48:34 2017
Return-Path: <gcc-bugs-return-577564-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 20926 invoked by alias); 6 Oct 2017 09:48:34 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 20892 invoked by uid 48); 6 Oct 2017 09:48:30 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82446] [8 Regression] Missed equalities in dr_group_sort_cmp
Date: Fri, 06 Oct 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: 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: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-82446-4-Cr1swML7Ja@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82446-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82446-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00624.txt.bz2
Content-length: 1170

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82446

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Created attachment 42311
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42311&action=edit
failed patch attempt

I tried to address this in split_constant_offset, better canonicalizing trees
there.  While it handles the case in the original PR it regresses some others,
for example gcc.dg/vect/pr69783.c because it canonicalizes before folding,
possibly messing up canonicalization that happened to be ok before.

So the solution is probably to add a canonicalize_tree function that does just
this (without folding, just swapping operands in-place -- requiring tree
unsharing before if it is possibly shared).

Ideally we'd have a expr hash on each tree_exp that swap_tree_operands ()
could use so we'd properly canonicalize already during folding (conveniently
tree_exp _does_ have 4 bytes of unused padding...).  buildN could compute
this for us as well.

Anyway, a separate function looks more feasible at the moment, we can call that
from dr_innermost analysis (there's already some kind of weird canonicalization
function).
>From gcc-bugs-return-577565-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 09:56:39 2017
Return-Path: <gcc-bugs-return-577565-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 40615 invoked by alias); 6 Oct 2017 09:56: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 40555 invoked by uid 48); 6 Oct 2017 09:56:35 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82445] ARM target generates unaligned STRD instruction
Date: Fri, 06 Oct 2017 09:56:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.1.1
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords cf_gcctarget
Message-ID: <bug-82445-4-rOXilFbGJv@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82445-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82445-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00625.txt.bz2
Content-length: 1414

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82445

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
             Target|ARM                         |arm

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Does -fno-store-merging fix it?

store-merging currently does

      unsigned HOST_WIDE_INT align = split_store->align;
      tree offset_type = get_alias_type_for_stmts (split_store->orig_stmts);
      location_t loc = get_location_for_stmts (split_store->orig_stmts);

      tree int_type = build_nonstandard_integer_type (try_size, UNSIGNED);
      int_type = build_aligned_type (int_type, align);
      tree dest = fold_build2 (MEM_REF, int_type, addr,
                               build_int_cst (offset_type, try_pos));

and expects the target to cope with this.  But IIRC RTL expansion only
ever "honors" this if either it has a movmisalign optab for the mode
or it is SLOW_UNALIGNED_ACCESS (ok, arm seems to be SLOW_UNALIGNED_ACCESS).
So this means we go the bitfield store way (in the end this means store-merging
lacks proper costing for strict-align targets).  That may end up using
all sorts of patterns, like insv and friends.  Not sure what happens in the
end.
>From gcc-bugs-return-577566-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 10:02:29 2017
Return-Path: <gcc-bugs-return-577566-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 46966 invoked by alias); 6 Oct 2017 10:02:29 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 46827 invoked by uid 48); 6 Oct 2017 10:02:25 -0000
From: "agraf at suse dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82445] ARM target generates unaligned STRD instruction
Date: Fri, 06 Oct 2017 10:02:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.1.1
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: agraf 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-82445-4-zxLFxQVWbX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82445-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82445-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00626.txt.bz2
Content-length: 1222

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82445

--- Comment #2 from Alexander Graf <agraf at suse dot de> ---
(In reply to Richard Biener from comment #1)
> Does -fno-store-merging fix it?

Yes, but it generates worse code than -march=armv5 (which does not support
STRD) does:

-march=armv6 -fno-store-merging:
> 00000000 <x>:
>    0:	e59f3028 	ldr	r3, [pc, #40]	; 30 <x+0x30>
>    4:	e3a02008 	mov	r2, #8
>    8:	e3a0c010 	mov	ip, #16
>    c:	e3a00000 	mov	r0, #0
>   10:	e3e01002 	mvn	r1, #2
>   14:	e5933000 	ldr	r3, [r3]
>   18:	e1c3c0b6 	strh	ip, [r3, #6]
>   1c:	e1c300b8 	strh	r0, [r3, #8]
>   20:	e1c310ba 	strh	r1, [r3, #10]
>   24:	e1c320b4 	strh	r2, [r3, #4]
>   28:	e1c320bc 	strh	r2, [r3, #12]
>   2c:	e12fff1e 	bx	lr
>   30:	00000000 	.word	0x00000000

-march=armv5:
> 00000000 <x>:
>    0:	e59f3018 	ldr	r3, [pc, #24]	; 20 <x+0x20>
>    4:	e3a02008 	mov	r2, #8
>    8:	e59f0014 	ldr	r0, [pc, #20]	; 24 <x+0x24>
>    c:	e59f1014 	ldr	r1, [pc, #20]	; 28 <x+0x28>
>   10:	e5933000 	ldr	r3, [r3]
>   14:	e9830003 	stmib	r3, {r0, r1}
>   18:	e1c320bc 	strh	r2, [r3, #12]
>   1c:	e12fff1e 	bx	lr
>   20:	00000000 	.word	0x00000000
>   24:	00100008 	.word	0x00100008
>   28:	fffd0000 	.word	0xfffd0000
>From gcc-bugs-return-577567-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 10:04:16 2017
Return-Path: <gcc-bugs-return-577567-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 49497 invoked by alias); 6 Oct 2017 10:04:16 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 49435 invoked by uid 48); 6 Oct 2017 10:04:12 -0000
From: "sudi.das at arm dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82440] [8 regression] ICE in aarch64_simd_valid_immediate
Date: Fri, 06 Oct 2017 10:04:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: build, ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: sudi.das at arm dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82440-4-yD0BvQbu9b@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82440-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82440-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00627.txt.bz2
Content-length: 222

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82440

--- Comment #3 from Sudakshina Das <sudi.das at arm dot com> ---
Again my apologies for this.

Please refer to
https://gcc.gnu.org/ml/gcc-patches/2017-10/msg00329.html
>From gcc-bugs-return-577568-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 10:06:49 2017
Return-Path: <gcc-bugs-return-577568-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 51982 invoked by alias); 6 Oct 2017 10:06: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 51894 invoked by uid 55); 6 Oct 2017 10:06:45 -0000
From: "paolo at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/60153] internal compiler error: in dependent_type_p, at cp/pt.c:21951
Date: Fri, 06 Oct 2017 10:06:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.8.2
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-60153-4-oFJvlTCoT1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-60153-4@http.gcc.gnu.org/bugzilla/>
References: <bug-60153-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00628.txt.bz2
Content-length: 500

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60153

--- Comment #4 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Fri Oct  6 10:06:14 2017
New Revision: 253484

URL: https://gcc.gnu.org/viewcvs?rev=253484&root=gcc&view=rev
Log:
2017-10-06  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/60153
        * g++.dg/cpp0x/variadic-crash3.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/variadic-crash3.C
Modified:
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-577569-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 10:07:35 2017
Return-Path: <gcc-bugs-return-577569-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 55165 invoked by alias); 6 Oct 2017 10:07:35 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 55072 invoked by uid 48); 6 Oct 2017 10:07:31 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/60153] internal compiler error: in dependent_type_p, at cp/pt.c:21951
Date: Fri, 06 Oct 2017 10:07:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.8.2
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc resolution target_milestone
Message-ID: <bug-60153-4-KutpdXXil0@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-60153-4@http.gcc.gnu.org/bugzilla/>
References: <bug-60153-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00629.txt.bz2
Content-length: 556

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60153

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|nclimer at gmail dot com           |
         Resolution|---                         |FIXED
   Target Milestone|---                         |8.0

--- Comment #5 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Fixed in trunk.
>From gcc-bugs-return-577570-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 10:08:07 2017
Return-Path: <gcc-bugs-return-577570-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 56133 invoked by alias); 6 Oct 2017 10:08:06 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 56080 invoked by uid 48); 6 Oct 2017 10:08:03 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82445] ARM target generates unaligned STRD instruction
Date: Fri, 06 Oct 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: target
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: 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-82445-4-3z9tu3PnsA@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82445-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82445-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00630.txt.bz2
Content-length: 3061

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82445

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-10-06
     Ever confirmed|0                           |1

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
To answer myself, yes, -fno-store-merging fixes it.  RTL expansion is ok:

;; MEM[(void *)unknown_glyph.0_1 + 4B] = 1048584;

(insn 7 6 8 (set (reg:SI 112)
        (const_int 1048584 [0x100008])) "strd.c":50 -1
     (nil))

(insn 8 7 0 (set (mem:SI (plus:SI (reg/f:SI 110 [ unknown_glyph.0_1 ])
                (const_int 4 [0x4])) [0 MEM[(void *)unknown_glyph.0_1 + 4B]+0
S4 A32])
        (reg:SI 112)) "strd.c":50 -1
     (nil))

;; MEM[(void *)unknown_glyph.0_1 + 8B] = 4294770688;

(insn 9 8 10 (set (reg:SI 113)
        (const_int -196608 [0xfffffffffffd0000])) "strd.c":51 -1
     (nil))

(insn 10 9 0 (set (mem:SI (plus:SI (reg/f:SI 110 [ unknown_glyph.0_1 ])
                (const_int 8 [0x8])) [0 MEM[(void *)unknown_glyph.0_1 + 8B]+0
S4 A32])
        (reg:SI 113)) "strd.c":51 -1
     (nil))

;; MEM[(void *)unknown_glyph.0_1 + 12B] = 8;

(insn 11 10 12 (set (reg:SI 115)
        (const_int 8 [0x8])) "strd.c":53 -1
     (nil))

(insn 12 11 13 (set (reg:HI 114)
        (subreg:HI (reg:SI 115) 0)) "strd.c":53 -1
     (expr_list:REG_EQUAL (const_int 8 [0x8])
        (nil)))

(insn 13 12 0 (set (mem:HI (plus:SI (reg/f:SI 110 [ unknown_glyph.0_1 ])
                (const_int 12 [0xc])) [0 MEM[(void *)unknown_glyph.0_1 + 12B]+0
S2 A32])
        (reg:HI 114)) "strd.c":53 -1
     (nil))


The DI move is introduced by peephole2:

Splitting with gen_peephole2_12

which is ldrdstrd.md:

(define_peephole2 ; strd
  [(set (match_operand:SI 2 "memory_operand" "")
        (match_operand:SI 0 "arm_general_register_operand" ""))
   (set (match_operand:SI 3 "memory_operand" "")
        (match_operand:SI 1 "arm_general_register_operand" ""))]
  "TARGET_LDRD"
  [(const_int 0)]
{
  if (!gen_operands_ldrd_strd (operands, false, false, false))
    FAIL;
  else if (TARGET_ARM)
  {
    /* In ARM state, the destination registers of LDRD/STRD must be
       consecutive. We emit DImode access.  */
    operands[0] = gen_rtx_REG (DImode, REGNO (operands[0]));
    operands[2] = adjust_address (operands[2], DImode, 0);
    /* Emit [(set (match_dup 2) (match_dup 0))]  */
    emit_insn (gen_rtx_SET (operands[2], operands[0]));
    DONE;
  }
  else if (TARGET_THUMB2)
  {
    /* Emit the pattern:
       [(parallel [(set (match_dup 2) (match_dup 0))
                   (set (match_dup 3) (match_dup 1))])]  */
    rtx t1 = gen_rtx_SET (operands[2], operands[0]);
    rtx t2 = gen_rtx_SET (operands[3], operands[1]);
    emit_insn (gen_rtx_PARALLEL (VOIDmode, gen_rtvec (2, t1, t2)));
    DONE;
  }
})

but this doesn't at all consider alignment of the MEMs it merges.
>From gcc-bugs-return-577571-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 10:27:30 2017
Return-Path: <gcc-bugs-return-577571-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 33410 invoked by alias); 6 Oct 2017 10:27:30 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 33394 invoked by uid 48); 6 Oct 2017 10:27:26 -0000
From: "antoshkka at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82447] New: Consider removing cmp instruction while iterating on an array of known bound
Date: Fri, 06 Oct 2017 10:27:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.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-82447-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00631.txt.bz2
Content-length: 1242

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82447

            Bug ID: 82447
           Summary: Consider removing cmp instruction while iterating on
                    an array of known bound
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: antoshkka at gmail dot com
  Target Milestone: ---

Following code 

unsigned loop_read(unsigned char* a) {
    const unsigned size = 128;

    unsigned sum = 0;
    for (unsigned i = 0; i < size; ++i) {
        sum += a[i];
    }

    return sum;
}

Generates assembly:

loop_read(unsigned char*):
  lea rcx, [rdi+128]
  xor eax, eax
.L2:
  movzx edx, BYTE PTR [rdi]
  add rdi, 1
  add eax, edx
  cmp rdi, rcx  <=== This could be avoided
  jne .L2
  rep ret


The trick is to iterate from -128 to 0 and calling "jne .L2" right after the
increment. Here's how Clang does that:

loop_read(unsigned char*): # @loop_read(unsigned char*)
  xor eax, eax
  mov rcx, -128
.LBB0_1: # =>This Inner Loop Header: Depth=1
  movzx edx, byte ptr [rdi + rcx + 128]
  add eax, edx
  add rcx, 1
  jne .LBB0_1
  ret
>From gcc-bugs-return-577572-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 10:28:03 2017
Return-Path: <gcc-bugs-return-577572-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 34404 invoked by alias); 6 Oct 2017 10:28: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 34320 invoked by uid 48); 6 Oct 2017 10:27:58 -0000
From: "alexander.samoylov at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug web/82448] New: GCC web guide contains wrong information about Werror
Date: Fri, 06 Oct 2017 10: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: 4.3.2
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: alexander.samoylov 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-82448-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00632.txt.bz2
Content-length: 2443

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82448

            Bug ID: 82448
           Summary: GCC web guide contains wrong information about Werror
           Product: gcc
           Version: 4.3.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: web
          Assignee: unassigned at gcc dot gnu.org
          Reporter: alexander.samoylov at gmail dot com
  Target Milestone: ---

The documentation guide
https://gcc.gnu.org/onlinedocs/gcc-4.3.2/gcc/Warning-Options.html is wrong. The
chapter "3.8 Options to Request or Suppress Warnings" tells that the option
-Werror= makes the specified warning into an error, but it is not so. Look at
the simple test:

~> gcc --version
gcc (Debian 4.3.2-1.1) 4.3.2
~> gcc -Wsequence-point -c -o test.o test.c
test.c: In function 'main':
test.c:24: warning: operation on 'Y1_Ptr' may be undefined
~> gcc -Werror=sequence-point -c -o test.o test.c
test.c: In function 'main':
test.c:24: warning: operation on 'Y1_Ptr' may be undefined

It means that -Werror= still does not turn any warning to an error, but the
guide for 4.3.2 tells that is does.
-Werror=<warning> started to work at some later GCC version. I don't know
which, but at least on GCC 4.8.4 it works for me:
$ gcc --version
gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4
$ gcc -Werror=sequence-point -c -o test.o test.c
test1.c: In function ‘main’:
test1.c:24:16: error: operation on ‘Y1_Ptr’ may be undefined
[-Werror=sequence-point]
         *Y1_Ptr++ = *(Y1_Ptr - 1);
                ^
cc1: some warnings being treated as errors


Please, update each guide
https://gcc.gnu.org/onlinedocs/gcc-?.?.?/gcc/Warning-Options.html so that the
information about -Werror= is added only for the versions where it works. If
there are versions where is works partially (not for all warnings), please
refer to exact list of warnings with which it really works.

P.S.:
I wanted to use the references
https://gcc.gnu.org/onlinedocs/gcc-?.?.?/gcc/Warning-Options.html to compare
information about warnings between different versions and to find out from
which version -Werror=<warning> started to work. With the current wrong content
the guide is unusable for that.
I can install different GCC versions on the host to determine from which one
the option started to work, but it is a lot of work to do this way.

--
Best Regards,
Alexander.
>From gcc-bugs-return-577573-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 10:39:24 2017
Return-Path: <gcc-bugs-return-577573-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 43811 invoked by alias); 6 Oct 2017 10:39: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 43724 invoked by uid 48); 6 Oct 2017 10:39:20 -0000
From: "bernd.edlinger at hotmail dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82435] new __attribute__((alias)) warning gets in the way
Date: Fri, 06 Oct 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: c
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: bernd.edlinger at hotmail dot de
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-82435-4-sVtUa6kBll@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82435-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82435-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00633.txt.bz2
Content-length: 636

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82435

Bernd Edlinger <bernd.edlinger at hotmail dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bernd.edlinger at hotmail dot de

--- Comment #4 from Bernd Edlinger <bernd.edlinger at hotmail dot de> ---
Arnd, excuse me for possibly silly question.

Why is it necessary to have
sys_bla(with correct paramters)
and
SyS_bla(with generic parameters)

On the ABI level these aliases should be equivalent,
or are these not really the same?
>From gcc-bugs-return-577574-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 10:51:16 2017
Return-Path: <gcc-bugs-return-577574-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 74102 invoked by alias); 6 Oct 2017 10: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 74049 invoked by uid 48); 6 Oct 2017 10:51:12 -0000
From: "arnd at linaro dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82435] new __attribute__((alias)) warning gets in the way
Date: Fri, 06 Oct 2017 10:51:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: arnd at linaro dot org
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82435-4-d12qOvwcXQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82435-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82435-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00634.txt.bz2
Content-length: 1389

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82435

--- Comment #5 from Arnd Bergmann <arnd at linaro dot org> ---
(In reply to Bernd Edlinger from comment #4)
> Arnd, excuse me for possibly silly question.
> 
> Why is it necessary to have
> sys_bla(with correct paramters)
> and
> SyS_bla(with generic parameters)
> 
> On the ABI level these aliases should be equivalent,
> or are these not really the same?

The first one (sys_*) matches the prototype that is defined in a
header file and matches whatever user space should see. It can also
be called from other parts of the kernel using that prototype. This
is an alias to the second.

The second one (SyS_*) uses 'unsigned long' arguments to
ensure we don't get undefined behavior with arguments that
are shorter than a CPU register: When the ELF psABI calling
conventions mandate that the upper bits in a register are
zero-extended or sign-extended, calling the function from user
space with intentionally invalid contents may cause undefined
behavior, such as overflowing an array indexed by an 'unsigned
char' argument. The typecast from unsigned long to the real
type should ensure that the upper bits are correctly initialized
on all supported ABIs.

The third (SYS_*) prototype is for the inline function that contains
the actual syscall implementation, and it again has the correct
prototype according to the header file.
>From gcc-bugs-return-577575-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 10:52:52 2017
Return-Path: <gcc-bugs-return-577575-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 79686 invoked by alias); 6 Oct 2017 10:52: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 79249 invoked by uid 48); 6 Oct 2017 10:52:48 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82449] New: code-gen error in get_rename_from_scev
Date: Fri, 06 Oct 2017 10:52: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: rguenth at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter blocked target_milestone
Message-ID: <bug-82449-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00635.txt.bz2
Content-length: 741

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82449

            Bug ID: 82449
           Summary: code-gen error in get_rename_from_scev
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rguenth at gcc dot gnu.org
            Blocks: 59859
  Target Milestone: ---

SUBROUTINE JDFIDX(MKL,KGSH)
      DIMENSION MKL(6,6)
      NKL=0
  400 DO 40 KG = 1,KGSH
      DO 40 LG = 1,KG
      NKL = NKL + 1
   40 MKL(LG,KG) = NKL
      END


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59859
[Bug 59859] [meta-bug] GRAPHITE issues
>From gcc-bugs-return-577576-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 10:55:06 2017
Return-Path: <gcc-bugs-return-577576-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 105864 invoked by alias); 6 Oct 2017 10:55:01 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 99169 invoked by uid 48); 6 Oct 2017 10:54:56 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug web/82448] GCC web guide contains wrong information about Werror
Date: Fri, 06 Oct 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: web
X-Bugzilla-Version: 4.3.2
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: WONTFIX
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-82448-4-SmDRDNcGxv@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82448-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82448-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00636.txt.bz2
Content-length: 850

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82448

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Nobody is going to update the docs for old unsupported releases. Those docs are
generated from the source tarball for the release, so even if we made a new
4.3.7 release, it would only affect the docs for 4.3.7, not the 4.3.2 docs that
are already published.

Note that -Werror= does work for most warnings, just not for -Wsequence-point.
This is simply a bug in the old release, which has been fixed in current
releases.
>From gcc-bugs-return-577577-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 10:55:36 2017
Return-Path: <gcc-bugs-return-577577-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 41144 invoked by alias); 6 Oct 2017 10:55: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 19123 invoked by uid 48); 6 Oct 2017 10:55:31 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82449] code-gen error in get_rename_from_scev
Date: Fri, 06 Oct 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: tree-optimization
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 cc assigned_to everconfirmed
Message-ID: <bug-82449-4-HPWuYN6l1Q@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82449-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82449-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00637.txt.bz2
Content-length: 950

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82449

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2017-10-06
                 CC|                            |spop at gcc dot gnu.org
           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> ---
This is because we have a SCEV like

{(integer(kind=4)) {0, +, {1, +, 1}_1}_1, + 1}_2

which is affine and passes all other tests in scev_analyzable_p.  But we really
need to have all SCEVs that pass this test pass get_rename_from_scev which
means we should be able to call chrec_apply on it.

I have a patch.
>From gcc-bugs-return-577578-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 11:02:47 2017
Return-Path: <gcc-bugs-return-577578-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 102564 invoked by alias); 6 Oct 2017 11:02: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 102398 invoked by uid 48); 6 Oct 2017 11:02:38 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82447] [IVOPTS] Consider removing cmp instruction while iterating on an array of known bound
Date: Fri, 06 Oct 2017 11:02:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
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: keywords bug_status cf_reconfirmed_on cc short_desc everconfirmed
Message-ID: <bug-82447-4-Y755SjFNp0@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82447-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82447-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00638.txt.bz2
Content-length: 1075

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82447

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |missed-optimization
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-10-06
                 CC|                            |amker at gcc dot gnu.org
            Summary|Consider removing cmp       |[IVOPTS] Consider removing
                   |instruction while iterating |cmp instruction while
                   |on an array of known bound  |iterating on an array of
                   |                            |known bound
     Ever confirmed|0                           |1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
I think IVO knows to count from 128 down but not from -128 to 0 up so this
would need to be added (and hope that costing on the target is good enough to
prefer that variant).
>From gcc-bugs-return-577579-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 11:36:55 2017
Return-Path: <gcc-bugs-return-577579-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 114348 invoked by alias); 6 Oct 2017 11: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 109204 invoked by uid 48); 6 Oct 2017 11:36:48 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82447] [IVOPTS] Consider removing cmp instruction while iterating on an array of known bound
Date: Fri, 06 Oct 2017 11:36:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-82447-4-no7A3RRmi7@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82447-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82447-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00639.txt.bz2
Content-length: 544

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82447

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Indeed.  But when the body is:
        sum += a[size - 1 - i];
while base 128U with step -1U is considered, it isn't found as the cheapest for
some reason either.
>From gcc-bugs-return-577580-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 11:44:20 2017
Return-Path: <gcc-bugs-return-577580-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 108759 invoked by alias); 6 Oct 2017 11:44:20 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 108664 invoked by uid 48); 6 Oct 2017 11:44:16 -0000
From: "jamborm at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82363] [8 Regression] wrong code at -O1, -O2 and -O3 on x86_64-linux-gnu
Date: Fri, 06 Oct 2017 11:44:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jamborm at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jamborm at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-82363-4-5t9W1sq3s2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82363-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82363-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00640.txt.bz2
Content-length: 434

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82363

Martin Jambor <jamborm at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #7 from Martin Jambor <jamborm at gcc dot gnu.org> ---
Really fixed.
>From gcc-bugs-return-577581-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 11:47:52 2017
Return-Path: <gcc-bugs-return-577581-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 44838 invoked by alias); 6 Oct 2017 11:47: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 43373 invoked by uid 48); 6 Oct 2017 11:47:47 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/82396] [8 Regression] qsort comparator non-negative on sorted output: 4 in ready_sort_real in haifa scheduler
Date: Fri, 06 Oct 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: rtl-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: build, ice-checking, ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: REOPENED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: wilco at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority
Message-ID: <bug-82396-4-RfKa1Yw4uc@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82396-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82396-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00641.txt.bz2
Content-length: 292

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82396

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1
>From gcc-bugs-return-577582-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 11:55:27 2017
Return-Path: <gcc-bugs-return-577582-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 109967 invoked by alias); 6 Oct 2017 11:55:27 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 109917 invoked by uid 55); 6 Oct 2017 11:55:23 -0000
From: "wilco at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/82396] [8 Regression] qsort comparator non-negative on sorted output: 4 in ready_sort_real in haifa scheduler
Date: Fri, 06 Oct 2017 11:55:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: build, ice-checking, ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wilco at gcc dot gnu.org
X-Bugzilla-Status: REOPENED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: wilco at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82396-4-sYwCCWU9IY@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82396-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82396-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00642.txt.bz2
Content-length: 685

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82396

--- Comment #13 from Wilco <wilco at gcc dot gnu.org> ---
Author: wilco
Date: Fri Oct  6 11:54:51 2017
New Revision: 253487

URL: https://gcc.gnu.org/viewcvs?rev=253487&root=gcc&view=rev
Log:
PR82396 workaround

r253236 broke AArch64 bootstrap.  This is a temporary workaround that
disables qsort checking in the scheduler to enable continued development
and testing on AArch64.  This will be removed once the autopref scheduling
code has been fixed.

    gcc/
        PR rtl-optimization/82396
        * haifa-sched.c (ready_sort_real): Disable qsort checking.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/haifa-sched.c
>From gcc-bugs-return-577583-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 12:01:35 2017
Return-Path: <gcc-bugs-return-577583-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 10694 invoked by alias); 6 Oct 2017 12:01: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 10644 invoked by uid 48); 6 Oct 2017 12:01:26 -0000
From: "antoshkka at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82450] New: Consider optimizing multidimensional arrays access without -ftree-vectorize
Date: Fri, 06 Oct 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: tree-optimization
X-Bugzilla-Version: 8.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-82450-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00643.txt.bz2
Content-length: 2177

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82450

            Bug ID: 82450
           Summary: Consider optimizing multidimensional arrays access
                    without -ftree-vectorize
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: antoshkka at gmail dot com
  Target Milestone: ---

Iterating over multidimensional array uses a counter for each dimension. For
code 

using array_t = unsigned[10][10];
void multidim_array_fill_1(array_t& data) {
    for (unsigned i = 0; i < 10; ++i) {
        for (unsigned j = 0; j < 10; ++j) {
            data[i][j] = 1;
        }
    }
}


The following assembly is generated with -O2:

multidim_array_fill_1(unsigned int (&) [10][10]):
  lea rdx, [rdi+40]
  lea rcx, [rdi+440] <=== This could be avoided
.L3:
  lea rax, [rdx-40] <=== This could be avoided
.L2:
  mov DWORD PTR [rax], 1
  add rax, 4
  cmp rax, rdx
  jne .L2
  lea rdx, [rax+40] <=== This could be avoided
  cmp rdx, rcx      <=== This could be avoided
  jne .L3           <=== This could be avoided
  rep ret


Optimal assembly would be 

multidim_array_fill_1_opt(unsigned int (&) [10][10]):
  lea rax, [rdi+400]
.L2:
  mov DWORD PTR [rdi], 1
  add rdi, 4
  cmp rdi, rax
  jne .L2
  rep ret


as if rewriting the initial C++ code as:

void multidim_array_fill_1_opt(array_t& data_md) {
    unsigned* data = &data_md[0][0];
    for (unsigned i = 0; i < 100; ++i) {
        data[i] = 1;
    }
}


Seems that representing array as a single dimensional without vectorizing could
be enabled at -O2 because it is always better: less registers used, code is
smaller, less comparisons and instructions in loop.


P.S.: With -ftree-vectorize array is represented as a single dimensional array,
but memory access is vectorized with increase of code size:
.L2:
  mov DWORD PTR [rdi+32], 1
  mov DWORD PTR [rdi+36], 1
  add rdi, 40
  movups XMMWORD PTR [rdi-40], xmm0
  movups XMMWORD PTR [rdi-24], xmm0
  cmp rax, rdi
  jne .L2
>From gcc-bugs-return-577584-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 12:53:28 2017
Return-Path: <gcc-bugs-return-577584-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 53137 invoked by alias); 6 Oct 2017 12:53: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 46302 invoked by uid 48); 6 Oct 2017 12:53:24 -0000
From: "spop at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82449] code-gen error in get_rename_from_scev
Date: Fri, 06 Oct 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: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: spop 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-82449-4-2I177Ru5sX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82449-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82449-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00644.txt.bz2
Content-length: 504

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82449

--- Comment #2 from Sebastian Pop <spop at gcc dot gnu.org> ---
This part is not affine: {0, +, {1, +, 1}_1}_1
This is a polynomial of degree 2.
Are you sure the scev analysis reports this as affine?

I was trying to understand from the fortran code which part this scev comes
from...
and I think it comes from the NKL counter that gets incremented in the inner
loop,
counting the number of iterations of both loops, so it has a quadratic
evolution.
>From gcc-bugs-return-577585-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 12:53:49 2017
Return-Path: <gcc-bugs-return-577585-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 94544 invoked by alias); 6 Oct 2017 12:53:49 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 83471 invoked by uid 48); 6 Oct 2017 12:53:45 -0000
From: "matz at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/82365] stack locations are consolidated if noreturn function is on the path
Date: Fri, 06 Oct 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: middle-end
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: matz at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82365-4-CCNHkQPldz@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82365-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82365-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00645.txt.bz2
Content-length: 1324

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82365

--- Comment #7 from Michael Matz <matz at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #4)
> Richard/Micha, thoughts on that?

None better than what you came up with.  It'd solve this specific instance
of the problem (and not the one with swapped call statements).  I don't think
we should complicate and slow down the clobber algorithm for this partial
solution, though.

One problem with "not address taken up to here" is this situation:

  char a[100];
  char *p = &somethingelse;
  for () {
     *p = ...;
     p = a;
  }

So, you'd need to iterate address-takeness until fixpoint like normal liveness
as well.  As the current algorithm does this already for a crude approximation
of liveness you might be able to implement the idea without seriously
complicating it or slowing it down.  If so it'd make sense.  Otherwise I
wouldn't worry.

IMHO the real problem is rather the phase ordering between joining the
four no-return calls into one (and thereby merging scopes) and scope-based
analyses.  Possibly that joining should happen later (but it'd mean at RTL
level only, which is also meh), or the stack sharing should happen earlier
(which would possibly mean introducing type aliasing problems at GIMPLE level,
which is also meh).
>From gcc-bugs-return-577586-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 13:04:17 2017
Return-Path: <gcc-bugs-return-577586-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 93575 invoked by alias); 6 Oct 2017 13:04:17 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 91454 invoked by uid 48); 6 Oct 2017 13:04:09 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82451] New: [GRAPHITE] codegen error in get_rename_from_scev
Date: Fri, 06 Oct 2017 13:04: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: rguenth at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone
Message-ID: <bug-82451-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00646.txt.bz2
Content-length: 895

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82451

            Bug ID: 82451
           Summary: [GRAPHITE] codegen error in get_rename_from_scev
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rguenth at gcc dot gnu.org
                CC: spop at gcc dot gnu.org
  Target Milestone: ---

Another case.

Here we end up with an evolution in the containing loop (that is not part of
the scop).  But we don't know how to code-gen that.  Given we introduced the
dimension
in a way the counting IV would always be zero but did _not_ invent a real
"loop".

So we're missing a parameter to the SCOP I guess specifying that single value
corresponding to the outer loop canonical IV.

Will attach testcases.
>From gcc-bugs-return-577587-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 13:05:20 2017
Return-Path: <gcc-bugs-return-577587-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 17919 invoked by alias); 6 Oct 2017 13:05: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 14056 invoked by uid 48); 6 Oct 2017 13:05:15 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82451] [GRAPHITE] codegen error in get_rename_from_scev
Date: Fri, 06 Oct 2017 13:05:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
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: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-82451-4-jGneJ4VQrU@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82451-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82451-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00647.txt.bz2
Content-length: 310

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82451

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Created attachment 42312
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42312&action=edit
first testcase

ICEs with -O2 -floop-nest-optimize, needs cleanup for "proper" fortran.
>From gcc-bugs-return-577588-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 13:06:28 2017
Return-Path: <gcc-bugs-return-577588-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 26336 invoked by alias); 6 Oct 2017 13:06: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 26267 invoked by uid 48); 6 Oct 2017 13:06:23 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82451] [GRAPHITE] codegen error in get_rename_from_scev
Date: Fri, 06 Oct 2017 13:06:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 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: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-82451-4-3MjgtC2vHg@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82451-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82451-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00648.txt.bz2
Content-length: 265

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82451

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Created attachment 42313
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42313&action=edit
another testcase

-O2 -floop-nest-optimize
>From gcc-bugs-return-577589-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 13:20:53 2017
Return-Path: <gcc-bugs-return-577589-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 112692 invoked by alias); 6 Oct 2017 13:20: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 112625 invoked by uid 48); 6 Oct 2017 13:20:44 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/82452] New: <stdio.h> defines macros for getc and putc
Date: Fri, 06 Oct 2017 13:20:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 8.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_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-82452-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00649.txt.bz2
Content-length: 1134

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82452

            Bug ID: 82452
           Summary: <stdio.h> defines macros for getc and putc
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: redi at gcc dot gnu.org
  Target Milestone: ---

#include <stdio.h>
#ifdef getc
# error getc defined as macro
#endif
#ifdef putc
# error putc defined as macro
#endif

prog.cc:3:3: error: #error getc defined as macro
 # error getc defined as macro
   ^~~~~
prog.cc:6:3: error: #error putc defined as macro
 # error putc defined as macro
   ^~~~~

There are probably lots of other functions (in <stdio.h> and other C headers)
with the same problem.

Either we need to create our own <stdio.h> wrapper and then #include_next the C
one, or get libc to stop defining those macros for C++.

Creating the wrapper would work better (for all C libraries) but when we did
that for <stdlib.h> and <math.h> we broke lots of (invalid) code.

I'm inclined to do nothing.
>From gcc-bugs-return-577590-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 13:25:57 2017
Return-Path: <gcc-bugs-return-577590-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 81350 invoked by alias); 6 Oct 2017 13:25:56 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 81252 invoked by uid 55); 6 Oct 2017 13:25:52 -0000
From: "tnfchris at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82440] [8 regression] ICE in aarch64_simd_valid_immediate
Date: Fri, 06 Oct 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: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: build, ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tnfchris at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82440-4-mctwiyV6Si@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82440-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82440-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00650.txt.bz2
Content-length: 962

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82440

--- Comment #4 from Tamar Christina <tnfchris at gcc dot gnu.org> ---
Author: tnfchris
Date: Fri Oct  6 13:25:18 2017
New Revision: 253490

URL: https://gcc.gnu.org/viewcvs?rev=253490&root=gcc&view=rev
Log:
Committed on behalf of Sudi Das

2017-10-06  Sudakshina Das  <sudi.das@arm.com>

        PR target/82440
        * config/aarch64/predicates.md (aarch64_reg_or_orr_imm): Only call
        aarch64_simd_valid_immediate on CONST_VECTORs.
        (aarch64_reg_or_bic_imm): Likewise.

*** gcc/testsuite/ChangeLog ***

2017-10-06  Sudakshina Das  <sudi.das@arm.com>

        * gcc.target/aarch64/bic_imm_1.c: New test.
        * gcc.target/aarch64/orr_imm_1.c: Likewise.


Added:
    trunk/gcc/testsuite/gcc.target/aarch64/bic_imm_1.c
    trunk/gcc/testsuite/gcc.target/aarch64/orr_imm_1.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/aarch64/predicates.md
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-577592-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 13:28:50 2017
Return-Path: <gcc-bugs-return-577592-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 99430 invoked by alias); 6 Oct 2017 13:28:50 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 99386 invoked by uid 48); 6 Oct 2017 13:28:46 -0000
From: "oivulf at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82453] reading an allocatable array into namelist aborts with segmentation fault
Date: Fri, 06 Oct 2017 13:28:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: oivulf at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-82453-4-jFLwrEgu3e@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82453-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82453-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00652.txt.bz2
Content-length: 231

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82453

--- Comment #1 from fulvio ciriaco <oivulf at gmail dot com> ---
Created attachment 42315
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42315&action=edit
not failing
>From gcc-bugs-return-577591-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 13:28:02 2017
Return-Path: <gcc-bugs-return-577591-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 98322 invoked by alias); 6 Oct 2017 13:28: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 98198 invoked by uid 48); 6 Oct 2017 13:27:58 -0000
From: "oivulf at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82453] New: reading an allocatable array into namelist aborts with segmentation fault
Date: Fri, 06 Oct 2017 13:28:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: oivulf at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created
Message-ID: <bug-82453-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00651.txt.bz2
Content-length: 742

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82453

            Bug ID: 82453
           Summary: reading an allocatable array into namelist aborts with
                    segmentation fault
           Product: gcc
           Version: 7.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: oivulf at gmail dot com
  Target Milestone: ---

Created attachment 42314
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42314&action=edit
failing test program

The programs in attachment test my use case.
sample_fail exits with segmentation fault
sample_nofail, with array dati preallocated exits correctly
>From gcc-bugs-return-577593-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 13:31:11 2017
Return-Path: <gcc-bugs-return-577593-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 101238 invoked by alias); 6 Oct 2017 13: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 101193 invoked by uid 48); 6 Oct 2017 13:31:04 -0000
From: "oivulf at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82453] reading an allocatable array into namelist aborts with segmentation fault
Date: Fri, 06 Oct 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: fortran
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: oivulf at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-82453-4-KQHMjDeyIf@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82453-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82453-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00653.txt.bz2
Content-length: 232

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82453

--- Comment #2 from fulvio ciriaco <oivulf at gmail dot com> ---
Created attachment 42316
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42316&action=edit
sample input
>From gcc-bugs-return-577594-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 13:32:08 2017
Return-Path: <gcc-bugs-return-577594-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 64116 invoked by alias); 6 Oct 2017 13:32: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 54176 invoked by uid 55); 6 Oct 2017 13:32:03 -0000
From: "rguenther at suse dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82449] code-gen error in get_rename_from_scev
Date: Fri, 06 Oct 2017 13:32:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenther at suse dot de
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82449-4-KClxUKpylh@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82449-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82449-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00654.txt.bz2
Content-length: 1384

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82449

--- Comment #3 from rguenther at suse dot de <rguenther at suse dot de> ---
On Fri, 6 Oct 2017, spop at gcc dot gnu.org wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82449
> 
> --- Comment #2 from Sebastian Pop <spop at gcc dot gnu.org> ---
> This part is not affine: {0, +, {1, +, 1}_1}_1
> This is a polynomial of degree 2.
> Are you sure the scev analysis reports this as affine?

Yes:

/* Determine whether CHREC is an affine evolution function or not.  */

static inline bool
evolution_function_is_affine_p (const_tree chrec)
{
  return chrec
    && TREE_CODE (chrec) == POLYNOMIAL_CHREC
    && evolution_function_is_invariant_p (CHREC_RIGHT (chrec),
                                          CHREC_VARIABLE (chrec))
    && (TREE_CODE (CHREC_RIGHT (chrec)) != POLYNOMIAL_CHREC
        || evolution_function_is_affine_p (CHREC_RIGHT (chrec)));
}

this doesn't look at CHREC_LEFT at all (because technically CHREC_LEFT
is not part of the evolution of CHREC).

> I was trying to understand from the fortran code which part this scev comes
> from...
> and I think it comes from the NKL counter that gets incremented in the inner
> loop,
> counting the number of iterations of both loops, so it has a quadratic
> evolution.

Yes.  I guess we should still be able to generate an expression for
it somehow...
>From gcc-bugs-return-577595-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 13:51:08 2017
Return-Path: <gcc-bugs-return-577595-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 73525 invoked by alias); 6 Oct 2017 13:51:08 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 70867 invoked by uid 48); 6 Oct 2017 13:51:03 -0000
From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82453] reading an allocatable array into namelist aborts with segmentation fault
Date: Fri, 06 Oct 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: fortran
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tkoenig 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-82453-4-da5wi20yLE@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82453-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82453-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00655.txt.bz2
Content-length: 1087

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82453

Thomas Koenig <tkoenig at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |tkoenig at gcc dot gnu.org
         Resolution|---                         |INVALID

--- Comment #3 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
You are passing an unallocated array to an input
function, probably in the expectation that it will
be allocated by the READ.

This is a feature which Fortran doesn't have. You have
to allocate the array manually, using an ALLOCATE statement,
or use a non-allocatable array as in your second example.

There is no "allocate on read" comparable to "allocate
on assignment".

The segfault is the usual result of trying to do something
with an unallocated array.

(And yes, this is something that I have also wanted, from a
user perspective. From an implementor's perspective, maybe less :-)
>From gcc-bugs-return-577596-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 13:57:33 2017
Return-Path: <gcc-bugs-return-577596-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 77525 invoked by alias); 6 Oct 2017 13:57: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 74504 invoked by uid 55); 6 Oct 2017 13:57:28 -0000
From: "oivulf at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82453] reading an allocatable array into namelist aborts with segmentation fault
Date: Fri, 06 Oct 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: fortran
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: oivulf 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-82453-4-NwGfsoDg6F@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82453-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82453-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00656.txt.bz2
Content-length: 1561

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82453

--- Comment #4 from fulvio ciriaco <oivulf at gmail dot com> ---
Thanks for answering.
This was the use case I imagined for f2003, when it allows allocatable 
arrays. Are they otherwise any distinguishable from ordinary arrays in 
this context?
Too sad.

Thank you again

Fulvio

On 10/06/2017 03:51 PM, tkoenig at gcc dot gnu.org wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82453
> 
> Thomas Koenig <tkoenig at gcc dot gnu.org> changed:
> 
>             What    |Removed                     |Added
> ----------------------------------------------------------------------------
>               Status|UNCONFIRMED                 |RESOLVED
>                   CC|                            |tkoenig at gcc dot gnu.org
>           Resolution|---                         |INVALID
> 
> --- Comment #3 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
> You are passing an unallocated array to an input
> function, probably in the expectation that it will
> be allocated by the READ.
> 
> This is a feature which Fortran doesn't have. You have
> to allocate the array manually, using an ALLOCATE statement,
> or use a non-allocatable array as in your second example.
> 
> There is no "allocate on read" comparable to "allocate
> on assignment".
> 
> The segfault is the usual result of trying to do something
> with an unallocated array.
> 
> (And yes, this is something that I have also wanted, from a
> user perspective. From an implementor's perspective, maybe less :-)
>
>From gcc-bugs-return-577597-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 14:17:34 2017
Return-Path: <gcc-bugs-return-577597-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 50767 invoked by alias); 6 Oct 2017 14:17: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 50579 invoked by uid 48); 6 Oct 2017 14:17:26 -0000
From: "wilco at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/68256] Defining TARGET_USE_CONSTANT_BLOCKS_P causes go bootstrap failure on aarch64.
Date: Fri, 06 Oct 2017 14:17:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords: build, wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wilco at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ramana at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-68256-4-UtGybWvLh5@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-68256-4@http.gcc.gnu.org/bugzilla/>
References: <bug-68256-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00657.txt.bz2
Content-length: 1877

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68256

Wilco <wilco at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |wilco at gcc dot gnu.org

--- Comment #7 from Wilco <wilco at gcc dot gnu.org> ---
(In reply to Vladimir Mezentsev from comment #6)
> I restored fixes in gcc/config/aarch64/aarch64.c:
> % git diff
> diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c
> index 1c14008..b377bc7 100644
> --- a/gcc/config/aarch64/aarch64.c
> +++ b/gcc/config/aarch64/aarch64.c
> @@ -6193,11 +6193,9 @@ aarch64_can_use_per_function_literal_pools_p (void)
>  static bool
>  aarch64_use_blocks_for_constant_p (machine_mode, const_rtx)
>  {
> -  /* Fixme:: In an ideal world this would work similar
> -     to the logic in aarch64_select_rtx_section but this
> -     breaks bootstrap in gcc go.  For now we workaround
> -     this by returning false here.  */
> -  return false;
> +   /* We can't use blocks for constants when we're using a per-function
> +      constant pool.  */
> +  return !aarch64_can_use_per_function_literal_pools_p ();
>  }
>  
>  /* Select appropriate section for constants depending
> 
> 
> I cannot reproduce the problem.
> I use the gcc116.fsffrance.org machine:
> % uname -a
> Linux gcc116 3.13.0-92-generic #139-Ubuntu SMP Tue Jun 28 20:45:34 UTC 2016
> aarch64 aarch64 aarch64 GNU/Linux
> 
> I run
> % ../gcc/configure --enable-languages=c,c++,go --enable-bootstrap
> --enable-multilib
> % make -j8 bootstrap
>  
>  There is no bootstrap comparison failure.

That looks fine. However either the underlying problem is fixed or has gone
latent, so it would be useful to try reproducing it on an older GCC so we can
be sure the actual problem is fixed.
>From gcc-bugs-return-577598-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 14:33:21 2017
Return-Path: <gcc-bugs-return-577598-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 109278 invoked by alias); 6 Oct 2017 14:33: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 109216 invoked by uid 48); 6 Oct 2017 14:33:17 -0000
From: "wilco at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/80295] [7/8 Regression] ICE in __builtin_update_setjmp_buf expander
Date: Fri, 06 Oct 2017 14:33:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wilco at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: qing.zhao at oracle dot com
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-80295-4-qPP9JBFlz7@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80295-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80295-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00658.txt.bz2
Content-length: 551

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80295

Wilco <wilco at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |wilco at gcc dot gnu.org

--- Comment #6 from Wilco <wilco at gcc dot gnu.org> ---
The implementation of __builtin_update_setjmp_buf is incorrect, it takes a
pointer (ie. SImode in ILP32) and treats the result of the add as Pmode
(DImode). So it's missing a cast to Pmode.
>From gcc-bugs-return-577599-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 14:42:07 2017
Return-Path: <gcc-bugs-return-577599-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 33720 invoked by alias); 6 Oct 2017 14:42: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 29593 invoked by uid 55); 6 Oct 2017 14:42:02 -0000
From: "qing.zhao at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/80295] [7/8 Regression] ICE in __builtin_update_setjmp_buf expander
Date: Fri, 06 Oct 2017 14:42:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: qing.zhao at oracle dot com
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: qing.zhao at oracle dot com
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-80295-4-6mRPrhslMC@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80295-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80295-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00659.txt.bz2
Content-length: 1406

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80295

--- Comment #7 from Qing Zhao <qing.zhao at oracle dot com> ---
thank you, Wilco.
> Wilco <wilco at gcc dot gnu.org> changed:
> 
>           What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                 CC|                            |wilco at gcc dot gnu.org
> 
> --- Comment #6 from Wilco <wilco at gcc dot gnu.org> ---
> The implementation of __builtin_update_setjmp_buf is incorrect, it takes a
> pointer (ie. SImode in ILP32) and treats the result of the add as Pmode
> (DImode). So it's missing a cast to Pmode.

Yes, this was what I thought too after more study.

However, I am still not very sure about the current implementation of
-mabi=ilp32 on aarch64
for example:

qinzhao@gcc116:~/Bugs/80295$ cat t1.c
void f (void *b) { __builtin_return(b); }
qinzhao@gcc116:~/Bugs/80295$ sh t1
/home/qinzhao/Install/latest/bin/gcc -mabi=ilp32 -fdump-rtl-all -fdump-tree-all
t1.c

in t1.c.231r.expand, I see the following stack pushing RTL insn:

(insn 2 4 3 2 (set (mem/f/c:SI (plus:DI (reg/f:DI 68 virtual-stack-vars)
                (const_int -4 [0xfffffffffffffffc])) [1 b+0 S4 A32])
        (reg:SI 0 x0 [ b ])) "t1.c":1 -1
     (nil))

the above looks like that ilp32 treats the stack pushing as 32 bit (not 64 bits
as aarch64 LP64 mode).
is this right?
>From gcc-bugs-return-577600-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 14:51:04 2017
Return-Path: <gcc-bugs-return-577600-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 100162 invoked by alias); 6 Oct 2017 14:51: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 94623 invoked by uid 48); 6 Oct 2017 14:51:01 -0000
From: "wilco at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/80295] [7/8 Regression] ICE in __builtin_update_setjmp_buf expander
Date: Fri, 06 Oct 2017 14:51:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wilco at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: qing.zhao at oracle dot com
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-80295-4-fwqOZsfXkh@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80295-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80295-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00660.txt.bz2
Content-length: 1103

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80295

--- Comment #8 from Wilco <wilco at gcc dot gnu.org> ---
(In reply to Qing Zhao from comment #7)

> However, I am still not very sure about the current implementation of
> -mabi=ilp32 on aarch64
> for example:
> 
> qinzhao@gcc116:~/Bugs/80295$ cat t1.c
> void f (void *b) { __builtin_return(b); }
> qinzhao@gcc116:~/Bugs/80295$ sh t1
> /home/qinzhao/Install/latest/bin/gcc -mabi=ilp32 -fdump-rtl-all
> -fdump-tree-all t1.c
> 
> in t1.c.231r.expand, I see the following stack pushing RTL insn:
> 
> (insn 2 4 3 2 (set (mem/f/c:SI (plus:DI (reg/f:DI 68 virtual-stack-vars)
>                 (const_int -4 [0xfffffffffffffffc])) [1 b+0 S4 A32])
>         (reg:SI 0 x0 [ b ])) "t1.c":1 -1
>      (nil))
> 
> the above looks like that ilp32 treats the stack pushing as 32 bit (not 64
> bits as aarch64 LP64 mode).
> is this right?

You're compiling without optimization, so the above instruction is spilling b
to the stack (not a push, just a store - there are no callee-saves for this
function). And b is SImode in ILP32, so it's correct.
>From gcc-bugs-return-577601-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 15:07:16 2017
Return-Path: <gcc-bugs-return-577601-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 82813 invoked by alias); 6 Oct 2017 15:07:16 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 82739 invoked by uid 48); 6 Oct 2017 15:07:12 -0000
From: "seurer at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/82412] [8 regression] gfortran.dg/graphite/pr42334-1.f fails starting with r253342
Date: Fri, 06 Oct 2017 15:07:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: testsuite
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: seurer 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-82412-4-OWv4U4pFc5@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82412-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82412-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00661.txt.bz2
Content-length: 127

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82412

--- Comment #6 from seurer at gcc dot gnu.org ---
Indeed it is.  Thanks!
>From gcc-bugs-return-577602-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 15:17:40 2017
Return-Path: <gcc-bugs-return-577602-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 8096 invoked by alias); 6 Oct 2017 15:17:40 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 8031 invoked by uid 48); 6 Oct 2017 15:17:35 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82435] new __attribute__((alias)) warning gets in the way
Date: Fri, 06 Oct 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: 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
Message-ID: <bug-82435-4-6nu6DJdkY8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82435-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82435-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00662.txt.bz2
Content-length: 1036

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82435

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW

--- Comment #6 from Martin Sebor <msebor at gcc dot gnu.org> ---
Thanks for the background.  It's unfortunate that the kernel chose to exploit
one kind of undefined behavior in order to protect itself from another.  From
your description it doesn't sound to me like it's going to be possible to
change the macros to declare the aliases with matching signatures and have the
kernel benefit from the type checking.  A new option to suppress the warning
might be the next best solution.  A variant to consider might be to make it a
two-level warning to allow this sort of abuse while still detecting other
mismatches.  I don't know if it's worth the effort.

Let me confirm this bug as a request to add a new option to control the
warning.
>From gcc-bugs-return-577603-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 15:51:26 2017
Return-Path: <gcc-bugs-return-577603-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 3291 invoked by alias); 6 Oct 2017 15:51:26 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 128313 invoked by uid 55); 6 Oct 2017 15:51:22 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82299] -Wuseless-cast errors on typed enums used in member data initializers in c++1z
Date: Fri, 06 Oct 2017 15:51:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82299-4-L0jEcKH63h@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82299-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82299-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00663.txt.bz2
Content-length: 646

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82299

--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Oct  6 15:50:50 2017
New Revision: 253495

URL: https://gcc.gnu.org/viewcvs?rev=253495&root=gcc&view=rev
Log:
        PR c++/82299
        * decl.c (reshape_init): Suppress warn_useless_cast for direct enum
        init.
        * typeck.c (convert_for_assignment): Likewise.

        * g++.dg/cpp0x/pr82299.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/pr82299.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c
    trunk/gcc/cp/typeck.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-577604-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 16:02:52 2017
Return-Path: <gcc-bugs-return-577604-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 87813 invoked by alias); 6 Oct 2017 16:02:52 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 77983 invoked by uid 55); 6 Oct 2017 16:02:45 -0000
From: "nathan at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82424] [8 Regression] ICE in tree check: expected record_type or union_type or qual_union_type, have typename_type in lookup_base, at cp/search.c:203
Date: Fri, 06 Oct 2017 16:02:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 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: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
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-82424-4-MAvCTzP18p@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82424-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82424-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00664.txt.bz2
Content-length: 725

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82424

--- Comment #1 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
Author: nathan
Date: Fri Oct  6 16:02:13 2017
New Revision: 253496

URL: https://gcc.gnu.org/viewcvs?rev=253496&root=gcc&view=rev
Log:
[PR c++/82424] Dont convert dependent types

https://gcc.gnu.org/ml/gcc-patches/2017-10/msg00385.html
        cp/
        PR c++/82424
        * name-lookup.c (check_local_shadow): Don't try and convert
        dependent types.

        testsuite/
        PR c++/82424
        * g++.dg/warn/pr82424.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/warn/pr82424.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/name-lookup.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-577605-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 16:03:53 2017
Return-Path: <gcc-bugs-return-577605-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 38243 invoked by alias); 6 Oct 2017 16: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 33025 invoked by uid 48); 6 Oct 2017 16:03:47 -0000
From: "nathan at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82424] [8 Regression] ICE in tree check: expected record_type or union_type or qual_union_type, have typename_type in lookup_base, at cp/search.c:203
Date: Fri, 06 Oct 2017 16:03:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-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: P3
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-82424-4-R1bMTy5ZxF@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82424-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82424-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00665.txt.bz2
Content-length: 438

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82424

Nathan Sidwell <nathan at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
Resolved r253496.
>From gcc-bugs-return-577606-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 16:26:37 2017
Return-Path: <gcc-bugs-return-577606-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 111717 invoked by alias); 6 Oct 2017 16:26: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 111544 invoked by uid 55); 6 Oct 2017 16:26:32 -0000
From: "paolo at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/47791] finish function is using literal value instead of a #defined one
Date: Fri, 06 Oct 2017 16:26:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: paolo.carlini at oracle dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-47791-4-G0t1mNz3D2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-47791-4@http.gcc.gnu.org/bugzilla/>
References: <bug-47791-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00666.txt.bz2
Content-length: 1522

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47791

--- Comment #4 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Fri Oct  6 16:26:00 2017
New Revision: 253497

URL: https://gcc.gnu.org/viewcvs?rev=253497&root=gcc&view=rev
Log:
2017-10-06  Paolo Carlini  <paolo.carlini@oracle>

        PR c++/47791
        * decl.c (finish_function): Take a bool intead of an int; adjust.
        * cp-tree.h (finish_function): Adjust declaration.
        * decl2.c (generate_tls_wrapper, finish_objects,
        finish_static_storage_duration_function): Adjust calls.
        * lambda.c (maybe_add_lambda_conv_op, finish_lambda_function):
        Likewise.
        * method.c (synthesize_method): Likewise.
        * optimize.c (maybe_thunk_body, maybe_clone_body): Likewise.
        * pt.c (instantiate_decl): Likewise.
        * parser.c (cp_parser_function_definition_after_declarator,
        cp_parser_late_parsing_for_member, cp_parser_omp_declare_reduction):
        Likewise.
        (cp_parser_ctor_initializer_opt,
        cp_parser_ctor_initializer_opt_and_function_body,
        cp_parser_function_try_block,
        cp_parser_function_definition_after_declarator,
        cp_parser_function_transaction): Return void; adjust declarations.

Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/decl.c
    trunk/gcc/cp/decl2.c
    trunk/gcc/cp/lambda.c
    trunk/gcc/cp/method.c
    trunk/gcc/cp/optimize.c
    trunk/gcc/cp/parser.c
    trunk/gcc/cp/pt.c
>From gcc-bugs-return-577607-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 16:29:22 2017
Return-Path: <gcc-bugs-return-577607-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 119622 invoked by alias); 6 Oct 2017 16:29: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 119594 invoked by uid 48); 6 Oct 2017 16:29:18 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/47791] finish function is using literal value instead of a #defined one
Date: Fri, 06 Oct 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: 4.6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution assigned_to target_milestone
Message-ID: <bug-47791-4-yIH6QDq1qL@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-47791-4@http.gcc.gnu.org/bugzilla/>
References: <bug-47791-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00667.txt.bz2
Content-length: 578

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47791

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
           Assignee|paolo.carlini at oracle dot com    |unassigned at gcc dot gnu.org
   Target Milestone|---                         |8.0

--- Comment #5 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Fixed.
>From gcc-bugs-return-577608-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 16:57:12 2017
Return-Path: <gcc-bugs-return-577608-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 98572 invoked by alias); 6 Oct 2017 16:57: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 98515 invoked by uid 48); 6 Oct 2017 16:57:08 -0000
From: "sudi.das at arm dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/82454] New: Possible future performance regression in x86 for 64-bit constant expansions
Date: Fri, 06 Oct 2017 16:57:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: sudi.das at arm 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-82454-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00668.txt.bz2
Content-length: 997

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82454

            Bug ID: 82454
           Summary: Possible future performance regression in x86 for
                    64-bit constant expansions
           Product: gcc
           Version: 7.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sudi.das at arm dot com
  Target Milestone: ---

Created attachment 42317
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42317&action=edit
test1

As per the discussions on 

https://gcc.gnu.org/ml/gcc-patches/2017-04/msg00570.html
https://gcc.gnu.org/ml/gcc-patches/2017-08/msg00039.html
https://gcc.gnu.org/ml/gcc-patches/2017-09/msg01736.html

The patch to add a simplification of 1U << (31 - x) for PR 80131, may lead to a
performance regression for x86.

I am adding the tests that Jakub mentioned as a runtime performance regression
tests.
>From gcc-bugs-return-577610-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 16:57:53 2017
Return-Path: <gcc-bugs-return-577610-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 111841 invoked by alias); 6 Oct 2017 16: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 110492 invoked by uid 48); 6 Oct 2017 16:57:50 -0000
From: "sudi.das at arm dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/82454] Possible future performance regression in x86 for 64-bit constant expansions
Date: Fri, 06 Oct 2017 16:57:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: sudi.das at arm 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-82454-4-x5eMaEh22V@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82454-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82454-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00670.txt.bz2
Content-length: 225

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82454

--- Comment #1 from Sudakshina Das <sudi.das at arm dot com> ---
Created attachment 42318
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42318&action=edit
test2
>From gcc-bugs-return-577609-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 16:57:27 2017
Return-Path: <gcc-bugs-return-577609-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 101853 invoked by alias); 6 Oct 2017 16:57: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 100211 invoked by uid 48); 6 Oct 2017 16:57:24 -0000
From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libfortran/78549] Very slow formatted internal file output
Date: Fri, 06 Oct 2017 16:57:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libfortran
X-Bugzilla-Version: 6.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tkoenig at gcc dot gnu.org
X-Bugzilla-Status: WAITING
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-78549-4-tkaMIJLoDl@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78549-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78549-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00669.txt.bz2
Content-length: 1895

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78549

--- Comment #10 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Here are some gprof timings:

Each sample counts as 0.01 seconds.
  %   cumulative   self              self     total           
 time   seconds   seconds    calls  ms/call  ms/call  name    
 28.73      2.06     2.06                             delete_root
 15.76      3.19     1.13                             build_float_string
  5.86      3.61     0.42                            
formatted_transfer_scalar_write
  5.30      3.99     0.38                             _gfortrani_parse_format
  4.53      4.32     0.33                             get_float_string
  3.14      4.54     0.23                             data_transfer_init
  3.00      4.76     0.22                             write_float_0
  2.79      4.96     0.20                             next_format0
  2.09      5.11     0.15                             next_char
  1.95      5.25     0.14                             insert
  1.95      5.39     0.14                             parse_format_list
  1.81      5.52     0.13                            
_gfortrani_free_format_hash_table
  1.67      5.64     0.12                             get_precision
  1.67      5.76     0.12                             select_buffer
  1.53      5.87     0.11                             get_gfc_unit
  1.26      5.96     0.09                             _gfortrani_next_format
  1.19      6.04     0.09                             _gfortrani_write_block
  1.12      6.12     0.08                             write_float_string
  1.05      6.20     0.08                             _gfortrani_next_record

What is striking is the long time spent in delete_root.
>From gcc-bugs-return-577611-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 17:18:03 2017
Return-Path: <gcc-bugs-return-577611-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 118802 invoked by alias); 6 Oct 2017 17:18: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 118589 invoked by uid 48); 6 Oct 2017 17:17:58 -0000
From: "jvdelisle at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libfortran/78549] Very slow formatted internal file output
Date: Fri, 06 Oct 2017 17:18:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libfortran
X-Bugzilla-Version: 6.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jvdelisle at gcc dot gnu.org
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jvdelisle at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-78549-4-A72dUkJ5N8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78549-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78549-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00671.txt.bz2
Content-length: 270

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78549

--- Comment #11 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
Thanks for getting this profile. I agree, delete_root is to be looked at. Was
this profile on trunk? Can you also post one for gcc6 or earlier.
>From gcc-bugs-return-577612-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 17:22:29 2017
Return-Path: <gcc-bugs-return-577612-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 122302 invoked by alias); 6 Oct 2017 17:22:29 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 122209 invoked by uid 48); 6 Oct 2017 17:22:24 -0000
From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libfortran/78549] Very slow formatted internal file output
Date: Fri, 06 Oct 2017 17:22:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libfortran
X-Bugzilla-Version: 6.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tkoenig at gcc dot gnu.org
X-Bugzilla-Status: WAITING
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-78549-4-oZNZT4aZgN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78549-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78549-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00672.txt.bz2
Content-length: 2615

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78549

--- Comment #12 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
This was for trunk.

This patch

Index: io.h
===================================================================
--- io.h        (Revision 253377)
+++ io.h        (Arbeitskopie)
@@ -773,6 +773,7 @@
 extern int newunit_alloc (void);
 internal_proto(newunit_alloc);

+extern void delete_unit (gfc_unit *);

 /* open.c */

Index: transfer.c
===================================================================
--- transfer.c  (Revision 253377)
+++ transfer.c  (Arbeitskopie)
@@ -4169,6 +4169,9 @@
          free_format (dtp);
        }
       unlock_unit (dtp->u.p.current_unit);
+
+      if (is_internal_unit (dtp))
+         delete_unit (dtp->u.p.current_unit);
     }
   library_end ();
 }
Index: unit.c
===================================================================
--- unit.c      (Revision 253377)
+++ unit.c      (Arbeitskopie)
@@ -307,7 +307,7 @@

 /* delete_unit()-- Delete a unit from a tree */

-static void
+void
 delete_unit (gfc_unit *old)
 {
   unit_root = delete_treap (old, unit_root);

helps only a little:

Each sample counts as 0.01 seconds.
  %   cumulative   self              self     total           
 time   seconds   seconds    calls  ms/call  ms/call  name    
 26.26      1.88     1.88                             delete_root
 15.78      3.01     1.13                             build_float_string
  5.24      3.39     0.38                            
formatted_transfer_scalar_write
  4.89      3.74     0.35                             _gfortrani_parse_format
  4.19      4.04     0.30                             next_format0
  4.12      4.33     0.30                             get_float_string
  3.77      4.60     0.27                             write_float_0
  2.51      4.78     0.18                             get_precision
  2.44      4.96     0.18                             data_transfer_init
  2.23      5.12     0.16                            
_gfortrani_free_format_hash_table
>From gcc-bugs-return-577613-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 17:44:31 2017
Return-Path: <gcc-bugs-return-577613-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 37099 invoked by alias); 6 Oct 2017 17:44: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 37073 invoked by uid 48); 6 Oct 2017 17:44:26 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82455] New: missing -Warray-bounds on strcpy offset in an out-of-bounds range
Date: Fri, 06 Oct 2017 17:44: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-82455-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00673.txt.bz2
Content-length: 1399

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82455

            Bug ID: 82455
           Summary: missing -Warray-bounds on strcpy offset in an
                    out-of-bounds range
           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: ---

The -Warray-bounds warning is only issued for (a subset of) instances of cases
where the index/offset is constant.  The warning could be made more effective
by making use of range information to detect non-constant out-of-bounds offsets
as well.  The test case below shows an instance where the warning is missing. 
(It also shows an instance of missing -Wstringop-overflow warning but that one
is the subject of a separate bug report).

$ cat z.c && gcc -O2 -S -Wall -Wextra z.c
void fcst (char *d)
{
  char a[2] = "0";

  __builtin_strcpy (d, a + 3);   // -Warray-bounds (good)
                                 // missing -Wstringop-overflow
}

void frng (char *d, int i)
{
  char a[2] = "0";

  if (i < 3)
    i = 3;

  __builtin_strcpy (d, a + i);   // both warnings missing
                                 // (array index out of bounds
                                 // and reading past the end)
}
>From gcc-bugs-return-577614-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 17:48:32 2017
Return-Path: <gcc-bugs-return-577614-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 47558 invoked by alias); 6 Oct 2017 17:48: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 47518 invoked by uid 48); 6 Oct 2017 17:48:27 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82456] New: missing -Wstringop-overflow on strcpy reading past the end of an array
Date: Fri, 06 Oct 2017 17:48:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
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-82456-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00674.txt.bz2
Content-length: 1808

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82456

            Bug ID: 82456
           Summary: missing -Wstringop-overflow on strcpy reading past the
                    end of an array
           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: ---

The -Wstringop-overflow warning is supposed to detect not just writing but also
reading past the end of arrays.  The following test case shows a number of
instances of the latter bug the warning fails to detect.  (The missing
-Warray-bounds is discussed in bug 82455.)

$ cat z.c && gcc -O2 -S -Wall -Wextra z.c
void fcst (char *d)
{
  char a[2] = "0";

  __builtin_strcpy (d, a + 3);   // -Warray-bounds (good)
                                 // missing -Wstringop-overflow
}

void frng (char *d, int i)
{
  char a[2] = "0";

  if (i < 3)
    i = 3;

  __builtin_strcpy (d, a + i);   // both warnings missing
                                 // (array index out of bounds
                                 // and reading past the end)
}

void gcst (char *d)
{
  char a[2] = "0";

  __builtin_strcpy (d, a + 2);   // missing -Wstringop-overflow
                                 // (reading past the end)
}

void grng (char *d, int i)
{
  char a[2] = "0";

  if (i < 2) 
    i = 2;

  __builtin_strcpy (d, a + i);   // missing -Wstringop-overflow
                                 // (reading past the end)
}

z.c: In function ‘fcst’:
z.c:5:3: warning: array subscript is above array bounds [-Warray-bounds]
   __builtin_strcpy (d, a + 3);   // -Warray-bounds (good)
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
>From gcc-bugs-return-577615-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 17:54:25 2017
Return-Path: <gcc-bugs-return-577615-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 43409 invoked by alias); 6 Oct 2017 17:54: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 43338 invoked by uid 48); 6 Oct 2017 17:54:19 -0000
From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libfortran/78549] [8 Regression] Very slow formatted internal file output
Date: Fri, 06 Oct 2017 17:54:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libfortran
X-Bugzilla-Version: 6.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tkoenig at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jvdelisle at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status target_milestone short_desc
Message-ID: <bug-78549-4-7ukdeAMPyr@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78549-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78549-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00675.txt.bz2
Content-length: 2121

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78549

Thomas Koenig <tkoenig at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW
   Target Milestone|---                         |8.0
            Summary|Very slow formatted         |[8 Regression] Very slow
                   |internal file output        |formatted internal file
                   |                            |output

--- Comment #13 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Here is the timing for gcc 6:

Each sample counts as 0.01 seconds.
  %   cumulative   self              self     total           
 time   seconds   seconds    calls  ms/call  ms/call  name    
 32.15      0.99     0.99                             output_float
 12.34      1.37     0.38                             formatted_transfer
 11.04      1.71     0.34                             next_format0
  7.14      1.93     0.22                             write_float
  3.73      2.05     0.12                             _gfortrani_write_block
  3.25      2.15     0.10                             next_char
  2.92      2.24     0.09                             data_transfer_init
  2.60      2.32     0.08                             _gfortrani_next_format
  2.60      2.40     0.08                             get_fnode
  2.60      2.48     0.08                             write_integer
  2.27      2.55     0.07                             _gfortrani_parse_format
  2.27      2.62     0.07                             finalize_transfer
  2.27      2.69     0.07                             parse_format_list
  1.95      2.75     0.06                             _gfortrani_next_record
  1.14      2.78     0.04                             _gfortran_transfer_array
  0.97      2.81     0.03                             _gfortrani_mem_alloc_r4

So, this does appear to be a regression for gcc8 at least.

The time is also longer (~20 s for trunk, ~14 s for gcc 6).
>From gcc-bugs-return-577616-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 18:01:29 2017
Return-Path: <gcc-bugs-return-577616-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 54907 invoked by alias); 6 Oct 2017 18:01:29 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 53015 invoked by uid 55); 6 Oct 2017 18:01:25 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82299] -Wuseless-cast errors on typed enums used in member data initializers in c++1z
Date: Fri, 06 Oct 2017 18:01:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82299-4-CpFPKqadIQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82299-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82299-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00676.txt.bz2
Content-length: 726

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82299

--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Oct  6 18:00:54 2017
New Revision: 253499

URL: https://gcc.gnu.org/viewcvs?rev=253499&root=gcc&view=rev
Log:
        PR c++/82299
        * decl.c (reshape_init): Suppress warn_useless_cast for direct enum
        init.
        * typeck.c (convert_for_assignment): Likewise.

        * g++.dg/cpp0x/pr82299.C: New test.

Added:
    branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp0x/pr82299.C
Modified:
    branches/gcc-7-branch/gcc/cp/ChangeLog
    branches/gcc-7-branch/gcc/cp/decl.c
    branches/gcc-7-branch/gcc/cp/typeck.c
    branches/gcc-7-branch/gcc/testsuite/ChangeLog
>From gcc-bugs-return-577617-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 18:16:02 2017
Return-Path: <gcc-bugs-return-577617-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 5748 invoked by alias); 6 Oct 2017 18:16:02 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 5672 invoked by uid 55); 6 Oct 2017 18:15:58 -0000
From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/80118] [5/6 Regression] ICE with zero size parameter array
Date: Fri, 06 Oct 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: fortran
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tkoenig at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-80118-4-Z1ZW2rFZqu@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80118-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80118-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00677.txt.bz2
Content-length: 958

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80118

--- Comment #5 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Author: tkoenig
Date: Fri Oct  6 18:15:26 2017
New Revision: 253500

URL: https://gcc.gnu.org/viewcvs?rev=253500&root=gcc&view=rev
Log:
2017-10-06  Thomas Koenig  <tkoenig@gcc.gnu.org>
            Steven G. Kargl  <kargl@gcc.gnu.org>

        Backport from trunk
        PR fortran/80118
        * expr.c (gfc_get_full_arrayspec_from_expr): If there is
        no symtree, set array spec to NULL.

2017-10-06  Thomas Koenig  <tkoenig@gcc.gnu.org>
            Steven G. Kargl  <kargl@gcc.gnu.org>

        Backport from trunk
        PR fortran/80118
        * gfortran.dg/zero_sized_7.f90: New test.


Added:
    branches/gcc-6-branch/gcc/testsuite/gfortran.dg/zero_sized_7.f90
Modified:
    branches/gcc-6-branch/gcc/fortran/ChangeLog
    branches/gcc-6-branch/gcc/fortran/expr.c
    branches/gcc-6-branch/gcc/testsuite/ChangeLog
>From gcc-bugs-return-577618-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 18:17:43 2017
Return-Path: <gcc-bugs-return-577618-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 8069 invoked by alias); 6 Oct 2017 18:17: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 8018 invoked by uid 48); 6 Oct 2017 18:17:39 -0000
From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/80118] [5 Regression] ICE with zero size parameter array
Date: Fri, 06 Oct 2017 18:17:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tkoenig at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution short_desc
Message-ID: <bug-80118-4-Hlcwzkrv2i@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80118-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80118-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00678.txt.bz2
Content-length: 703

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80118

Thomas Koenig <tkoenig at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
            Summary|[5/6 Regression] ICE with   |[5 Regression] ICE with
                   |zero size parameter array   |zero size parameter array

--- Comment #6 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Hm, seems I just missed the deadline for 5.5.

And this patch is definitely not important enough to
bother the RMs with.

So, closing.
>From gcc-bugs-return-577619-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 18:22:17 2017
Return-Path: <gcc-bugs-return-577619-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 11978 invoked by alias); 6 Oct 2017 18:22: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 11889 invoked by uid 48); 6 Oct 2017 18:22:13 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82299] -Wuseless-cast errors on typed enums used in member data initializers in c++1z
Date: Fri, 06 Oct 2017 18:22:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-82299-4-L2HGR6CmKS@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82299-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82299-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00679.txt.bz2
Content-length: 433

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82299

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed for 7.3+.
>From gcc-bugs-return-577620-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 18:40:29 2017
Return-Path: <gcc-bugs-return-577620-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 64806 invoked by alias); 6 Oct 2017 18:40:29 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 64761 invoked by uid 48); 6 Oct 2017 18:40:25 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/50518] [C++0x] repeated c++11 opaque enum declarations are invalid
Date: Fri, 06 Oct 2017 18:40:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.6.2
X-Bugzilla-Keywords: accepts-invalid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: fabien at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-50518-4-KSrjtFi3QC@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-50518-4@http.gcc.gnu.org/bugzilla/>
References: <bug-50518-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00680.txt.bz2
Content-length: 444

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50518

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |paolo.carlini at oracle dot com

--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Hi. Are you still actively working on this?
>From gcc-bugs-return-577621-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 19:05:01 2017
Return-Path: <gcc-bugs-return-577621-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 56844 invoked by alias); 6 Oct 2017 19:05: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 56778 invoked by uid 55); 6 Oct 2017 19:04:57 -0000
From: "paolo at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: =?UTF-8?B?W0J1ZyBjKysvNjY2OTBdIGVycm9yOiB1c2Ugb2Yg4oCYWOKAmSBiZWZvcmUg?= =?UTF-8?B?ZGVkdWN0aW9uIG9mIOKAmGF1dG/igJk=?Date: Fri, 06 Oct 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: c++
X-Bugzilla-Version: 5.1.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-66690-4-G6LJJnIf2h@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66690-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66690-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00681.txt.bz2
Content-length: 484

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66690

--- Comment #1 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Fri Oct  6 19:04:25 2017
New Revision: 253502

URL: https://gcc.gnu.org/viewcvs?rev=253502&root=gcc&view=rev
Log:
2017-10-06  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/66690
        * g++.dg/cpp1y/pr66690.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1y/pr66690.C
Modified:
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-577622-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 19:05:43 2017
Return-Path: <gcc-bugs-return-577622-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 57815 invoked by alias); 6 Oct 2017 19: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 57759 invoked by uid 48); 6 Oct 2017 19:05:39 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: =?UTF-8?B?W0J1ZyBjKysvNjY2OTBdIGVycm9yOiB1c2Ugb2Yg4oCYWOKAmSBiZWZvcmUg?= =?UTF-8?B?ZGVkdWN0aW9uIG9mIOKAmGF1dG/igJk=?Date: Fri, 06 Oct 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: c++
X-Bugzilla-Version: 5.1.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution target_milestone
Message-ID: <bug-66690-4-UDehqx7KwJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66690-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66690-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00682.txt.bz2
Content-length: 499

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66690

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |8.0

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Fixed in trunk.
>From gcc-bugs-return-577623-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 19:30:50 2017
Return-Path: <gcc-bugs-return-577623-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 25797 invoked by alias); 6 Oct 2017 19:30: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 25746 invoked by uid 48); 6 Oct 2017 19:30:45 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/65992] Internal compiler error: in gimple_expand_cfg, at cfgexpand.c:5658
Date: Fri, 06 Oct 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: 5.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution target_milestone
Message-ID: <bug-65992-4-8K1FxS2I5p@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-65992-4@http.gcc.gnu.org/bugzilla/>
References: <bug-65992-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00683.txt.bz2
Content-length: 509

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65992

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |6.0

--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Fixed long ago, in 6.1.0.
>From gcc-bugs-return-577624-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 19:35:38 2017
Return-Path: <gcc-bugs-return-577624-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 28684 invoked by alias); 6 Oct 2017 19:35:38 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 28626 invoked by uid 48); 6 Oct 2017 19:35:35 -0000
From: "qing.zhao at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/80295] [7/8 Regression] ICE in __builtin_update_setjmp_buf expander
Date: Fri, 06 Oct 2017 19: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: qing.zhao at oracle dot com
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: qing.zhao at oracle dot com
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-80295-4-myBM30ChSf@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80295-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80295-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00684.txt.bz2
Content-length: 233

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80295

--- Comment #9 from Qing Zhao <qing.zhao at oracle dot com> ---
Created attachment 42319
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42319&action=edit
proposed patch
>From gcc-bugs-return-577625-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 19:37:44 2017
Return-Path: <gcc-bugs-return-577625-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 30982 invoked by alias); 6 Oct 2017 19:37:44 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 30898 invoked by uid 48); 6 Oct 2017 19:37:40 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/70383] Bogus error when attempting to capture a reference to function by copy
Date: Fri, 06 Oct 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: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-70383-4-JUuLFZclHv@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70383-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70383-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00685.txt.bz2
Content-length: 408

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70383

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-10-06
     Ever confirmed|0                           |1
>From gcc-bugs-return-577626-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 19:44:09 2017
Return-Path: <gcc-bugs-return-577626-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 66825 invoked by alias); 6 Oct 2017 19:44:08 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 66778 invoked by uid 48); 6 Oct 2017 19:44:04 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/70971] ICE in parameter pack expansion
Date: Fri, 06 Oct 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: unknown
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-70971-4-pw894vGR6E@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70971-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70971-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00686.txt.bz2
Content-length: 471

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70971

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |paolo.carlini at oracle dot com

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> ---
This is fixed in trunk, it would be nice to commit a compact testcase.
>From gcc-bugs-return-577627-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 19:45:45 2017
Return-Path: <gcc-bugs-return-577627-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 68609 invoked by alias); 6 Oct 2017 19:45:45 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 68532 invoked by uid 48); 6 Oct 2017 19:45:36 -0000
From: "qing.zhao at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/80295] [7/8 Regression] ICE in __builtin_update_setjmp_buf expander
Date: Fri, 06 Oct 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: middle-end
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: qing.zhao at oracle dot com
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: qing.zhao at oracle dot com
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-80295-4-Y3RoVXZKtw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80295-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80295-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00687.txt.bz2
Content-length: 436

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80295

--- Comment #10 from Qing Zhao <qing.zhao at oracle dot com> ---
Comment on attachment 42319
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42319
proposed patch

The implementation of __builtin_update_setjmp_buf is incorrect. It takes a
pointer
as an operand and treats the Mode of the pointer as Pmode, which is not
correct.

a conversion from ptr_mode to Pmode is needed.
>From gcc-bugs-return-577628-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 20:31:51 2017
Return-Path: <gcc-bugs-return-577628-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 121680 invoked by alias); 6 Oct 2017 20: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 121657 invoked by uid 48); 6 Oct 2017 20:31:46 -0000
From: "LpSolit at netscape dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/81963] New: ICE in stage 2 compiler while configuring libgcc in stage2, during GIMPLE pass: cfg
Date: Fri, 06 Oct 2017 20:31: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: LpSolit at netscape 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-81963-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00688.txt.bz2
Content-length: 4102

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81963

            Bug ID: 81963
           Summary: ICE in stage 2 compiler while configuring libgcc in
                    stage2, 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: ---

trunk rev. 251326 fails to bootstrap.

Stage 2 compiler ICEs in stage 2 while configuring libgcc:

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/incl
ude -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/deve
l/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/incl
ude -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/deve
l/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
See `config.log' for more details.
>From gcc-bugs-return-577629-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 21:21:40 2017
Return-Path: <gcc-bugs-return-577629-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 17206 invoked by alias); 6 Oct 2017 21:21:40 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 17158 invoked by uid 48); 6 Oct 2017 21:21:36 -0000
From: "xyzzy at speakeasy dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/68052] No printf format warnings in C++ code for macro in system headers
Date: Fri, 06 Oct 2017 21:21:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 5.2.1
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: xyzzy at speakeasy 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: cc
Message-ID: <bug-68052-4-ivEFrVLiCd@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-68052-4@http.gcc.gnu.org/bugzilla/>
References: <bug-68052-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00689.txt.bz2
Content-length: 1129

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68052

Trent Piepho <xyzzy at speakeasy dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |xyzzy at speakeasy dot org

--- Comment #6 from Trent Piepho <xyzzy at speakeasy dot org> ---
It appears the same underlying problem can disable printf warnings via another
pattern:

$ mkdir -p syshdr_dir
$ cat <<EOF > syshdr_dir/myprintf.h
#define SD_ERR "<3>"
EOF

$ cat <<EOF > test-format-printf.c
#include <stdio.h>
int main(void) {
    printf(SD_ERR "%s", 3);
    return 0;
}
EOF

The printf format error in the pasted string "<3>%s" appears to be attributed
to the macro SD_ERR, as it forms the start of the pasted string.  Since that
macro is from a system header, the printf format error is attributed to the
system header, and no diagnostic is generated.  Changing the call to printf(""
SD_ERR "%s", 3) will attributed the printf format error to the line containing
the printf() call and allow a diagnostic to be generated.
>From gcc-bugs-return-577630-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 21:39:02 2017
Return-Path: <gcc-bugs-return-577630-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 121792 invoked by alias); 6 Oct 2017 21:39: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 121708 invoked by uid 48); 6 Oct 2017 21:38:56 -0000
From: "jvdelisle at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libfortran/78549] [8 Regression] Very slow formatted internal file output
Date: Fri, 06 Oct 2017 21:39:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libfortran
X-Bugzilla-Version: 6.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jvdelisle at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jvdelisle at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-78549-4-cAQAdFq0OZ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78549-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78549-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00690.txt.bz2
Content-length: 919

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78549

--- Comment #14 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
The real issue is that to support DTIO with internal units I had to actually
use a gfc_unit structure. Before DTIO we never did this.  At the time of doing
DTIO I did not have a 'better idea' since by the nature of it, DTIO passes a
UNIT to the child procedures. 

I do have something percolating in my head on this that will be better. I have
not finished thinking it through yet. I have to do some factoring on the
structures.

(In reply to Dominique d'Humieres from comment #9)
> Gfortran is even slower now (~9.5s), likely revision r251374 (pr78387).

This is because the gfc_unit caching scheme I tried before was incompatble with
large numbers of threads. I decided that whole approach to the issue was a
rabbit down a rabbit hole. I removed it, and we are slower.

Working on it.
>From gcc-bugs-return-577631-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 21:57:25 2017
Return-Path: <gcc-bugs-return-577631-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 10652 invoked by alias); 6 Oct 2017 21: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 10579 invoked by uid 48); 6 Oct 2017 21:57:21 -0000
From: "jvdelisle at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libfortran/78549] [8 Regression] Very slow formatted internal file output
Date: Fri, 06 Oct 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: libfortran
X-Bugzilla-Version: 6.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jvdelisle at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jvdelisle at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-78549-4-b5Knmk36a8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78549-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78549-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00691.txt.bz2
Content-length: 489

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78549

--- Comment #15 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
For my own baseline:

gcc6: real      0m6.948s

gcc7: real      0m9.906s

gcc8: real      0m10.415s

I backported removal of the caching mentioned in comment #14 to gcc7. The two
should be identical except that gcc7 is a released branch. IIRC released
branches have debugging code removed. I do not know if this accounts for the
difference between gcc7 and gcc8.
>From gcc-bugs-return-577632-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 22:04:58 2017
Return-Path: <gcc-bugs-return-577632-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 46151 invoked by alias); 6 Oct 2017 22:04:58 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 46101 invoked by uid 48); 6 Oct 2017 22:04:54 -0000
From: "peter at cordes dot ca" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82370] AVX512 can use a memory operand for immediate-count vpsrlw, but gcc doesn't.
Date: Fri, 06 Oct 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: missed-optimization, ssemmx
X-Bugzilla-Severity: normal
X-Bugzilla-Who: peter at cordes dot ca
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82370-4-cF4u6D1lNf@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82370-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82370-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00692.txt.bz2
Content-length: 393

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82370

--- Comment #5 from Peter Cordes <peter at cordes dot ca> ---
I got off topic with this bug.  It was supposed to be about emitting

   vpsrlw  $8, (%rsi), %xmm1        # load folded into AVX512BW version

instead of

   vmovdqu64       (%rsi), %xmm0     # or VEX vmovdqu; that's where I got off
topic
   vpsrlw          $8, %xmm0, %xmm0
>From gcc-bugs-return-577633-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 22:30:32 2017
Return-Path: <gcc-bugs-return-577633-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 5497 invoked by alias); 6 Oct 2017 22:30:31 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 5362 invoked by uid 48); 6 Oct 2017 22:30:22 -0000
From: "aschepler at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug gcov-profile/82457] New: libgcov fork and exec hooks not always used
Date: Fri, 06 Oct 2017 22:30:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: gcov-profile
X-Bugzilla-Version: 5.4.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: aschepler 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-82457-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00693.txt.bz2
Content-length: 1556

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82457

            Bug ID: 82457
           Summary: libgcov fork and exec hooks not always used
           Product: gcc
           Version: 5.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: gcov-profile
          Assignee: unassigned at gcc dot gnu.org
          Reporter: aschepler at gmail dot com
                CC: marxin at gcc dot gnu.org
  Target Milestone: ---

The gcc man page claims about the --coverage option that "'fork' calls are
detected and correctly handled (double counting will not happen)."  This is
apparently related to the hook function __gcov_fork in libgcov.  libgcov also
has some __gcov_execve and other __gcov_exec* hooks, which look to similarly
dump data to avoid losing it on an exec.

But these hooks are not always used when --coverage is specified.

Apparently when compiling with -std=c11 --coverage flag, a call to fork gets
translated to the ordinary library symbol fork, but when compiling with
-std=gnu11 --coverage, a call to fork gets translated as a call to the
__gcov_fork symbol instead.

(A StackOverflow question discussing all this:
https://stackoverflow.com/questions/46381406/libgcov-fork-and-exec-hooks )

It's not clear why these would act different, or what exactly determines
whether the hook replacement can happen or not.

If this is intentional for some reason, the documentation should be updated to
explain when fork double counts and exec count loss will and won't be avoided.
>From gcc-bugs-return-577634-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 06 23:26:46 2017
Return-Path: <gcc-bugs-return-577634-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 85923 invoked by alias); 6 Oct 2017 23:26: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 85879 invoked by uid 48); 6 Oct 2017 23:26:42 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/68052] No printf format warnings in C++ code for macro in system headers
Date: Fri, 06 Oct 2017 23: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: 5.2.1
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-68052-4-LWedL875Wr@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-68052-4@http.gcc.gnu.org/bugzilla/>
References: <bug-68052-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00694.txt.bz2
Content-length: 531

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68052

--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> ---
That example doesn't work, here's the preprocessed source for a corrected
version:

# 1 "m.c"
# 1 "<built-in>"
# 1 "<command-line>"
# 31 "<command-line>"
# 1 "/usr/include/stdc-predef.h" 1 3 4
# 32 "<command-line>" 2
# 1 "m.c"
# 1 "sys/m.h" 1 3 4
# 2 "m.c" 2
extern int printf(const char*, ...);
int main(void) {
    printf(
# 4 "m.c" 3 4
          "<3>" 
# 4 "m.c"
                 "%s", 3);
    return 0;
}
>From gcc-bugs-return-577635-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 07 00:17:02 2017
Return-Path: <gcc-bugs-return-577635-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 101162 invoked by alias); 7 Oct 2017 00:17: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 90330 invoked by uid 48); 7 Oct 2017 00:16:56 -0000
From: "peter at cordes dot ca" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82459] New: AVX512F instruction costs: vmovdqu8 stores may be an extra uop, and vpmovwb is 2 uops on Skylake and not always worth using
Date: Sat, 07 Oct 2017 00:17: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: peter at cordes dot ca
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone cf_gcctarget
Message-ID: <bug-82459-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00695.txt.bz2
Content-length: 10804

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82459

            Bug ID: 82459
           Summary: AVX512F instruction costs: vmovdqu8 stores may be an
                    extra uop, and vpmovwb is 2 uops on Skylake and not
                    always worth using
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: peter at cordes dot ca
  Target Milestone: ---
            Target: x86_64-*-*, i?86-*-*

gcc bottlenecks on shuffle uops when auto-vectorizing this for skylake-avx512

* Perhaps the cost model is wrong for vpmovwb (it's 2 port5 uops), or gcc
doesn't consider any cheaper alternatives.  My version with 2x shift +
vpacksswb + vpermq has 3x the theoretical throughput (with hot caches).  In
general, AVX512BW lane crossing shuffles of 8 or 16-bit elements are multi-uop
on SKX, but in-lane byte/word shuffles are single-uop just like their AVX2
versions.

* Using vmovdqu8 as a store costs a port5 ALU uop even with no masking,
according to Intel (not tested).  We should always use AVX512F vmovdqu32 or 64
for unmasked loads/stores, not AVX512BW vmovdqu8 or 16.  Intel's docs indicate
that current hardware doesn't handle unmasked vmovdqu8/16 as efficiently as
32/64, and there's no downside.

* Using vinserti64x4 instead of 2 separate stores is worse because it makes the
shuffle bottleneck worse, and 2 stores wouldn't bottleneck on load/store
throughput.  (Avoiding vpmovwb makes this moot in this case, but presumably
whatever decided to shuffle + store instead of store + store will make that
mistake in other cases too.)

 SKX shuts down port 1 (except for scalar integer) when there are 512b uops in
flight, so extra loads/stores are relatively cheaper than using more ALU uops,
compared to 256b or 128b vectors where the back-end can keep up even when 3 of
the 4 uops per clock are vector-ALU (if they go to different ports).

#include <stdint.h>
#include <stddef.h>
void pack_high8_baseline(uint8_t *__restrict__ dst, const uint16_t
*__restrict__ src, size_t bytes) {
  uint8_t *end_dst = dst + bytes;
  do{
     *dst++ = *src++ >> 8;
  } while(dst < end_dst);
}

// https://godbolt.org/g/kXjEp1
gcc8 -O3 -march=skylake-avx512

.L5:  # inner loop
        vmovdqa64       (%rsi,%rax,2), %zmm0
        vmovdqa64       64(%rsi,%rax,2), %zmm1
        vpsrlw  $8, %zmm0, %zmm0             # memory operand not folded: bug
82370
        vpsrlw  $8, %zmm1, %zmm1
        vpmovwb %zmm0, %ymm0                 # 2 uops each
        vpmovwb %zmm1, %ymm1
        vinserti64x4    $0x1, %ymm1, %zmm0, %zmm0
        vmovdqu8        %zmm0, (%rcx,%rax)   # Intel says this is worse than
vmovdqu64
        addq    $64, %rax
        cmpq    %rax, %rdi         # using an indexed addr mode, but still
doing separate add/cmp
        jne     .L5

IACA says gcc's loop will run at one 64B store per 6 clocks, bottlenecked on 6
port5 uops (including the vmovdqu8.  vmovdqu64 gives one store per 5 clocks,
still bottlenecked on port5).  Using 2 stores instead of vinserti64x4 gives us
one store per 4 clocks.  (Still twice as slow as with vpacksswb + vpermq, which
produces one 512b vector per 2 shuffle uops instead of one 256b vector per 2
shuffle uops.)

See
https://stackoverflow.com/questions/26021337/what-is-iaca-and-how-do-i-use-it
for more about Intel's static analysis tool.


related: pr 82370 mentions vectorization strategies for this.

Fortunately gcc doesn't unroll the startup loop to reach an alignment boundary.
 (And BTW, aligned pointers are more important with AVX512 than AVX2, in my
testing with manual vectorization of other code on Skylake-avx512.)  Of course,
a potentially-overlapping unaligned first vector would be much better than a
scalar loop here.

----

Anyway, does gcc know that vpmovwb %zmm, %ymm is 2 uops for port 5, while
vpackuswb zmm,zmm,zmm in-lane 2-input shuffle is 1 uop (for port 5)?  The xmm
source version is single-uop, because it's in-lane.

Source: Intel's IACA2.3, not testing on real hardware.  SKX port-assignment
spreadsheet:
https://github.com/InstLatx64/InstLatx64/blob/master/AVX512_SKX_PortAssign_v102_PUB.ods
It's based on IACA output for uops, but throughputs and latencies are from real
hardware AIDA64 InstLatx64, with a 2nd column for Intel's published
tput/latency (which as usual doesn't always match).  vpmovwb real throughput is
one per 2 clocks, which is consistent with being 2 uops for p5.

It makes some sense from a HW-design perspective that all lane-crossing
shuffles with element size smaller than 32-bit are multi-uop.  It's cool that
in-lane AVX512 vpshufb zmm  vpacksswb zmm are single-uop, but it means it's
often better to use more instructions to do the same work in fewer total
shuffle uops.  (Any loop that involves any shuffling can *easily* bottleneck on
shuffle throughput.)

Related: AVX512 merge-masking can something into a 2-input shuffle.  But we
vpsrlw  $8, 64(%rsi), %zmm0{k1}  doesn't work to get all our data into one
vector, because it masks at word granularity, not byte.  vmovdqu8 with masking
needs an ALU uop (on SKX according to IACA).

-------------

Here's a hand-crafted efficient version of the inner loop.  It doesn't use any
weird tricks (I haven't thought of any that are actually a win on SKX), so it
should be possible to get gcc to emit something like this.

.Lloop:
    vpsrlw  $8, 0(%rsi), %zmm0
    vpsrlw  $8, 64(%rsi), %zmm1
    vpackuswb %zmm1, %zmm0, %zmm0            # 1 uop for a 2-input shuffle
    vpermq   %zmm7, %zmm0, %zmm0             # lane-crossing fixup for
vpackuswb
    vmovdqu64 %zmm0, (%rdi, %rdx)

    add   $(2*64), %rsi
    add   $64, %rdx          # counts up towards zero
    jnc .Lloop

Note that the folded loads use non-indexed addressing modes so they can stay
micro-fused.

The store will stay micro-fused even with an indexed addressing mode, so we can
count an index up towards zero (and index from the end of the array) saving a
CMP instruction in the loop.  (add/jnc will macro-fuse on SKX).  A second
pointer-increment + cmp/jcc would be ok.

IACA thinks that indexed stores don't stay micro-fused, but that's only true
for SnB/IvB.  Testing on Haswell/Skylake (desktop) shows they do stay fused,
and IACA is wrong about that.  I think it's a good guess that AVX512 indexed
stores will not un-laminate either.

IACA analysis says it will run at 1x 64B store per 2 clocks.  If the store
stays micro-fused, it's really only 7 fused-domain uops per clock, so we have
front-end bandwidth to spare and the only bottleneck is on the ALU ports (p0
and p5 saturated with shift and shuffle respectively).

Because of the ALU bottleneck, I didn't need the store to be able to run on p7.
 p2/p3 only need to handle 1.5 uops per 2 clocks.  Using a non-indexed store
addressing mode would let it use p7, but that increases loop overhead slightly.


$ iaca -arch SKX testloop.o

Intel(R) Architecture Code Analyzer Version - 2.3 build:246dfea (Thu, 6 Jul
2017 13:38:05 +0300)
Analyzed File - testloop.o
Binary Format - 64Bit
Architecture  - SKX
Analysis Type - Throughput

Throughput Analysis Report
--------------------------
Block Throughput: 2.00 Cycles       Throughput Bottleneck: FrontEnd

Port Binding In Cycles Per Iteration:
---------------------------------------------------------------------------------------
|  Port  |  0   -  DV  |  1   |  2   -  D   |  3   -  D   |  4   |  5   |  6  
|  7   |
---------------------------------------------------------------------------------------
| Cycles | 2.0    0.0  | 1.0  | 1.5    1.0  | 1.5    1.0  | 1.0  | 2.0  | 1.0 
| 0.0  |
---------------------------------------------------------------------------------------

N - port number or number of cycles resource conflict caused delay, DV -
Divider pipe (on port 0)
D - Data fetch pipe (on ports 2 and 3), CP - on a critical path
F - Macro Fusion with the previous instruction occurred
* - instruction micro-ops not bound to a port
^ - Micro Fusion happened

| Num Of |                    Ports pressure in cycles                     |   
|
|  Uops  |  0  - DV  |  1  |  2  -  D  |  3  -  D  |  4  |  5  |  6  |  7  |   
|
---------------------------------------------------------------------------------
|   2^   | 1.0       |     | 1.0   1.0 |           |     |     |     |     | CP
| vpsrlw zmm0, zmmword ptr [rsi], 0x8
|   2^   | 1.0       |     |           | 1.0   1.0 |     |     |     |     | CP
| vpsrlw zmm1, zmmword ptr [rsi+0x40], 0x8
|   1    |           |     |           |           |     | 1.0 |     |     | CP
| vpackuswb zmm0, zmm0, zmm1
|   1    |           |     |           |           |     | 1.0 |     |     | CP
| vpermq zmm0, zmm0, zmm7
|   2    |           |     | 0.5       | 0.5       | 1.0 |     |     |     |   
| vmovdqu64 zmmword ptr [rdi+rdx*1], zmm0
|   1    |           | 1.0 |           |           |     |     |     |     |   
| add rsi, 0x80
|   1    |           |     |           |           |     |     | 1.0 |     |   
| add rdx, 0x40
|   0F   |           |     |           |           |     |     |     |     |   
| jnb 0xffffffffffffffd3
Total Num Of Uops: 10

(The count is unfused-domain, which is pretty dumb to total up.)

Source for this:

#if 1
#define IACA_start  mov $111, %ebx; .byte 0x64, 0x67, 0x90
#define IACA_end    mov $222, %ebx; .byte 0x64, 0x67, 0x90
#else
#define IACA_start
#define IACA_end
#endif

.global pack_high8_avx512bw
pack_high8_avx512bw:   # (dst, src, size)

#define unroll 1   // unroll factor

.altmacro
.macro packblock count
    .if \count
        packblock %(count-1)
    .endif
#    vmovdqu8 \count*2*64 + 1(%rsi),  %ymm0 {%k1}{z}   # IACA says: x/y/zmm
load uses an ALU port with masking, otherwise not.
#    vmovdqu8 \count*2*64 + 65(%rsi), %ymm1 {%k1}{z}
    vpsrlw  $8, \count*2*64 + 0(%rsi), %zmm0
    vpsrlw  $8, \count*2*64 + 64(%rsi), %zmm1
    vpackuswb %zmm1, %zmm0, %zmm0            # 1 uop for a 2-input shuffle
    vpermq   %zmm7, %zmm0, %zmm0             # lane-crossing fixup for
vpackuswb
    vmovdqu64 %zmm0, 64*\count(%rdi, %rdx)
.endm

    # set up %zmm7
    #movabs $0x5555555555555555, %rax
    #kmovq   %rax, %k1              # for offset vmovdqu8 instead of shift

    # mov   $1024, %rdx

    add   %rdx, %rdi
    neg   %rdx         # then use (%rdi, %rdx) for store addresses?  No port 7,
but should micro-fuse.
    IACA_start
.Lloop:
    packblock (unroll-1)
    add   $(unroll*2*64), %rsi
          # add   $(unroll*1*64), %rdi
    add   $(unroll*1*64), %rdx
    jnc .Lloop
IACA_end

    # not shown: unaligned and/or cleanup loop
    ret
>From gcc-bugs-return-577636-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 07 00:28:47 2017
Return-Path: <gcc-bugs-return-577636-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 75728 invoked by alias); 7 Oct 2017 00:28:47 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 75671 invoked by uid 48); 7 Oct 2017 00:28:43 -0000
From: "manu at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/68052] No printf format warnings in C++ code for macro in system headers
Date: Sat, 07 Oct 2017 00: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: 5.2.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: bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-68052-4-y84VEpZatb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-68052-4@http.gcc.gnu.org/bugzilla/>
References: <bug-68052-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00696.txt.bz2
Content-length: 1317

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68052

Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-10-07
     Ever confirmed|0                           |1

--- Comment #8 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #7)
> That example doesn't work, here's the preprocessed source for a corrected
> version:

Without the system headerness:

4:11: warning: format '%s' expects argument of type 'char *', but argument 2
has type 'int' [-Wformat=]
           "<3>"
           ^~~~~
5:20: note: format string is defined here
                  "%s", 3);
                   ~^
                   %d

The warning points to '"', which is define in the system header, thus
suppressed. Like in the examples above, it should say:

5:20: warning: format '%s' expects argument of type 'char *', but argument 2
has type 'int' [-Wformat=]
                  "%s", 3);
                   ~^
                   %d


In C++, there is no warning whatsoever for this, so that may be a different
bug.
>From gcc-bugs-return-577637-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 07 00:55:56 2017
Return-Path: <gcc-bugs-return-577637-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 6944 invoked by alias); 7 Oct 2017 00:55:56 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 3090 invoked by uid 48); 7 Oct 2017 00:55:50 -0000
From: "peter at cordes dot ca" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82460] New: AVX512: choose between vpermi2d and vpermt2d to save mov instructions.  Also, fails to optimize away shifts before shuffle
Date: Sat, 07 Oct 2017 00:55:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization, ssemmx
X-Bugzilla-Severity: normal
X-Bugzilla-Who: peter at cordes dot ca
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone cf_gcctarget
Message-ID: <bug-82460-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00697.txt.bz2
Content-length: 3383

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82460

            Bug ID: 82460
           Summary: AVX512: choose between vpermi2d and vpermt2d to save
                    mov instructions.  Also, fails to optimize away shifts
                    before shuffle
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Keywords: missed-optimization, ssemmx
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: peter at cordes dot ca
  Target Milestone: ---
            Target: x86_64-*-*, i?86-*-*

#include <immintrin.h>

// gcc  -O3 -march=skylake-avx512 -mavx512vbmi    8.0.0 20171004
// https://godbolt.org/g/fVt4Kb

__m512i vpermi2d(__m512i t1, __m512i control, char *src) {
  return _mm512_permutex2var_epi32(control, t1, _mm512_loadu_si512(src));
}
        vpermt2d        (%rdi), %zmm0, %zmm1
        vmovdqa64       %zmm1, %zmm0
        ret

  clang emits  vpermi2d  (%rdi), %zmm1, %zmm0

__m512i vpermi2b(__m512i t1, __m512i a, __m512i b) {
  return _mm512_permutex2var_epi8(a, t1, b);
}
        vpermt2b        %zmm2, %zmm0, %zmm1
        vmovdqa64       %zmm1, %zmm0
        ret

  clang emits  vpermi2b  %zmm2, %zmm1, %zmm0


This one compiles ok, though:

__m512i vpermt2d(__m512i t1, __m512i control, char *src) {
  return _mm512_permutex2var_epi32(t1, control, _mm512_loadu_si512(src));
}
        vpermt2d        (%rdi), %zmm1, %zmm0


---


But when auto-vectorizing this with AVX512VBMI (see bug 82459 for AVX512BW
missed optimizations), gcc uses vpermi2b when vpermt2b would be better:

void pack_high8_baseline(uint8_t *__restrict__ dst, const uint16_t
*__restrict__ src, size_t bytes) {
  uint8_t *end_dst = dst + bytes;
  do{
     *dst++ = *src++ >> 8;
  } while(dst < end_dst);
}


.L9:
        vmovdqa64       (%rsi,%rax,2), %zmm0
        vmovdqa64       64(%rsi,%rax,2), %zmm1
        vmovdqa64       %zmm2, %zmm3             # copy the index
        vpsrlw  $8, %zmm0, %zmm0
        vpsrlw  $8, %zmm1, %zmm1
        vpermi2b        %zmm1, %zmm0, %zmm3      # then destroy it
        vmovdqu8        %zmm3, (%rcx,%rax)       # extra uop according to
Intel: bug 82459
        addq    $64, %rax
        cmpq    %rax, %rdi
        jne     .L9

Of course, the shifts are redundant when we have a full byte shuffle that
doesn't do any saturating:

        # different shuffle control in zmm1
   .L9
        vmovdqa64       (%rsi,%rax,2), %zmm0
        vpermt2b        64(%rsi,%rax,2), %zmm1, %zmm0
        vmovdqu64        %zmm0, (%rcx,%rax)
        addq    $64, %rax
        cmpq    %rax, %rdi
        jne     .L9

If unrolling, use pointer increments so the shuffle can maybe avoid
un-lamination, although some multi-uop instructions don't micro-fuse in the
first place.

vpermt2w is 3 uops on Skylake-AVX512 (p0 + 2p5), so we should expect vpermt2b
to be at least that slow on the first CPUs that support it.  On a CPU where
vpermt2b is p0 + 2p5, this loop will run at about one store per 2 clocks, the
same as what you can achieve with 2x shift + vpackuswb + vpermq (bug 82459). 
But this has one fewer p0 uop.

With indexing from the end of the arrays to save the CMP, this could also be 7
fused-domain uops for the front-end (assuming no micro-fusion for the vpermt2b
+ load), but assuming the store does fuse.
>From gcc-bugs-return-577638-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 07 01:11:53 2017
Return-Path: <gcc-bugs-return-577638-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 19855 invoked by alias); 7 Oct 2017 01:11: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 19795 invoked by uid 48); 7 Oct 2017 01:11:47 -0000
From: "peter at cordes dot ca" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82459] AVX512F instruction costs: vmovdqu8 stores may be an extra uop, and vpmovwb is 2 uops on Skylake and not always worth using
Date: Sat, 07 Oct 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: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: missed-optimization, ssemmx
X-Bugzilla-Severity: normal
X-Bugzilla-Who: peter at cordes dot ca
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82459-4-hxBBIvpA3V@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82459-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82459-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00698.txt.bz2
Content-length: 1246

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82459

--- Comment #1 from Peter Cordes <peter at cordes dot ca> ---
BTW, if we *are* using vpmovwb, it supports a memory operand.  It doesn't save
any front-end uops on Skylake-avx512, just code-size.  Unless it means less
efficient packing in the uop cache (since all uops from one instruction have to
go in the same line) it should be better to fold the stores than to use
separate store instructions.

        vpmovwb %zmm0,    (%rcx)
        vpmovwb %zmm1, 32(%rcx)

is 6 fused-domain uops (2 * 2 p5 shuffle uops, 2 micro-fused stores), according
to IACA.

It's possible to coax gcc into emitting it with intrinsics, but only with a -1
mask:

// https://godbolt.org/g/SBZX1W
void vpmovwb(__m512i a, char *p) {
  _mm256_storeu_si256(p, _mm512_cvtepi16_epi8(a));
}
        vpmovwb %zmm0, %ymm0
        vmovdqu64       %ymm0, (%rdi)
        ret

void vpmovwb_store(__m512i a, char *p) {
  _mm512_mask_cvtepi16_storeu_epi8(p, -1, a);
}
        vpmovwb %zmm0, (%rdi)
        ret

clang is the same here, not using a memory destination unless you hand-hold it
with a -1 mask.


Also note the lack of vzeroupper here, and in the auto-vectorized function,
even with an explicit -mvzeroupper.
>From gcc-bugs-return-577639-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 07 01:12:13 2017
Return-Path: <gcc-bugs-return-577639-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 20672 invoked by alias); 7 Oct 2017 01:12:13 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 20619 invoked by uid 48); 7 Oct 2017 01:12:09 -0000
From: "manu at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug driver/31350] gcc -v --help puts some output on std. out, and some on std. error.
Date: Sat, 07 Oct 2017 01:12:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: driver
X-Bugzilla-Version: 4.2.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: bug_status cc resolution
Message-ID: <bug-31350-4-NiEDcEufGR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-31350-4@http.gcc.gnu.org/bugzilla/>
References: <bug-31350-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00699.txt.bz2
Content-length: 1200

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=31350

Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |manu at gcc dot gnu.org
         Resolution|---                         |INVALID

--- Comment #5 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #1)
> Some of this is not a GCC bug but a binutils one I think or maybe not a bug
> at all.

At least all the GNU tools should follow the GNU Coding Guidelines:

https://www.gnu.org/prep/standards/html_node/_002d_002dhelp.html#g_t_002d_002dhelp

Thus, the correct behavior is to use stdout for --help.

However, the output of "-v" is not "verbose help". You get the same output
independently of --help. It is simply verbose diagnostics about what GCC is
doing and they should go to stderr. Thus, this is not a bug.

If you find something in the output of --help= or --version that is printed to
stderr, please re-open.
>From gcc-bugs-return-577640-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 07 01:14:49 2017
Return-Path: <gcc-bugs-return-577640-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 28011 invoked by alias); 7 Oct 2017 01:14:49 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 27934 invoked by uid 48); 7 Oct 2017 01:14:42 -0000
From: "manu at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug driver/31350] gcc -v --help puts some output on std. out, and some on std. error.
Date: Sat, 07 Oct 2017 01:14:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: driver
X-Bugzilla-Version: 4.2.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:
Message-ID: <bug-31350-4-297NfipYH0@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-31350-4@http.gcc.gnu.org/bugzilla/>
References: <bug-31350-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00700.txt.bz2
Content-length: 377

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=31350

--- Comment #6 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
This is exactly the same case as:

$ gcc --help --invalid 1> /dev/null
gcc: error: unrecognized command line option ‘--invalid’

One should not expect the error output to go to stdout just because --help was
provided.
>From gcc-bugs-return-577641-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 07 01:29:40 2017
Return-Path: <gcc-bugs-return-577641-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 73223 invoked by alias); 7 Oct 2017 01:29: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 70103 invoked by uid 48); 7 Oct 2017 01:29:36 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug web/82448] GCC web guide contains wrong information about Werror
Date: Sat, 07 Oct 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: web
X-Bugzilla-Version: 4.3.2
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pinskia 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:
Message-ID: <bug-82448-4-duN8q170ex@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82448-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82448-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00701.txt.bz2
Content-length: 504

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82448

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #1)
> Note that -Werror= does work for most warnings, just not for
> -Wsequence-point. This is simply a bug in the old release, which has been
> fixed in current releases.

And that bug was fixed in 4.4 with:
2008-02-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>

  * c-common.c (warn_for_collisions_1): Use appropriate option when warning.
>From gcc-bugs-return-577642-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 07 01:37:35 2017
Return-Path: <gcc-bugs-return-577642-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 6941 invoked by alias); 7 Oct 2017 01:37: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 6891 invoked by uid 48); 7 Oct 2017 01:37:31 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug gcov-profile/82457] libgcov fork and exec hooks not always used
Date: Sat, 07 Oct 2017 01:37:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: gcov-profile
X-Bugzilla-Version: 5.4.0
X-Bugzilla-Keywords: documentation
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: pinskia at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on everconfirmed bug_severity
Message-ID: <bug-82457-4-yYFzByyH5R@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82457-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82457-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00702.txt.bz2
Content-length: 951

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82457

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |documentation
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-10-07
     Ever confirmed|0                           |1
           Severity|normal                      |enhancement

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Yes the documentation should clarify this.

Basically with -std=c11 fork/exec* are not known identifiers (because they are
not part of the C11 standard).

Maybe this can be what it says:
Also fork (when not in strict standards language mode e.g. -std=c90 or
-std=c++98) calls are detected and correctly handled (double counting will not
happen).
>From gcc-bugs-return-577643-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 07 02:29:08 2017
Return-Path: <gcc-bugs-return-577643-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 97993 invoked by alias); 7 Oct 2017 02:29:08 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 97914 invoked by uid 48); 7 Oct 2017 02:29:03 -0000
From: "jvdelisle at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/50410] [5/6/7/8 Regression] ICE in record_reference
Date: Sat, 07 Oct 2017 02:29:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jvdelisle at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-50410-4-u6qem0tTC6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-50410-4@http.gcc.gnu.org/bugzilla/>
References: <bug-50410-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00703.txt.bz2
Content-length: 343

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50410

--- Comment #30 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
(In reply to Dominique d'Humieres from comment #28)
--- snip ---
> BTW what is the best expression in English "already is" or "is already", the
> later being easier to parse for French readers.

"is already" is fine.
>From gcc-bugs-return-577644-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 07 02:34:47 2017
Return-Path: <gcc-bugs-return-577644-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 10353 invoked by alias); 7 Oct 2017 02:34: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 10252 invoked by uid 48); 7 Oct 2017 02:34:42 -0000
From: "aschepler at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug gcov-profile/82457] libgcov fork and exec hooks not always used
Date: Sat, 07 Oct 2017 02:34:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: gcov-profile
X-Bugzilla-Version: 5.4.0
X-Bugzilla-Keywords: documentation
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: aschepler 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-82457-4-IvTU1GUQuG@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82457-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82457-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00704.txt.bz2
Content-length: 828

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82457

Andrew Schepler <aschepler at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |aschepler at gmail dot com

--- Comment #2 from Andrew Schepler <aschepler at gmail dot com> ---
I don't follow your explanation. In standard-compliant mode, the compiler isn't
allowed to change the behavior of a function because it's NOT specifed by a
standard? And I'm not sure what you mean by "known identifiers" - if I include
the appropriate headers, they've certainly been declared. And it's obviously
the case that gcc contains some internal code which knows something or other
about the "special" names 'fork', 'execl', etc.
>From gcc-bugs-return-577645-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 07 05:43:37 2017
Return-Path: <gcc-bugs-return-577645-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 52040 invoked by alias); 7 Oct 2017 05:43: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 52005 invoked by uid 48); 7 Oct 2017 05:43:33 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug gcov-profile/82457] libgcov fork and exec hooks not always used
Date: Sat, 07 Oct 2017 05:43:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: gcov-profile
X-Bugzilla-Version: 5.4.0
X-Bugzilla-Keywords: documentation
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: pinskia at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82457-4-z1o5uHRjWJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82457-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82457-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00705.txt.bz2
Content-length: 687

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82457

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Schepler from comment #2)
> I don't follow your explanation. In standard-compliant mode, the compiler
> isn't allowed to change the behavior of a function because it's NOT specifed
> by a standard? And I'm not sure what you mean by "known identifiers" - if I
> include the appropriate headers, they've certainly been declared. And it's
> obviously the case that gcc contains some internal code which knows
> something or other about the "special" names 'fork', 'execl', etc.

What I mean is known to the compiler to have a specific behavior.
>From gcc-bugs-return-577646-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 07 07:38:25 2017
Return-Path: <gcc-bugs-return-577646-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 84262 invoked by alias); 7 Oct 2017 07:38: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 84212 invoked by uid 48); 7 Oct 2017 07:38:20 -0000
From: "tvb377 at gmx dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82461] New: Temporary required for brace-initializing (non-literal-type) member variable
Date: Sat, 07 Oct 2017 07:38:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tvb377 at gmx dot de
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-82461-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00706.txt.bz2
Content-length: 942

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82461

            Bug ID: 82461
           Summary: Temporary required for brace-initializing
                    (non-literal-type) member variable
           Product: gcc
           Version: 7.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: tvb377 at gmx dot de
  Target Milestone: ---

class A {
private:
public:
  constexpr A() {}
  ~A() {}
};

class B {
private:
  A  a;
public:
  constexpr B() : a{} {}
// works also with g++ -std=c++17:
// constexpr B() : a() {}

  ~B() {}
};

When compiling this with -std=c++17 g++ reports:

error: temporary of non-literal type ‘A’ in a constant expression
note:   ‘A’ has a non-trivial destructor

With -std=c++11 and 14 g++ accepts this code as do clang 5.0 and MS cl 19.11
>From gcc-bugs-return-577648-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 07 08:06:53 2017
Return-Path: <gcc-bugs-return-577648-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 70535 invoked by alias); 7 Oct 2017 08:06: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 70107 invoked by uid 48); 7 Oct 2017 08:06:49 -0000
From: "markos at freevec dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82317] [8 Regression] "'__builtin_s390_vec_min' matching variant requires z14 or higher" for __vector(2) double when it should work on -march=z13 as well
Date: Sat, 07 Oct 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: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: markos at freevec dot org
X-Bugzilla-Status: VERIFIED
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
Message-ID: <bug-82317-4-uG2eLTmK56@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82317-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82317-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00708.txt.bz2
Content-length: 416

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82317

Konstantinos Margaritis <markos at freevec dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |VERIFIED

--- Comment #4 from Konstantinos Margaritis <markos at freevec dot org> ---
Confirmed that the bug is fixed.
>From gcc-bugs-return-577647-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 07 08:06:50 2017
Return-Path: <gcc-bugs-return-577647-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 70142 invoked by alias); 7 Oct 2017 08:06: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 70074 invoked by uid 48); 7 Oct 2017 08:06:47 -0000
From: "markos at freevec dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82322] [7/8 Regression] vec_ceil/vec_floor/vec_round intrincics do not work for gcc 8, need __builtin_s390_vfidb
Date: Sat, 07 Oct 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: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: markos at freevec dot org
X-Bugzilla-Status: VERIFIED
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-82322-4-08XW3hd3MQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82322-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82322-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00707.txt.bz2
Content-length: 416

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82322

Konstantinos Margaritis <markos at freevec dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |VERIFIED

--- Comment #4 from Konstantinos Margaritis <markos at freevec dot org> ---
Confirmed that the bug is fixed.
>From gcc-bugs-return-577649-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 07 08:25:22 2017
Return-Path: <gcc-bugs-return-577649-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 68115 invoked by alias); 7 Oct 2017 08:25: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 68062 invoked by uid 48); 7 Oct 2017 08:25:10 -0000
From: "markos at freevec dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82463] New: vec_madd does not map to __builtin_s390_vfmasb for z14
Date: Sat, 07 Oct 2017 08:25: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: markos at freevec 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 cf_gcchost cf_gcctarget cf_gccbuild
Message-ID: <bug-82463-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00709.txt.bz2
Content-length: 1309

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82463

            Bug ID: 82463
           Summary: vec_madd does not map to __builtin_s390_vfmasb for z14
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: markos at freevec dot org
  Target Milestone: ---
              Host: s390x-ibm-linux-gnu
            Target: s390x-ibm-linux-gnu
             Build: s390x-ibm-linux-gnu

Trying to compile the simple test case breaks:

#include <vecintrin.h>

typedef __vector float Packet4f;

int main() {
        Packet4f v1 = { 1.0, -1.0, -2.0, 2.0 };
        Packet4f v2 = { 2.0,  0.5,  0.1, 0.2 };
        Packet4f v0 = { 0.0,  0.0,  0.0, 0.0 };

        Packet4f prod = vec_madd(v1, v2, v0);
}

g++ -march=z14 -mzvector zvectortest2.cpp -o zvectortest2
zvectortest2.cpp: In function 'int main()':
zvectortest2.cpp:10:37: error: cannot convert 'Packet4f {aka __vector(4)
float}' to '__vector(2) double' for argument '1' to '__vector(2) double
__builtin_s390_vfmadb(__vector(2) double, __vector(2) double, __vector(2)
double)'
  Packet4f prod = vec_madd(v1, v2, v0);

Changing to __builtin_s390_vfmasb explicitly seems to work.
>From gcc-bugs-return-577650-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 07 08:30:50 2017
Return-Path: <gcc-bugs-return-577650-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 73904 invoked by alias); 7 Oct 2017 08:30: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 73877 invoked by uid 48); 7 Oct 2017 08:30:46 -0000
From: "markos at freevec dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82464] New: s390x z14: vector float: invalid parameter combination for intrinsic '__builtin_s390_vec_xor'
Date: Sat, 07 Oct 2017 08:30:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: markos at freevec 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 cf_gcchost cf_gcctarget cf_gccbuild
Message-ID: <bug-82464-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00710.txt.bz2
Content-length: 1198

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82464

            Bug ID: 82464
           Summary: s390x z14: vector float: invalid parameter combination
                    for intrinsic '__builtin_s390_vec_xor'
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: markos at freevec dot org
  Target Milestone: ---
              Host: s390x-ibm-linux-gnu
            Target: s390x-ibm-linux-gnu
             Build: s390x-ibm-linux-gnu

In this small testcase:

#include <vecintrin.h>

typedef __vector float Packet4f;

int main() {
        Packet4f v1 = { 1.0, -1.0, -2.0, 2.0 };
        Packet4f v2 = { 2.0,  0.5,  0.1, 0.2 };

        Packet4f prod = vec_xor(v1, v2);
}

$ g++ -march=z14 -mzvector zvectortest2.cpp -o zvectortest2
zvectortest2.cpp: In function 'int main()':
zvectortest2.cpp:9:32: error: invalid parameter combination for intrinsic
'__builtin_s390_vec_xor'
  Packet4f prod = vec_xor(v1, v2);

However it works with vec_or() intrinsic and others (vec_and, etc), I guess
it's just an ommission.
>From gcc-bugs-return-577651-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 07 08:32:53 2017
Return-Path: <gcc-bugs-return-577651-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 76808 invoked by alias); 7 Oct 2017 08: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 76751 invoked by uid 48); 7 Oct 2017 08:32:49 -0000
From: "markos at freevec dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82463] vec_madd does not map to __builtin_s390_vfmasb for z14
Date: Sat, 07 Oct 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: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: markos at freevec dot 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-82463-4-cr9GqU7jpS@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82463-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82463-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00711.txt.bz2
Content-length: 605

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82463

Konstantinos Margaritis <markos at freevec dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #1 from Konstantinos Margaritis <markos at freevec dot org> ---
accidentally pressed submit twice, duplicate of
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82462

*** This bug has been marked as a duplicate of bug 82462 ***
>From gcc-bugs-return-577652-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 07 08:32:53 2017
Return-Path: <gcc-bugs-return-577652-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 76888 invoked by alias); 7 Oct 2017 08: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 76775 invoked by uid 48); 7 Oct 2017 08:32:49 -0000
From: "markos at freevec dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82462] New: vec_madd does not map to __builtin_s390_vfmasb for z14
Date: Sat, 07 Oct 2017 08:32:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: markos at freevec 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 cf_gcchost cf_gcctarget cf_gccbuild
Message-ID: <bug-82462-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00712.txt.bz2
Content-length: 1448

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82462

            Bug ID: 82462
           Summary: vec_madd does not map to __builtin_s390_vfmasb for z14
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: markos at freevec dot org
  Target Milestone: ---
              Host: s390x-ibm-linux-gnu
            Target: s390x-ibm-linux-gnu
             Build: s390x-ibm-linux-gnu

Trying to compile the simple test case breaks:

#include <vecintrin.h>

typedef __vector float Packet4f;

int main() {
        Packet4f v1 = { 1.0, -1.0, -2.0, 2.0 };
        Packet4f v2 = { 2.0,  0.5,  0.1, 0.2 };
        Packet4f v0 = { 0.0,  0.0,  0.0, 0.0 };

        Packet4f prod = vec_madd(v1, v2, v0);
}

g++ -march=z14 -mzvector zvectortest2.cpp -o zvectortest2
zvectortest2.cpp: In function 'int main()':
zvectortest2.cpp:10:37: error: cannot convert 'Packet4f {aka __vector(4)
float}' to '__vector(2) double' for argument '1' to '__vector(2) double
__builtin_s390_vfmadb(__vector(2) double, __vector(2) double, __vector(2)
double)'
  Packet4f prod = vec_madd(v1, v2, v0);

Changing to __builtin_s390_vfmasb explicitly seems to work.

--- Comment #1 from Konstantinos Margaritis <markos at freevec dot org> ---
*** Bug 82463 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-577653-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 07 11:23:16 2017
Return-Path: <gcc-bugs-return-577653-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 31281 invoked by alias); 7 Oct 2017 11:23: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 31221 invoked by uid 48); 7 Oct 2017 11:23:10 -0000
From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libfortran/78549] [8 Regression] Very slow formatted internal file output
Date: Sat, 07 Oct 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: libfortran
X-Bugzilla-Version: 6.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tkoenig at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jvdelisle at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-78549-4-2M5UGyKlwP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78549-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78549-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00713.txt.bz2
Content-length: 4371

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78549

--- Comment #16 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Jerry,

what do you think of this approach? This creates a local copy
of the gfc_unit, without putting it into the tree.

Index: transfer.c
===================================================================
--- transfer.c  (Revision 253377)
+++ transfer.c  (Arbeitskopie)
@@ -4170,6 +4170,9 @@ st_write_done (st_parameter_dt *dtp)
        }
       unlock_unit (dtp->u.p.current_unit);
     }
+  if (is_internal_unit (dtp))
+    free (dtp->u.p.current_unit);
+
   library_end ();
 }

Index: unit.c
===================================================================
--- unit.c      (Revision 253377)
+++ unit.c      (Arbeitskopie)
@@ -225,7 +225,7 @@ insert (gfc_unit *new, gfc_unit *t)
 /* insert_unit()-- Create a new node, insert it into the treap.  */

 static gfc_unit *
-insert_unit (int n)
+insert_unit (int n, int internal)
 {
   gfc_unit *u = xcalloc (1, sizeof (gfc_unit));
   u->unit_number = n;
@@ -238,8 +238,11 @@ static gfc_unit *
   __GTHREAD_MUTEX_INIT_FUNCTION (&u->lock);
 #endif
   __gthread_mutex_lock (&u->lock);
-  u->priority = pseudo_random ();
-  unit_root = insert (u, unit_root);
+  if (!internal)
+    {
+      u->priority = pseudo_random ();
+      unit_root = insert (u, unit_root);
+    }
   return u;
 }

@@ -316,14 +319,21 @@ delete_unit (gfc_unit *old)

 /* get_gfc_unit()-- Given an integer, return a pointer to the unit
    structure.  Returns NULL if the unit does not exist,
-   otherwise returns a locked unit. */
+   otherwise returns a locked unit.  If internal, do not put it
+   in the unit cache.  */

 static gfc_unit *
-get_gfc_unit (int n, int do_create)
+get_gfc_unit (int n, int do_create, int internal)
 {
   gfc_unit *p;
   int c, created = 0;

+  if (internal)
+    {
+      p = insert_unit (n, 1);
+      return p;
+    }
+  
   __gthread_mutex_lock (&unit_lock);
 retry:
   for (c = 0; c < CACHE_SIZE; c++)
@@ -347,7 +357,7 @@ retry:

   if (p == NULL && do_create)
     {
-      p = insert_unit (n);
+      p = insert_unit (n, 0);
       created = 1;
     }

@@ -405,7 +415,7 @@ found:
 gfc_unit *
 find_unit (int n)
 {
-  return get_gfc_unit (n, 0);
+  return get_gfc_unit (n, 0, 0);
 }


@@ -412,7 +422,7 @@ find_unit (int n)
 gfc_unit *
 find_or_create_unit (int n)
 {
-  return get_gfc_unit (n, 1);
+  return get_gfc_unit (n, 1, 0);
 }


@@ -548,7 +558,7 @@ get_unit (st_parameter_dt *dtp, int do_create)

       dtp->u.p.unit_is_internal = 1;
       dtp->common.unit = newunit_alloc ();
-      unit = get_gfc_unit (dtp->common.unit, do_create);
+      unit = get_gfc_unit (dtp->common.unit, do_create, 1);
       set_internal_unit (dtp, unit, kind);
       fbuf_init (unit, 128);
       return unit;
@@ -563,9 +573,9 @@ get_unit (st_parameter_dt *dtp, int do_create)
      is not allowed, such units must be created with
      OPEN(NEWUNIT=...).  */
   if (dtp->common.unit < 0)
-    return get_gfc_unit (dtp->common.unit, 0);
+    return get_gfc_unit (dtp->common.unit, 0, 0);

-  return get_gfc_unit (dtp->common.unit, do_create);
+  return get_gfc_unit (dtp->common.unit, do_create, 0);
 }


@@ -592,7 +602,7 @@ init_units (void)

   if (options.stdin_unit >= 0)
     {                          /* STDIN */
-      u = insert_unit (options.stdin_unit);
+      u = insert_unit (options.stdin_unit, 0);
       u->s = input_stream ();

       u->flags.action = ACTION_READ;
@@ -624,7 +634,7 @@ init_units (void)

   if (options.stdout_unit >= 0)
     {                          /* STDOUT */
-      u = insert_unit (options.stdout_unit);
+      u = insert_unit (options.stdout_unit, 0);
       u->s = output_stream ();

       u->flags.action = ACTION_WRITE;
@@ -655,7 +665,7 @@ init_units (void)

   if (options.stderr_unit >= 0)
     {                          /* STDERR */
-      u = insert_unit (options.stderr_unit);
+      u = insert_unit (options.stderr_unit, 0);
       u->s = error_stream ();

       u->flags.action = ACTION_WRITE;
>From gcc-bugs-return-577654-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 07 11:24:33 2017
Return-Path: <gcc-bugs-return-577654-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 32385 invoked by alias); 7 Oct 2017 11:24:33 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 32218 invoked by uid 48); 7 Oct 2017 11:24:14 -0000
From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libfortran/78549] [8 Regression] Very slow formatted internal file output
Date: Sat, 07 Oct 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: libfortran
X-Bugzilla-Version: 6.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tkoenig at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jvdelisle at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-78549-4-MRodTWniPL@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78549-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78549-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00714.txt.bz2
Content-length: 190

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78549

--- Comment #17 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
I mean apart from the fact that this creates a huge memory leak :-)
>From gcc-bugs-return-577655-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 07 11:49:15 2017
Return-Path: <gcc-bugs-return-577655-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 92783 invoked by alias); 7 Oct 2017 11:49:15 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 92410 invoked by uid 55); 7 Oct 2017 11:49:11 -0000
From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/49232] Pointer assignment of stride to CONTIGUOUS pointer not diagnosed as invalid
Date: Sat, 07 Oct 2017 11:49:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 4.7.0
X-Bugzilla-Keywords: accepts-invalid, diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tkoenig at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: tkoenig at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-49232-4-DTmuVHpWvq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-49232-4@http.gcc.gnu.org/bugzilla/>
References: <bug-49232-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00715.txt.bz2
Content-length: 714

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49232

--- Comment #3 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Author: tkoenig
Date: Sat Oct  7 11:48:28 2017
New Revision: 253509

URL: https://gcc.gnu.org/viewcvs?rev=253509&root=gcc&view=rev
Log:
2017-10-07  Thomas Koenig  <tkoenig@gcc.gnu.org>

        PR fortran/49232
        * expr.c (gfc_check_pointer_assign): Error
        for non-contiguous rhs.

2017-10-07  Thomas Koenig  <tkoenig@gcc.gnu.org>

        PR fortran/49232
        * gfortran.dg/contiguous_4.f90: New test.


Added:
    trunk/gcc/testsuite/gfortran.dg/contiguous_4.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/expr.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-577656-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 07 11:49:40 2017
Return-Path: <gcc-bugs-return-577656-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 94121 invoked by alias); 7 Oct 2017 11:49: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 93842 invoked by uid 48); 7 Oct 2017 11:49:36 -0000
From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/49232] Pointer assignment of stride to CONTIGUOUS pointer not diagnosed as invalid
Date: Sat, 07 Oct 2017 11:49:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 4.7.0
X-Bugzilla-Keywords: accepts-invalid, diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tkoenig at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: tkoenig at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-49232-4-YmPIHHoMfr@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-49232-4@http.gcc.gnu.org/bugzilla/>
References: <bug-49232-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00716.txt.bz2
Content-length: 427

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49232

Thomas Koenig <tkoenig at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-577657-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 07 12:05:43 2017
Return-Path: <gcc-bugs-return-577657-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 98736 invoked by alias); 7 Oct 2017 12: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 98667 invoked by uid 48); 7 Oct 2017 12:05:39 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82464] s390x z14: vector float: invalid parameter combination for intrinsic '__builtin_s390_vec_xor'
Date: Sat, 07 Oct 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: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-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-82464-4-tRBdn0W7A1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82464-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82464-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00717.txt.bz2
Content-length: 2061

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82464

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I think:

--- gcc/config/s390/s390-builtins.def.jj        2017-10-06 11:25:44.000000000
+0200
+++ gcc/config/s390/s390-builtins.def   2017-10-07 13:47:34.851529686 +0200
@@ -1621,6 +1621,9 @@ OB_DEF_VAR (s390_vec_xor_s64_c,
 OB_DEF_VAR (s390_vec_xor_u64_a,         s390_vx,            B_DEP,            
 0,                  BT_OV_UV2DI_BV2DI_UV2DI)
 OB_DEF_VAR (s390_vec_xor_u64_b,         s390_vx,            0,                
 0,                  BT_OV_UV2DI_UV2DI_UV2DI)
 OB_DEF_VAR (s390_vec_xor_u64_c,         s390_vx,            B_DEP,            
 0,                  BT_OV_UV2DI_UV2DI_BV2DI)
+OB_DEF_VAR (s390_vec_xor_flt_a,         s390_vx,            B_VXE | B_DEP,    
 0,                  BT_OV_V4SF_BV4SI_V4SF)
+OB_DEF_VAR (s390_vec_xor_flt_b,         s390_vx,            B_VXE,            
 0,                  BT_OV_V4SF_V4SF_V4SF)
+OB_DEF_VAR (s390_vec_xor_flt_c,         s390_vx,            B_VXE | B_DEP,    
 0,                  BT_OV_V4SF_V4SF_BV4SI)
 OB_DEF_VAR (s390_vec_xor_dbl_a,         s390_vx,            B_DEP,            
 0,                  BT_OV_V2DF_BV2DI_V2DF)
 OB_DEF_VAR (s390_vec_xor_dbl_b,         s390_vx,            0,                
 0,                  BT_OV_V2DF_V2DF_V2DF)
 OB_DEF_VAR (s390_vec_xor_dbl_c,         s390_vx,            B_DEP,            
 0,                  BT_OV_V2DF_V2DF_BV2DI)

ought to fix it.  I'm just don't see any vec_{and,or,xor} tests in the
testsuite, so dunno where to add test for this.
>From gcc-bugs-return-577658-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 07 12:36:38 2017
Return-Path: <gcc-bugs-return-577658-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 75330 invoked by alias); 7 Oct 2017 12:36: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 75285 invoked by uid 48); 7 Oct 2017 12:36:34 -0000
From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/68546] passing non-contiguous associated array section garbles results
Date: Sat, 07 Oct 2017 12:36:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 5.2.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: tkoenig at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: tkoenig at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status
Message-ID: <bug-68546-4-DEjbAfaIdL@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-68546-4@http.gcc.gnu.org/bugzilla/>
References: <bug-68546-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00718.txt.bz2
Content-length: 677

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68546

Thomas Koenig <tkoenig at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |NEW

--- Comment #4 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
(In reply to Thomas Koenig from comment #3)
> Actually, the problem is in the program. We should warn about
> this, but not repack.
> 
> See https://gcc.gnu.org/ml/fortran/2017-08/msg00055.html
> (but I didn't do the part with the arguments there).

No, it's not, this is in fact an associate problem.
Unassigning.
>From gcc-bugs-return-577659-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 07 12:43:29 2017
Return-Path: <gcc-bugs-return-577659-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 79082 invoked by alias); 7 Oct 2017 12:43:29 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 79033 invoked by uid 48); 7 Oct 2017 12:43:25 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82461] Temporary required for brace-initializing (non-literal-type) member variable
Date: Sat, 07 Oct 2017 12:43:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: 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: keywords bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-82461-4-EAG7bPghqY@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82461-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82461-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00719.txt.bz2
Content-length: 465

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82461

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-10-07
     Ever confirmed|0                           |1
>From gcc-bugs-return-577660-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 07 12:56:13 2017
Return-Path: <gcc-bugs-return-577660-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 87493 invoked by alias); 7 Oct 2017 12:56: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 82354 invoked by uid 48); 7 Oct 2017 12:56:09 -0000
From: "fabien at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/50518] [C++0x] repeated c++11 opaque enum declarations are invalid
Date: Sat, 07 Oct 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: 4.6.2
X-Bugzilla-Keywords: accepts-invalid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: fabien at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: 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 assigned_to
Message-ID: <bug-50518-4-PvjIOMOVOl@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-50518-4@http.gcc.gnu.org/bugzilla/>
References: <bug-50518-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00720.txt.bz2
Content-length: 545

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50518

fabien at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |NEW
                 CC|                            |fabien at gcc dot gnu.org
           Assignee|fabien at gcc dot gnu.org          |unassigned at gcc dot gnu.org

--- Comment #4 from fabien at gcc dot gnu.org ---
Hi paolo, not for the foreseeable future unfortunately.
>From gcc-bugs-return-577661-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 07 12:57:48 2017
Return-Path: <gcc-bugs-return-577661-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 67945 invoked by alias); 7 Oct 2017 12:57: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 67883 invoked by uid 48); 7 Oct 2017 12:57:43 -0000
From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79709] Subobtimal code with -mavx and explicit vector
Date: Sat, 07 Oct 2017 12:57:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords: missed-optimization, ra
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: tkoenig at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79709-4-7i7MxwzQu5@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79709-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79709-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00721.txt.bz2
Content-length: 1805

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79709

--- Comment #9 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
The generated code for the loop seems to be on par with what
clang and icc do, so that part is fixed.

Initialization is strange for icc. For clang, it really quite short:

foo:                                    # @foo
        .cfi_startproc
# BB#0:
        vxorps  %ymm2, %ymm2, %ymm2
        vmovapd .LCPI0_0(%rip), %ymm8   # ymm8 =
[4.000000e+00,4.000000e+00,4.000000e+00,4.000000e+00]
        vmovapd %ymm1, %ymm4
        vmovapd %ymm0, %ymm5
        .p2align        4, 0x90
.LBB0_1:                                # =>This I

vs. gcc:

foo:
.LFB0:
        .cfi_startproc
        vmovsd  .LC0(%rip), %xmm2
        vmovapd %ymm1, %ymm7
        vpxor   %xmm5, %xmm5, %xmm5
        vmovq   %xmm2, %xmm9
        vmulpd  %ymm1, %ymm1, %ymm10
        vmovapd %xmm9, %xmm9
        vunpcklpd       %xmm2, %xmm9, %xmm3
        vinsertf128     $0x0, %xmm3, %ymm9, %ymm9
        vextractf128    $0x1, %ymm9, %xmm3
        vmovsd  %xmm2, %xmm3, %xmm3
        vinsertf128     $0x1, %xmm3, %ymm9, %ymm9
        vextractf128    $0x1, %ymm9, %xmm3
        vunpcklpd       %xmm2, %xmm3, %xmm3
        vmovsd  .LC1(%rip), %xmm2
        vmovq   %xmm2, %xmm8
        vinsertf128     $0x1, %xmm3, %ymm9, %ymm9
        vmovapd %xmm8, %xmm8
        vunpcklpd       %xmm2, %xmm8, %xmm3
        vinsertf128     $0x0, %xmm3, %ymm8, %ymm8
        vextractf128    $0x1, %ymm8, %xmm3
        vmovsd  %xmm2, %xmm3, %xmm3
        vinsertf128     $0x1, %xmm3, %ymm8, %ymm8
        vextractf128    $0x1, %ymm8, %xmm3
        vunpcklpd       %xmm2, %xmm3, %xmm3
        vinsertf128     $0x1, %xmm3, %ymm8, %ymm8
        vmovapd %ymm0, %ymm3
        jmp     .L3
        .p2align 4,,10
        .p2align 3
.L13:
>From gcc-bugs-return-577662-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 07 13:23:54 2017
Return-Path: <gcc-bugs-return-577662-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 124955 invoked by alias); 7 Oct 2017 13: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 124902 invoked by uid 48); 7 Oct 2017 13:23:49 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82461] [7/8 Regression] Temporary required for brace-initializing (non-literal-type) member variable
Date: Sat, 07 Oct 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: c++
X-Bugzilla-Version: 7.2.1
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc target_milestone short_desc
Message-ID: <bug-82461-4-eSfEwglLRm@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82461-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82461-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00722.txt.bz2
Content-length: 866

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82461

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org,
                   |                            |jason at gcc dot gnu.org
   Target Milestone|---                         |7.3
            Summary|Temporary required for      |[7/8 Regression] Temporary
                   |brace-initializing          |required for
                   |(non-literal-type) member   |brace-initializing
                   |variable                    |(non-literal-type) member
                   |                            |variable

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Started with r240889.
>From gcc-bugs-return-577663-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 07 13:32:59 2017
Return-Path: <gcc-bugs-return-577663-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 5314 invoked by alias); 7 Oct 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 5250 invoked by uid 48); 7 Oct 2017 13:32:54 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libfortran/78549] [8 Regression] Very slow formatted internal file output
Date: Sat, 07 Oct 2017 13:32:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libfortran
X-Bugzilla-Version: 6.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jvdelisle at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-78549-4-7IUprs84IL@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78549-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78549-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-10/txt/msg00723.txt.bz2
Content-length: 198

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78549

--- Comment #18 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
I do not see any timing difference between 7.2.1 (r253502) and trunk.
>From gcc-bugs-return-577664-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 07 15:39:23 2017
Return-Path: <gcc-bugs-return-577664-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 3232 invoked by alias); 7 Oct 2017 15:39:23 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 3222 invoked by uid 89); 7 Oct 2017 15:39:22 -0000
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=3.3 required=5.0 tests=AWL,BAYES_00,HTML_MESSAGE,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=no version=3.3.2 spammy=H*c:alternative, H*r:0400, H*c:HHH
X-HELO: mxe01.gs.com
Received: from mxe01.gs.com (HELO mxe01.gs.com) (12.47.208.209) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 07 Oct 2017 15:39:20 +0000
Received: from pps.filterd (gsppacdp01sd.idz.gs.com [127.0.0.1])	by gsppacdp01sd.idz.gs.com (8.16.0.21/8.16.0.21) with SMTP id v97FdGNd029788;	Sat, 7 Oct 2017 11:39:16 -0400
Received: from gsppacdp06nd.inz.gs.com ([10.205.68.209])	by gsppacdp01sd.idz.gs.com with ESMTP id 2derp4rvkm-1	for <gcc-bugs@gcc.gnu.org>; Sat, 07 Oct 2017 11:39:16 -0400
Received: from pps.filterd (gsppacdp06nd.inz.gs.com [127.0.0.1])	by gsppacdp06nd.inz.gs.com (8.16.0.17/8.16.0.17) with SMTP id v97Fd2pG028016	for <gcc-bugs@gcc.gnu.org>; Sat, 7 Oct 2017 11:39:16 -0400
Received: from gsdgamp16etn3.firmwide.corp.gs.com (gsdgamp16etn3.firmwide.corp.gs.com [10.59.149.62])	by gsppacdp06nd.inz.gs.com with ESMTP id 2deqpx9m7u-1	for <gcc-bugs@gcc.gnu.org>; Sat, 07 Oct 2017 11:39:16 -0400
Received: from GSDGAMP16ETN2.firmwide.corp.gs.com (10.47.14.162) by gsdgamp16etn3.firmwide.corp.gs.com (10.59.149.62) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Sat, 7 Oct 2017 11:39:16 -0400
Received: from GSDGAMP16ETN2.firmwide.corp.gs.com ([fe80::bddb:cdfb:fe77:d67c]) by gsdgamp16etn2.firmwide.corp.gs.com ([fe80::bddb:cdfb:fe77:d67c%12]) with mapi id 15.00.1210.000; Sat, 7 Oct 2017 11:39:16 -0400
From: "Saldyrkine, Mikhail" <Mikhail.Saldyrkine@gs.com>
To: "'gcc-bugs@gcc.gnu.org'" <gcc-bugs@gcc.gnu.org>
Subject: GCC does not optimize out functions without side effects with asm statements inside loop even if return velue is ignored
Date: Sat, 07 Oct 2017 15:39:00 -0000
Message-ID: <e00b20ce8ed9469cb9812991f29151aa@gsdgamp16etn2.firmwide.corp.gs.com>
References: <13c09d77e3db4aabbb0d8a1fbf81c3a7@gsdgamp16etn2.firmwide.corp.gs.com>
In-Reply-To: <13c09d77e3db4aabbb0d8a1fbf81c3a7@gsdgamp16etn2.firmwide.corp.gs.com>
x-gs-occ-classification: cADEiD6MtM/V81yfDcvek6MvoudoN9I/pOVBz2TcAP0x-gs-occ-version-number: fklVzOoRWZTK04YWiIejFAMk64JPlRzSF/HyjMxkwqcx-gs-occ-recipientsandproperties: GGD7BN/Rv9rRCN2ekeG8DAnryBsRcn6KZQX8yUbHHzpGzRuiO9qoM2CsMIzjOu2Qu6+Z65HBRLRb6u/I2x6r1See4BTOhFdppWJLWeluBEdUh0oSP93zT+prYbmRRUTkWls7T27FVlueNgDZirkCbtpmNCI5UgoT9qUnbZJfMvAPfTk1WJtMpJ3PfhYespyCywejpn5DeVWRJ6O4Xv6zvZaxMNbN2/+qCTtsc+7TTog7RI5bXLlijtJ+otLbsYwrwOO0XlOSshEBkQhhcWvWsNO1OyKvxfsmRYv5cryKsCX5QJfxcpaV5vxMfeC2MP4kE+Gbyo/eiBXDUHC+dx3Yhw=x-gs-occ-clientinfo: vA/7HhuVqq+qwPcW44++u7lNdr+Nq+RcrnfRSr1/GjwM8owUIuOhLII7iSXGSpXRyMK7FYupXc+EVnkD8kzEBdGo81fmnZtZ9RujFzqS0Vecgidmr9sCtiDkUyJFOoLxierreos1bBH48lm5r+/Oc6LmeXm7U1pjbTj7bIaFy0l1Ex45hevgFao7oJufpElV
x-ms-exchange-transport-fromentityheader: Hosted
MIME-Version: 1.0
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions 17-10-07_04:,, signatures=0
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions 17-10-07_04:,, signatures=0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
X-IsSubscribed: yes
X-SW-Source: 2017-10/txt/msg00724.txt.bz2
Content-length: 3366

g++ (GCC) 6.3.1 20170216 (Red Hat 6.3.1-3)

In the below case compile_test_asm_inside_loop invokes test_asm_inside_loop and ignores results.
The call into test_asm_inside_loop is expected to be eliminated since return value is not used and there is no side effect
The call elimination works fine without asm and without loop
It does not work with asm inside loop

TEST CODE

#include <iostream>
#include <assert.h>

using namespace std;
constexpr static size_t capacity = 1024;
uint64_t objects[capacity];

// THE FUNCTION IS ELIMINATED BY COMPILER IF OUTPUT IS NOT USED
inline uint64_t test_noloop(uint64_t idx) {
    uint64_t result;
    asm ("movq (%1,%2,8), %0" : "=r" (result) : "r" (objects), "r" (idx) );
    if( result > 128 )
        return result;
    return 0;
}

// THE FUNCTION IS ELIMINATED BY COMPILER IF OUTPUT IS NOT USED
inline uint64_t test_noasm(uint64_t idx) {
    while(true)
    {
        if( objects[idx] > 128 )
            return objects[idx];
        ++idx;
    }
}

// THE FUNCTION IS KEEPT EVEN WHEN IF RESULT IS NOT USED - ASM INSIDE LOOP CAUSING THE ISSUE
inline uint64_t test_asm_inside_loop(uint64_t idx) {
    while(true)
    {
        uint64_t result;
        asm ("movq (%1,%2,8), %0" : "=r" (result) : "r" (objects), "r" (idx) );
        if( result > 128 )
            return result;
        ++idx;
    }
}

void init() {
    srand(time(nullptr));
    for( size_t i = 0; i < capacity - 1; ++i )
        objects[i] = random() % 256;
    objects[capacity-1] = 255;
}

// TETS THAT test_noasm AND test_asm_inside_loop PRODUCE SAME RESULT
void sanity_test() {
    for( size_t i = 0; i < capacity; ++i ) {
        assert( test_noasm(i) == test_asm_inside_loop(i));
    }
}

void compile_test_noasm() {
    test_noasm(0);
}

void compile_test_noloop() {
    test_noloop(0);
}

void compile_test_asm_inside_loop() {
    test_asm_inside_loop(0);
}

int main( int argc, char* argv[] ) {
    init();
    sanity_test();
    compile_test_noasm();
    compile_test_noloop();
    compile_test_asm_inside_loop();
}

COMPILATION AND DISASSEMBLER RESULTS:

/opt/rh/devtoolset-6//root/bin/g++  -O3 -funroll-loops  loop_optimization.cpp; gdb -batch -ex "file a.out" -ex "disas compile_test_noasm" -ex "disas compile_test_noloop" -ex "disas compile_test_asm_inside_loop"
Dump of assembler code for function _Z18compile_test_noasmv:
   0x0000000000400970 <+0>:     repz retq
End of assembler dump.
Dump of assembler code for function _Z19compile_test_noloopv:
   0x0000000000400980 <+0>:     repz retq
End of assembler dump.
Dump of assembler code for function _Z28compile_test_asm_inside_loopv:
   0x0000000000400990 <+0>:     xor    %edx,%edx
   0x0000000000400992 <+2>:     mov    $0x601080,%ecx
   0x0000000000400997 <+7>:     xor    %eax,%eax
   0x0000000000400999 <+9>:     mov    (%rcx,%rdx,8),%rsi
   0x000000000040099d <+13>:    cmp    $0x80,%rsi
   0x00000000004009a4 <+20>:    ja     0x4009c1 <_Z28compile_test_asm_inside_loopv+49>
   0x00000000004009a6 <+22>:    nopw   %cs:0x0(%rax,%rax,1)
   0x00000000004009b0 <+32>:    add    $0x1,%rax
   0x00000000004009b4 <+36>:    mov    (%rcx,%rax,8),%rdi
   0x00000000004009b8 <+40>:    cmp    $0x80,%rdi
   0x00000000004009bf <+47>:    jbe    0x4009b0 <_Z28compile_test_asm_inside_loopv+32>
   0x00000000004009c1 <+49>:    repz retq
End of assembler dump.



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-09-26 20:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-23  6:00 [Bug fortran/58225] New: In show_locus at fortran/error.c:391 pointer beyond end of line zeccav at gmail dot com
2013-08-23  6:24 ` [Bug fortran/58225] " kargl at gcc dot gnu.org
2013-09-02 12:37 ` dominiq at lps dot ens.fr
2013-11-25  0:57 ` kargl at gcc dot gnu.org
2017-09-26 20:59 ` dominiq at lps dot ens.fr

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).