public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug testsuite/40625] [4.5/4.6 Regression] Errors in "make -k check-gcc RUNTESTFLAGS=plugin.exp"
       [not found] <bug-40625-4@http.gcc.gnu.org/bugzilla/>
@ 2010-12-16 13:27 ` rguenth at gcc dot gnu.org
  2011-01-15  1:10 ` dirtyepic at gentoo dot org
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2010-12-16 13:27 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.5.2                       |4.5.3

--- Comment #10 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-12-16 13:03:43 UTC ---
GCC 4.5.2 is being released, adjusting target milestone.


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

* [Bug testsuite/40625] [4.5/4.6 Regression] Errors in "make -k check-gcc RUNTESTFLAGS=plugin.exp"
       [not found] <bug-40625-4@http.gcc.gnu.org/bugzilla/>
  2010-12-16 13:27 ` [Bug testsuite/40625] [4.5/4.6 Regression] Errors in "make -k check-gcc RUNTESTFLAGS=plugin.exp" rguenth at gcc dot gnu.org
@ 2011-01-15  1:10 ` dirtyepic at gentoo dot org
  2011-04-28 15:44 ` [Bug testsuite/40625] [4.5/4.6/4.7 " rguenth at gcc dot gnu.org
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 11+ messages in thread
From: dirtyepic at gentoo dot org @ 2011-01-15  1:10 UTC (permalink / raw)
  To: gcc-bugs

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

Ryan Hill <dirtyepic at gentoo dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dirtyepic at gentoo dot org

--- Comment #11 from Ryan Hill <dirtyepic at gentoo dot org> 2011-01-15 00:39:26 UTC ---
I still see the struct-layout-1.exp error.

Running
/var/tmp/portage/sys-devel/gcc-4.5.2/work/gcc-4.5.2/gcc/testsuite/g++.dg/compat/struct-layout-1.exp
...
ERROR: tcl error sourcing
/var/tmp/portage/sys-devel/gcc-4.5.2/work/gcc-4.5.2/gcc/testsuite/g++.dg/compat/struct-layout-1.exp.
ERROR: can't read "HOSTCC": no such variable
    while executing
"remote_exec build "$HOSTCC $HOSTCFLAGS $generator_cmd""
    invoked from within
"set status [remote_exec build "$HOSTCC $HOSTCFLAGS $generator_cmd"]"
    (file
"/var/tmp/portage/sys-devel/gcc-4.5.2/work/gcc-4.5.2/gcc/testsuite/g++.dg/compat/struct-layout-1.exp"
line 134)
    invoked from within
"source
/var/tmp/portage/sys-devel/gcc-4.5.2/work/gcc-4.5.2/gcc/testsuite/g++.dg/compat/struct-layout-1.exp"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 source
/var/tmp/portage/sys-devel/gcc-4.5.2/work/gcc-4.5.2/gcc/testsuite/g++.dg/compat/struct-layout-1.exp"
    invoked from within
"catch "uplevel #0 source $test_file_name""


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

* [Bug testsuite/40625] [4.5/4.6/4.7 Regression] Errors in "make -k check-gcc RUNTESTFLAGS=plugin.exp"
       [not found] <bug-40625-4@http.gcc.gnu.org/bugzilla/>
  2010-12-16 13:27 ` [Bug testsuite/40625] [4.5/4.6 Regression] Errors in "make -k check-gcc RUNTESTFLAGS=plugin.exp" rguenth at gcc dot gnu.org
  2011-01-15  1:10 ` dirtyepic at gentoo dot org
@ 2011-04-28 15:44 ` rguenth at gcc dot gnu.org
  2012-07-02 13:56 ` [Bug testsuite/40625] [4.6/4.7/4.8 " rguenth at gcc dot gnu.org
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-04-28 15:44 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.5.3                       |4.5.4

--- Comment #12 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-04-28 14:51:50 UTC ---
GCC 4.5.3 is being released, adjusting target milestone.


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

* [Bug testsuite/40625] [4.6/4.7/4.8 Regression] Errors in "make -k check-gcc RUNTESTFLAGS=plugin.exp"
       [not found] <bug-40625-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2011-04-28 15:44 ` [Bug testsuite/40625] [4.5/4.6/4.7 " rguenth at gcc dot gnu.org
@ 2012-07-02 13:56 ` rguenth at gcc dot gnu.org
  2013-04-12 15:17 ` [Bug testsuite/40625] [4.7/4.8/4.9 " jakub at gcc dot gnu.org
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-07-02 13:56 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.5.4                       |4.6.4


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

* [Bug testsuite/40625] [4.7/4.8/4.9 Regression] Errors in "make -k check-gcc RUNTESTFLAGS=plugin.exp"
       [not found] <bug-40625-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2012-07-02 13:56 ` [Bug testsuite/40625] [4.6/4.7/4.8 " rguenth at gcc dot gnu.org
@ 2013-04-12 15:17 ` jakub at gcc dot gnu.org
  2014-06-12 13:45 ` [Bug testsuite/40625] [4.7/4.8/4.9/4.10 " rguenth at gcc dot gnu.org
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-04-12 15:17 UTC (permalink / raw)
  To: gcc-bugs


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.6.4                       |4.7.4

--- Comment #13 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-04-12 15:16:31 UTC ---
GCC 4.6.4 has been released and the branch has been closed.


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

* [Bug testsuite/40625] [4.7/4.8/4.9/4.10 Regression] Errors in "make -k check-gcc RUNTESTFLAGS=plugin.exp"
       [not found] <bug-40625-4@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2013-04-12 15:17 ` [Bug testsuite/40625] [4.7/4.8/4.9 " jakub at gcc dot gnu.org
@ 2014-06-12 13:45 ` rguenth at gcc dot gnu.org
  2014-12-19 13:38 ` [Bug testsuite/40625] [4.8/4.9/5 " jakub at gcc dot gnu.org
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-06-12 13:45 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.7.4                       |4.8.4

--- Comment #14 from Richard Biener <rguenth at gcc dot gnu.org> ---
The 4.7 branch is being closed, moving target milestone to 4.8.4.


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

* [Bug testsuite/40625] [4.8/4.9/5 Regression] Errors in "make -k check-gcc RUNTESTFLAGS=plugin.exp"
       [not found] <bug-40625-4@http.gcc.gnu.org/bugzilla/>
                   ` (5 preceding siblings ...)
  2014-06-12 13:45 ` [Bug testsuite/40625] [4.7/4.8/4.9/4.10 " rguenth at gcc dot gnu.org
@ 2014-12-19 13:38 ` jakub at gcc dot gnu.org
  2015-06-23  8:21 ` [Bug testsuite/40625] [4.8/4.9/5/6 " rguenth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-12-19 13:38 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.8.4                       |4.8.5

--- Comment #15 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 4.8.4 has been released.


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

* [Bug testsuite/40625] [4.8/4.9/5/6 Regression] Errors in "make -k check-gcc RUNTESTFLAGS=plugin.exp"
       [not found] <bug-40625-4@http.gcc.gnu.org/bugzilla/>
                   ` (6 preceding siblings ...)
  2014-12-19 13:38 ` [Bug testsuite/40625] [4.8/4.9/5 " jakub at gcc dot gnu.org
@ 2015-06-23  8:21 ` rguenth at gcc dot gnu.org
  2015-06-26 20:10 ` [Bug testsuite/40625] [4.9/5/6 " jakub at gcc dot gnu.org
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-06-23  8:21 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.8.5                       |4.9.3

--- Comment #16 from Richard Biener <rguenth at gcc dot gnu.org> ---
The gcc-4_8-branch is being closed, re-targeting regressions to 4.9.3.


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

* [Bug testsuite/40625] [4.9/5/6 Regression] Errors in "make -k check-gcc RUNTESTFLAGS=plugin.exp"
       [not found] <bug-40625-4@http.gcc.gnu.org/bugzilla/>
                   ` (7 preceding siblings ...)
  2015-06-23  8:21 ` [Bug testsuite/40625] [4.8/4.9/5/6 " rguenth at gcc dot gnu.org
@ 2015-06-26 20:10 ` jakub at gcc dot gnu.org
  2015-06-26 20:36 ` jakub at gcc dot gnu.org
  2016-03-30 18:18 ` law at redhat dot com
  10 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-06-26 20:10 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #17 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 4.9.3 has been released.


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

* [Bug testsuite/40625] [4.9/5/6 Regression] Errors in "make -k check-gcc RUNTESTFLAGS=plugin.exp"
       [not found] <bug-40625-4@http.gcc.gnu.org/bugzilla/>
                   ` (8 preceding siblings ...)
  2015-06-26 20:10 ` [Bug testsuite/40625] [4.9/5/6 " jakub at gcc dot gnu.org
@ 2015-06-26 20:36 ` jakub at gcc dot gnu.org
  2016-03-30 18:18 ` law at redhat dot com
  10 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-06-26 20:36 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.9.3                       |4.9.4


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

* [Bug testsuite/40625] [4.9/5/6 Regression] Errors in "make -k check-gcc RUNTESTFLAGS=plugin.exp"
       [not found] <bug-40625-4@http.gcc.gnu.org/bugzilla/>
                   ` (9 preceding siblings ...)
  2015-06-26 20:36 ` jakub at gcc dot gnu.org
@ 2016-03-30 18:18 ` law at redhat dot com
  10 siblings, 0 replies; 11+ messages in thread
From: law at redhat dot com @ 2016-03-30 18:18 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
                 CC|                            |law at redhat dot com
         Resolution|---                         |FIXED

--- Comment #18 from Jeffrey A. Law <law at redhat dot com> ---
The original bug in this report was fixed back in the summer of 2009 almost
immediately after this bug was reported.

THe was a follow-on issue reported (c#11) which was unfortunately tacked onto
this report.  I have been unable to reproduce the issue noted in c#11, even if
I go back to the gcc-4.5 branchpoint.  While the follow-on issue looks similar,
it would be a distinct problem.

I'm closing as the original issue is resolved and has been for a very long
time.  If the secondary issue is still a problem, a new bug should be filed.
>From gcc-bugs-return-520615-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 30 18:28:15 2016
Return-Path: <gcc-bugs-return-520615-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 48080 invoked by alias); 30 Mar 2016 18: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 43529 invoked by uid 48); 30 Mar 2016 18:28:01 -0000
From: "georg@schorsch-tech.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/70464] [arch64] create a self hosting compiler
Date: Wed, 30 Mar 2016 18:28:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 5.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: georg@schorsch-tech.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-70464-4-qDgh2BYBWv@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70464-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70464-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03655.txt.bz2
Content-length: 5910

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

--- Comment #10 from georg@schorsch-tech.de ---
Components to build the "aarch64-to-aarch64" gcc/g++:
-----------------------------------------------------
sha1sum + filename
f10c64e92d9c72ee428df3feaf349c4ecb2493bd  binutils-2.25.tar.gz
2dc70313e8e2c6610b856d627bce9c9c3f848077  cloog-0.18.1.tar.gz
39ebff8a873181728b02db3689215557628eed9d  gcc-5.3.0.tar.gz
5be95334f197121d8b351059a1c6518305d88e2a  glibc-2.22.tar.xz
1aaf78358ab9e34aeb61f3ae08174ee9118ece98  gmp-6.0.0a.tar.xz
c5a2b201bf05229647e73203c0bf2d9679d4d21f  isl-0.16.1.tar.bz2
18d8e415f57a1fe4322faec441e45b6d2383b7d1  linux-4.5.tar.xz
5072d82ab50ec36cc8c0e320b5c377adb48abe70  mpc-1.0.2.tar.gz
cedc0055d55b6ee4cd17e1e6119ed412520ff81a  mpfr-3.1.4.tar.xz
------------------------------------------------------


Used x86_64-to-aarch64 compiler (created with crossdev 20150716):
----------------------------------------------------------------
georg@hammerhead ~ $ whereis aarch64-none-linux-gnu-gcc
aarch64-none-linux-gnu-gcc: /usr/bin/aarch64-none-linux-gnu-gcc
georg@hammerhead ~ $ file /usr/bin/aarch64-none-linux-gnu-gcc
/usr/bin/aarch64-none-linux-gnu-gcc: ELF 64-bit LSB executable, x86-64, version
1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for
GNU/Linux 2.6.32, stripped

georg@hammerhead ~ $ /usr/bin/aarch64-none-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=/usr/x86_64-pc-linux-gnu/aarch64-none-linux-gnu/gcc-bin/5.3.0/aarch64-none-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/aarch64-none-linux-gnu/5.3.0/lto-wrapper
Target: aarch64-none-linux-gnu
Configured with:
/var/tmp/portage/cross-aarch64-none-linux-gnu/gcc-5.3.0/work/gcc-5.3.0/configure
--host=x86_64-pc-linux-gnu --target=aarch64-none-linux-gnu
--build=x86_64-pc-linux-gnu --prefix=/usr
--bindir=/usr/x86_64-pc-linux-gnu/aarch64-none-linux-gnu/gcc-bin/5.3.0
--includedir=/usr/lib/gcc/aarch64-none-linux-gnu/5.3.0/include
--datadir=/usr/share/gcc-data/aarch64-none-linux-gnu/5.3.0
--mandir=/usr/share/gcc-data/aarch64-none-linux-gnu/5.3.0/man
--infodir=/usr/share/gcc-data/aarch64-none-linux-gnu/5.3.0/info
--with-gxx-include-dir=/usr/lib/gcc/aarch64-none-linux-gnu/5.3.0/include/g++-v5
--with-python-dir=/share/gcc-data/aarch64-none-linux-gnu/5.3.0/python
--enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt
--disable-werror --with-system-zlib --enable-nls --without-included-gettext
--enable-checking=release --with-bugurl=https://bugs.gentoo.org/
--with-pkgversion='Gentoo 5.3.0 p1.0, pie-0.6.5' --enable-libstdcxx-time
--enable-poison-system-directories --with-sysroot=/usr/aarch64-none-linux-gnu
--disable-bootstrap --enable-__cxa_atexit --enable-clocale=gnu
--disable-multilib --disable-altivec --disable-fixed-point --disable-libgcj
--enable-libgomp --disable-libmudflap --disable-libssp --disable-libcilkrts
--enable-lto --without-isl --enable-libsanitizer
Thread model: posix
gcc version 5.3.0 (Gentoo 5.3.0 p1.0, pie-0.6.5) 


Configure line for the "aarch64-to-aarch64" gcc:
-------------------------------------------------
../gcc-5.3.0/configure --prefix=/opt/cross --host=aarch64-none-linux-gnu
--target=aarch64-none-linux-gnu --enable-languages=c,c++ --disable-multilib

Error message:
--------------
libtool: compile:  aarch64-none-linux-gnu-c++
-B/home/georg/Dokumente/Entwicklung/rpi3/src/gcc/build-gcc/aarch64-none-linux-gnu/libstdc++-v3/src/.libs
-B/home/georg/Dokumente/Entwicklung/rpi3/src/gcc/build-gcc/aarch64-none-linux-gnu/libstdc++-v3/libsupc++/.libs
-DHAVE_CONFIG_H -I. -I../../../gcc-5.3.0/libitm
-I../../../gcc-5.3.0/libitm/config/linux/aarch64
-I../../../gcc-5.3.0/libitm/config/linux
-I../../../gcc-5.3.0/libitm/config/aarch64
-I../../../gcc-5.3.0/libitm/config/posix
-I../../../gcc-5.3.0/libitm/config/generic -I../../../gcc-5.3.0/libitm
-ftls-model=initial-exec -Wall -pthread -Werror -std=gnu++0x -funwind-tables
-fno-exceptions -fno-rtti -fabi-version=4 -g -O2 -D_GNU_SOURCE -MT util.lo -MD
-MP -MF .deps/util.Tpo -c ../../../gcc-5.3.0/libitm/util.cc  -fPIC -DPIC -o
.libs/util.o
In file included from /usr/aarch64-none-linux-gnu/usr/include/stdio.h:936:0,
                 from ../../../gcc-5.3.0/libitm/util.cc:27:
/usr/aarch64-none-linux-gnu/usr/include/bits/stdio2.h: In function 'void
GTM::gtm_verror(const char*, va_list)':
/usr/aarch64-none-linux-gnu/usr/include/bits/stdio2.h:124:1: error: inlining
failed in call to always_inline 'int vfprintf(FILE*, const char*,
__gnuc_va_list)': function body can be overwritten at link time
 vfprintf (FILE *__restrict __stream,
 ^
../../../gcc-5.3.0/libitm/util.cc:35:31: error: called from here
   vfprintf (stderr, fmt, list);
                               ^
Makefile:517: recipe for target 'util.lo' failed


As the aarch64-none-linux-gnu-g++ executable got built but the libstdc++3 not,
i copied the "partly done" destination folder to the raspberry pi 3 and here is
the info about aarch64-none-linux-gnu-gcc and aarch64-none-linux-gnu-g++ from
the target:
--------------
Pi_3 64_bit ~ # gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/opt/cross/libexec/gcc/aarch64-none-linux-gnu/5.3.0/lto-wrapper
Target: aarch64-none-linux-gnu
Configured with: ../gcc-5.3.0/configure --prefix=/opt/cross
--host=aarch64-none-linux-gnu --target=aarch64-none-linux-gnu
--enable-languages=c,c++ --disable-multilib
Thread model: posix
gcc version 5.3.0 (GCC) 
Pi_3 64_bit ~ # g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/opt/cross/libexec/gcc/aarch64-none-linux-gnu/5.3.0/lto-wrapper
Target: aarch64-none-linux-gnu
Configured with: ../gcc-5.3.0/configure --prefix=/opt/cross
--host=aarch64-none-linux-gnu --target=aarch64-none-linux-gnu
--enable-languages=c,c++ --disable-multilib
Thread model: posix
gcc version 5.3.0 (GCC) 
Pi_3 64_bit ~ #
>From gcc-bugs-return-520616-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 30 18:30:43 2016
Return-Path: <gcc-bugs-return-520616-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 55607 invoked by alias); 30 Mar 2016 18: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 55394 invoked by uid 48); 30 Mar 2016 18:30:24 -0000
From: "schwab@linux-m68k.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/70464] [arch64] create a self hosting compiler
Date: Wed, 30 Mar 2016 18: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: 5.3.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-70464-4-PvnA3jgrMV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70464-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70464-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03656.txt.bz2
Content-length: 182

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

--- Comment #11 from Andreas Schwab <schwab@linux-m68k.org> ---
You should use --with-sysroot to configure your cross compiler.
>From gcc-bugs-return-520617-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 30 18:41:36 2016
Return-Path: <gcc-bugs-return-520617-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 112637 invoked by alias); 30 Mar 2016 18: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 104055 invoked by uid 48); 30 Mar 2016 18:41:23 -0000
From: "su at cs dot ucdavis.edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/70466] New: ICE on invalid code on x86_64-linux-gnu in tree check: expected constructor, have parm_decl in convert_like_real, at cp/call.c:6371
Date: Wed, 30 Mar 2016 18: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: 6.0
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-70466-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03657.txt.bz2
Content-length: 4850

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

            Bug ID: 70466
           Summary: ICE on invalid code on x86_64-linux-gnu in tree check:
                    expected constructor, have parm_decl in
                    convert_like_real, at cp/call.c:6371
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: su at cs dot ucdavis.edu
  Target Milestone: ---

The following causes an ICE when compiled with the current GCC trunk on
x86_64-linux-gnu in both 32-bit and 64-bit modes. 

This is a regression from 5.3.x. 


$ g++-trunk -v
Using built-in specs.
COLLECT_GCC=g++-trunk
COLLECT_LTO_WRAPPER=/usr/local/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/6.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc-source-trunk/configure --enable-languages=c,c++,lto
--prefix=/usr/local/gcc-trunk --disable-bootstrap
Thread model: posix
gcc version 6.0.0 20160330 (experimental) [trunk revision 234546] (GCC) 
$ 
$ g++-trunk small.cpp
small.cpp:1:21: error: conflicting declaration ‘class T’
 template < class T, class T >
                     ^~~~~
small.cpp:1:12: note: previous declaration as ‘class T’
 template < class T, class T >
            ^~~~~
small.cpp:5:19: error: expected ‘)’ before ‘::’ token
   explicit A (T (S::*f) ()) {}
                   ^~
small.cpp:5:19: error: expected ‘)’ before ‘::’ token
small.cpp:5:18: error: expected ‘;’ at end of member declaration
   explicit A (T (S::*f) ()) {}
                  ^
small.cpp:5:21: error: expected id-expression before ‘*’ token
   explicit A (T (S::*f) ()) {}
                     ^
small.cpp: In instantiation of ‘A<T, S> foo(T (S::*)()) [with T = void; S =
B]’:
small.cpp:23:15:   required from here
small.cpp:11:10: internal compiler error: tree check: expected constructor,
have parm_decl in convert_like_real, at cp/call.c:6371
   return A < T, S > (f);
          ^~~~~~~~~~~~~~
0xfe3e6c tree_check_failed(tree_node const*, char const*, int, char const*,
...)
        ../../gcc-source-trunk/gcc/tree.c:9643
0x615e30 tree_check
        ../../gcc-source-trunk/gcc/tree.h:3006
0x615e30 convert_like_real
        ../../gcc-source-trunk/gcc/cp/call.c:6371
0x614608 convert_like_real
        ../../gcc-source-trunk/gcc/cp/call.c:6539
0x61187f build_over_call
        ../../gcc-source-trunk/gcc/cp/call.c:7496
0x61e035 build_new_method_call_1
        ../../gcc-source-trunk/gcc/cp/call.c:8419
0x61e035 build_new_method_call(tree_node*, tree_node*, vec<tree_node*, va_gc,
vl_embed>**, tree_node*, int, tree_node**, int)
        ../../gcc-source-trunk/gcc/cp/call.c:8489
0x61efd5 build_special_member_call(tree_node*, tree_node*, vec<tree_node*,
va_gc, vl_embed>**, tree_node*, int, int)
        ../../gcc-source-trunk/gcc/cp/call.c:8026
0x621a4b perform_direct_initialization_if_possible(tree_node*, tree_node*,
bool, int)
        ../../gcc-source-trunk/gcc/cp/call.c:9691
0x783797 build_static_cast_1
        ../../gcc-source-trunk/gcc/cp/typeck.c:6724
0x784a57 cp_build_c_cast(tree_node*, tree_node*, int)
        ../../gcc-source-trunk/gcc/cp/typeck.c:7423
0x6d248a build_functional_cast(tree_node*, tree_node*, int)
        ../../gcc-source-trunk/gcc/cp/typeck2.c:2011
0x68c3b3 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool,
bool)
        ../../gcc-source-trunk/gcc/cp/pt.c:16083
0x67db0f tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool)
        ../../gcc-source-trunk/gcc/cp/pt.c:15802
0x67e18b tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool)
        ../../gcc-source-trunk/gcc/cp/pt.c:15114
0x67f050 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool)
        ../../gcc-source-trunk/gcc/cp/pt.c:15290
0x67b6a8 instantiate_decl(tree_node*, int, bool)
        ../../gcc-source-trunk/gcc/cp/pt.c:22013
0x6c7a52 instantiate_pending_templates(int)
        ../../gcc-source-trunk/gcc/cp/pt.c:22132
0x70a3d7 c_parse_final_cleanups()
        ../../gcc-source-trunk/gcc/cp/decl2.c:4599
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
$ 


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


template < class T, class T >  // should be: template < class T, class S >
class A
{
public:
  explicit A (T (S::*f) ()) {}
};

template < class T, class S > 
A < T, S > foo (T (S::*f) ())
{
  return A < T, S > (f);
}

class B
{
public:
  void bar () {}
};

int
main ()
{
  foo (&B::bar);
  return 0;
}
>From gcc-bugs-return-520618-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 30 18:47:53 2016
Return-Path: <gcc-bugs-return-520618-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 51490 invoked by alias); 30 Mar 2016 18:47:53 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 51415 invoked by uid 48); 30 Mar 2016 18:47:40 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/70465] [4.9/5/6 Regression]  Poor code for x87 asm
Date: Wed, 30 Mar 2016 18: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: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: law at redhat dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-70465-4-Ka5G7uoaVR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70465-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70465-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03658.txt.bz2
Content-length: 523

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

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

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

--- Comment #1 from Jeffrey A. Law <law at redhat dot com> ---
Duh.  Should have realized this early.  The offending commit is the
introduction of IRA.

Vlad, if you could take a quick peek it'd be appreciated.
>From gcc-bugs-return-520620-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 30 18:59:52 2016
Return-Path: <gcc-bugs-return-520620-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 88821 invoked by alias); 30 Mar 2016 18: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 88074 invoked by uid 48); 30 Mar 2016 18:59:39 -0000
From: "georg@schorsch-tech.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/70464] [arch64] create a self hosting compiler
Date: Wed, 30 Mar 2016 18:59:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 5.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: georg@schorsch-tech.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-70464-4-cI11ufG9Gl@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70464-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70464-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03660.txt.bz2
Content-length: 791

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

--- Comment #12 from georg@schorsch-tech.de ---
I purged all temporary build data, added
"--with-sysroot=/opt/aarch64-none-linux-gnu" to the configure line and rebuild
again. The same error.

/usr/aarch64-none-linux-gnu/usr/include/bits/stdio2.h: In function 'void
GTM::gtm_verror(const char*, va_list)':
/usr/aarch64-none-linux-gnu/usr/include/bits/stdio2.h:124:1: error: inlining
failed in call to always_inline 'int vfprintf(FILE*, const char*,
__gnuc_va_list)': function body can be overwritten at link time
 vfprintf (FILE *__restrict __stream,
 ^
../../../gcc-5.3.0/libitm/util.cc:35:31: error: called from here
   vfprintf (stderr, fmt, list);
                               ^
Makefile:517: recipe for target 'util.lo' failed
>From gcc-bugs-return-520619-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 30 18:59:42 2016
Return-Path: <gcc-bugs-return-520619-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 88125 invoked by alias); 30 Mar 2016 18:59:42 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 87684 invoked by uid 48); 30 Mar 2016 18:59:29 -0000
From: "b7.10110111 at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/70467] New: Useless "and [esp],-1" emitted on AND with uint64_t variable
Date: Wed, 30 Mar 2016 18:59: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: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: b7.10110111 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-70467-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03659.txt.bz2
Content-length: 1515

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

            Bug ID: 70467
           Summary: Useless "and [esp],-1" emitted on AND with uint64_t
                    variable
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: b7.10110111 at gmail dot com
  Target Milestone: ---

Consider the following C code:

#include <string.h>
long double __attribute__((noinline)) test() { return 0; }

long double doStuff()
{
    long double value=test();
    unsigned long long v;
    memcpy(&v,&value,sizeof v);
    v&=~(1ull<<63);
    memcpy(&value,&v,sizeof v);
    return value;
}
int main(){}

I get the following output for duStuff() function when I compile this code with
`gcc -O3 -fomit-frame-pointer -m32`:


doStuff:
        sub     esp, 28
        call    test       ; OK, I asked to avoid inlining it
        fstp    TBYTE PTR [esp]
        and     DWORD PTR [esp], -1           ; DO NOTHING!!!
        and     DWORD PTR [esp+4], 2147483647 ; Clear highest bit
        fld     TBYTE PTR [esp]
        add     esp, 28
        ret


The instruction marked with `DO NOTHING!!!` is a no-op here (flags are not
tested) and should have been eliminated.

This useless instruction is generated across generations of GCC starting at
least with 4.4.7 and ending at 6.0.0 20160221 (the snapshot testable at
gcc.godbolt.org).
>From gcc-bugs-return-520621-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 30 20:01:19 2016
Return-Path: <gcc-bugs-return-520621-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 101812 invoked by alias); 30 Mar 2016 20:01:19 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 101506 invoked by uid 48); 30 Mar 2016 20:01:06 -0000
From: "vmakarov at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/70461] [6 Regression] Performance regression after r234527
Date: Wed, 30 Mar 2016 20:01:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords:
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: cc
Message-ID: <bug-70461-4-ym1FvVIBOf@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70461-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70461-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03661.txt.bz2
Content-length: 1046

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

Vladimir Makarov <vmakarov at gcc dot gnu.org> changed:

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

--- Comment #1 from Vladimir Makarov <vmakarov at gcc dot gnu.org> ---
(In reply to Alexander Fomin from comment #0)
> Created attachment 38134 [details]
> A reproducer
> 
> When trying to compile the attached reproducer with -m32 -O2 -march=core-avx2
> we generate 12 extra instructions (namely spills & fills) for the hot loop
> since r234527.

Thank you for finding this out.

I am confirming that the revision resulted in the code worsening.  The problem
is in using a wrong cost (65535) in saving calculations.  Such cost is for AREG
in DImode.  This cost is defined when the class (AREG) has not enough registers
to hold a value in given mode (DImode). 

I hope the patch will be ready today or tomorrow.
>From gcc-bugs-return-520622-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 30 20:19:01 2016
Return-Path: <gcc-bugs-return-520622-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 85403 invoked by alias); 30 Mar 2016 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 85236 invoked by uid 48); 30 Mar 2016 20:18:48 -0000
From: "andres.tiraboschi at tallertechnologies dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/70201] Dump C++ template instantiations
Date: Wed, 30 Mar 2016 20:19:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: andres.tiraboschi at tallertechnologies dot com
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: andres.tiraboschi at tallertechnologies dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-70201-4-41IpBjulAF@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70201-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70201-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03662.txt.bz2
Content-length: 2237

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

--- Comment #4 from Andrés Agustín Tiraboschi <andres.tiraboschi at tallertechnologies dot com> ---
Created attachment 38139
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38139&action=edit
Patch adding new flag in order to dump information about template
instantiations.

Hi,
the attached patch adds a new compilation flag 'ftemplate-instantiations' in
order
to allow dumping debug information for template instantiations.
This flag has 2 possible values: none(by default) and hreadable, that prints
wich
templates instantiations had been made in a human readable way.
This patch was also made in order to add options easily and to interarct with
plugins.
  For example in a plugin can be defined a derived class for
template_instantiations_callbacks
implementing _function_instantiation, _class_instantiation,
_using_instantiation
and then using add_template_instantiations_callbacks in order to access
information
about wich template instantiations had been made.

This is an updated version.

Changelog
2016-03-29  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>

        * gcc/c-family/c.opt (ftemplate-instantiations): New flag.
        * gcc/flag-types.h (ti_dump_options): New type.
        * gcc/cp/decl2.c (cp_write_global_declarations): Added code to dump
information.
        * gcc/cp/cp-tree.h (template_instantiations_callbacks): New type.
        (call_template_instantiation_callbacks): Declare.
        (add_template_instantiations_callbacks): Likewise.
        (clean_up_callbacks): Likewise.
        * gcc/cp/pt.c (human_readable_template_instantiations): New type.
        (instantiation_callbacks): Declare.
        (call_template_instantiation_callback): New function.
        (call_template_instantiation_callbacks): Likewise.
        (add_template_instantiations_callbacks): Likewise.
        (initialize_instantiations_callbacks): Likewise.
        (clean_up_callbacks): Likewise.
        (init_template_processing): Added code to initialize
instatiation_callbacks.
        (register_specialization): Added code to dump information.
    * gcc/doc/invoke.texi (ftemplate-instantiations): Added documentation.




Thanks.
>From gcc-bugs-return-520623-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 30 20:23:42 2016
Return-Path: <gcc-bugs-return-520623-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 95616 invoked by alias); 30 Mar 2016 20: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 95513 invoked by uid 48); 30 Mar 2016 20:23:28 -0000
From: "su at cs dot ucdavis.edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/70468] New: ICE on valid code on x86_64-linux-gnu in emit_mem_initializers, at cp/init.c:1109
Date: Wed, 30 Mar 2016 20:23:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 6.0
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-70468-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03663.txt.bz2
Content-length: 2793

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

            Bug ID: 70468
           Summary: ICE on valid code on x86_64-linux-gnu in
                    emit_mem_initializers, at cp/init.c:1109
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: su at cs dot ucdavis.edu
  Target Milestone: ---

The following code causes an ICE when compiled with the current GCC trunk (and
4.8.x and later) on x86_64-linux-gnu in both 32-bit and 64-bit modes.  

This is a regression from 4.7.x. 


$ g++-trunk -v
Using built-in specs.
COLLECT_GCC=g++-trunk
COLLECT_LTO_WRAPPER=/usr/local/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/6.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc-source-trunk/configure --enable-languages=c,c++,lto
--prefix=/usr/local/gcc-trunk --disable-bootstrap
Thread model: posix
gcc version 6.0.0 20160330 (experimental) [trunk revision 234546] (GCC) 
$ 
$ g++-4.7 -c small.cpp
$   
$ g++-trunk -c small.cpp
small.cpp: In instantiation of ‘A< <template-parameter-1-1> >::A() [with
<template-parameter-1-1> = S]’:
small.cpp:22:3:   required from ‘B<T1, T2>& operator<<(B<T1, T2>&, int) [with
T1 = S; T2 = S]’
small.cpp:26:47:   required from here
small.cpp:7:21: internal compiler error: in emit_mem_initializers, at
cp/init.c:1109
   A () : f0 (), f1 () {}
                     ^
0x79de0f emit_mem_initializers(tree_node*)
        ../../gcc-source-trunk/gcc/cp/init.c:1109
0x681742 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool)
        ../../gcc-source-trunk/gcc/cp/pt.c:15110
0x67f050 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool)
        ../../gcc-source-trunk/gcc/cp/pt.c:15290
0x67b6a8 instantiate_decl(tree_node*, int, bool)
        ../../gcc-source-trunk/gcc/cp/pt.c:22013
0x6c7a52 instantiate_pending_templates(int)
        ../../gcc-source-trunk/gcc/cp/pt.c:22132
0x70a3d7 c_parse_final_cleanups()
        ../../gcc-source-trunk/gcc/cp/decl2.c:4599
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
$ 


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


struct S {}; 

template < typename = S > 
class A 
{
public:
  A () : f0 (), f1 () {}

private:
  typedef A<> f0; 
  int f1;
};

template < typename = S, typename = S > 
class B
{
}; 

template < typename T1, typename T2 > 
B < T1, T2 > &operator<< (B < T1, T2 >&, const int) 
{
  A<> (); 
}

template 
B < S, S > &operator<< (B < S, S >&, const int);
>From gcc-bugs-return-520624-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 30 20:24:02 2016
Return-Path: <gcc-bugs-return-520624-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 96508 invoked by alias); 30 Mar 2016 20:24:02 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 96279 invoked by uid 48); 30 Mar 2016 20:23:48 -0000
From: "georg@schorsch-tech.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/70464] [arch64] create a self hosting compiler
Date: Wed, 30 Mar 2016 20: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: 5.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: georg@schorsch-tech.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-70464-4-U9wQxn5nMA@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70464-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70464-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03664.txt.bz2
Content-length: 395

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

--- Comment #13 from georg@schorsch-tech.de ---
Now as i got a c++ compiler but no libstdc++ on the target, i try to use the
gentoo tools to emerge (compile) the complete gcc on the target. Let it run
over night whatever is needed. It is just a straw .... 

Any suggestions are welcome to build it. Regardless what i need to rebuild ...
>From gcc-bugs-return-520625-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 30 20:32:29 2016
Return-Path: <gcc-bugs-return-520625-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 20270 invoked by alias); 30 Mar 2016 20: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 20078 invoked by uid 48); 30 Mar 2016 20:32:16 -0000
From: "faraz.shahbazker at imgtec dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/70469] New: multiple definition error in g++.dg/template/ptrmem30.C
Date: Wed, 30 Mar 2016 20:32:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: testsuite
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: faraz.shahbazker at imgtec dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
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-70469-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03665.txt.bz2
Content-length: 6601

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

            Bug ID: 70469
           Summary: multiple definition error in
                    g++.dg/template/ptrmem30.C
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: testsuite
          Assignee: unassigned at gcc dot gnu.org
          Reporter: faraz.shahbazker at imgtec dot com
  Target Milestone: ---

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

Symbol `read' is declared by libgloss as an I/O primitive. The global variable
`read' in this test case collides with the libgloss definition for some
architectures. Please change to use a different variable name.


$ /scratch/gcc/nightly/install-mips-mti-elf/bin/mips-mti-elf-g++ --save-temps
--verbose /scratch/frs/src/gcc/gcc/testsuite/g++.dg/template/ptrmem30.C
-Tmti32.ld
Using built-in specs.
COLLECT_GCC=/scratch/gcc/nightly/install-mips-mti-elf/bin/mips-mti-elf-g++
COLLECT_LTO_WRAPPER=/scratch/gcc/nightly/install-mips-mti-elf/libexec/gcc/mips-mti-elf/6.0.0/lto-wrapper
Target: mips-mti-elf
Configured with: /scratch/gcc/nightly/src/gcc/configure
--prefix=/scratch/gcc/nightly/install-mips-mti-elf --disable-libssp
--disable-libmudflap --disable-decimal-float --with-mips-plt
--target=mips-mti-elf --with-newlib --with-gnu-as --with-gnu-ld
--enable-languages=c,c++
--with-sysroot=/scratch/gcc/nightly/install-mips-mti-elf/mips-mti-elf
--with-build-sysroot=/scratch/gcc/nightly/install-mips-mti-elf/mips-mti-elf
Thread model: single
gcc version 6.0.0 20160330 (experimental) (GCC) 
COLLECT_GCC_OPTIONS='-save-temps' '-v' '-T' 'mti32.ld' '-mplt' '-mips32r2'
'-msynci' '-mabi=32' '-mfpxx' '-EB'

/scratch/gcc/nightly/install-mips-mti-elf/libexec/gcc/mips-mti-elf/6.0.0/cc1plus
-E -quiet -v /scratch/frs/src/gcc/gcc/testsuite/g++.dg/template/ptrmem30.C -meb
-mplt -mips32r2 -msynci -mabi=32 -mfpxx -fpch-preprocess -o ptrmem30.ii
ignoring nonexistent directory
"/scratch/gcc/nightly/install-mips-mti-elf/mips-mti-elf/usr/local/include"
ignoring nonexistent directory
"/scratch/gcc/nightly/install-mips-mti-elf/mips-mti-elf/usr/include"
#include "..." search starts here:
#include <...> search starts here:

/scratch/gcc/nightly/install-mips-mti-elf/lib/gcc/mips-mti-elf/6.0.0/../../../../mips-mti-elf/include/c++/6.0.0

/scratch/gcc/nightly/install-mips-mti-elf/lib/gcc/mips-mti-elf/6.0.0/../../../../mips-mti-elf/include/c++/6.0.0/mips-mti-elf

/scratch/gcc/nightly/install-mips-mti-elf/lib/gcc/mips-mti-elf/6.0.0/../../../../mips-mti-elf/include/c++/6.0.0/backward
 /scratch/gcc/nightly/install-mips-mti-elf/lib/gcc/mips-mti-elf/6.0.0/include

/scratch/gcc/nightly/install-mips-mti-elf/lib/gcc/mips-mti-elf/6.0.0/include-fixed

/scratch/gcc/nightly/install-mips-mti-elf/lib/gcc/mips-mti-elf/6.0.0/../../../../mips-mti-elf/include
End of search list.
COLLECT_GCC_OPTIONS='-save-temps' '-v' '-T' 'mti32.ld' '-mplt' '-mips32r2'
'-msynci' '-mabi=32' '-mfpxx' '-EB'

/scratch/gcc/nightly/install-mips-mti-elf/libexec/gcc/mips-mti-elf/6.0.0/cc1plus
-fpreprocessed ptrmem30.ii -meb -quiet -dumpbase ptrmem30.C -mplt -mips32r2
-msynci -mabi=32 -mfpxx -auxbase ptrmem30 -version -o ptrmem30.s
GNU C++14 (GCC) version 6.0.0 20160330 (experimental) (mips-mti-elf)
        compiled by GNU C version 4.4.7 20120313 (Red Hat 4.4.7-16), GMP
version 4.3.2, MPFR version 3.0.1, MPC version 0.9, isl version none
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU C++14 (GCC) version 6.0.0 20160330 (experimental) (mips-mti-elf)
        compiled by GNU C version 4.4.7 20120313 (Red Hat 4.4.7-16), GMP
version 4.3.2, MPFR version 3.0.1, MPC version 0.9, isl version none
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: f716effcc40bdfde513b86e098fc32c1
COLLECT_GCC_OPTIONS='-save-temps' '-v' '-T' 'mti32.ld' '-mplt' '-mips32r2'
'-msynci' '-mabi=32' '-mfpxx' '-EB'

/scratch/gcc/nightly/install-mips-mti-elf/lib/gcc/mips-mti-elf/6.0.0/../../../../mips-mti-elf/bin/as
-v -EB -mips32r2 -O1 -no-mdebug -mabi=32 -mfpxx --trap -o ptrmem30.o ptrmem30.s
GNU assembler version 2.26.51 (mips-mti-elf) using BFD version (GNU Binutils)
2.26.51.20160330
COMPILER_PATH=/scratch/gcc/nightly/install-mips-mti-elf/libexec/gcc/mips-mti-elf/6.0.0/:/scratch/gcc/nightly/install-mips-mti-elf/libexec/gcc/mips-mti-elf/6.0.0/:/scratch/gcc/nightly/install-mips-mti-elf/libexec/gcc/mips-mti-elf/:/scratch/gcc/nightly/install-mips-mti-elf/lib/gcc/mips-mti-elf/6.0.0/:/scratch/gcc/nightly/install-mips-mti-elf/lib/gcc/mips-mti-elf/:/scratch/gcc/nightly/install-mips-mti-elf/lib/gcc/mips-mti-elf/6.0.0/../../../../mips-mti-elf/bin/
LIBRARY_PATH=/scratch/gcc/nightly/install-mips-mti-elf/lib/gcc/mips-mti-elf/6.0.0/:/scratch/gcc/nightly/install-mips-mti-elf/lib/gcc/mips-mti-elf/6.0.0/../../../../mips-mti-elf/lib/:/scratch/gcc/nightly/install-mips-mti-elf/mips-mti-elf/lib/
COLLECT_GCC_OPTIONS='-save-temps' '-v' '-T' 'mti32.ld' '-mplt' '-mips32r2'
'-msynci' '-mabi=32' '-mfpxx' '-EB'

/scratch/gcc/nightly/install-mips-mti-elf/libexec/gcc/mips-mti-elf/6.0.0/collect2
-plugin
/scratch/gcc/nightly/install-mips-mti-elf/libexec/gcc/mips-mti-elf/6.0.0/liblto_plugin.so
-plugin-opt=/scratch/gcc/nightly/install-mips-mti-elf/libexec/gcc/mips-mti-elf/6.0.0/lto-wrapper
-plugin-opt=-fresolution=ptrmem30.res -plugin-opt=-pass-through=-lgcc
-plugin-opt=-pass-through=-lgcc
--sysroot=/scratch/gcc/nightly/install-mips-mti-elf/mips-mti-elf -EB -mips32r2
-melf32btsmip
/scratch/gcc/nightly/install-mips-mti-elf/lib/gcc/mips-mti-elf/6.0.0/crti.o
/scratch/gcc/nightly/install-mips-mti-elf/lib/gcc/mips-mti-elf/6.0.0/crtbegin.o
-L/scratch/gcc/nightly/install-mips-mti-elf/lib/gcc/mips-mti-elf/6.0.0
-L/scratch/gcc/nightly/install-mips-mti-elf/lib/gcc/mips-mti-elf/6.0.0/../../../../mips-mti-elf/lib
-L/scratch/gcc/nightly/install-mips-mti-elf/mips-mti-elf/lib ptrmem30.o
-lstdc++ -lm -lgcc -lgcc
/scratch/gcc/nightly/install-mips-mti-elf/lib/gcc/mips-mti-elf/6.0.0/crtend.o
/scratch/gcc/nightly/install-mips-mti-elf/lib/gcc/mips-mti-elf/6.0.0/crtn.o -T
mti32.ld
/scratch/gcc/nightly/install-mips-mti-elf/lib/gcc/mips-mti-elf/6.0.0/../../../../mips-mti-elf/lib/libidt.a(idtmon.o):/scratch/gcc/nightly/src/gcc/libgloss/mips/idtmon.S:37:
multiple definition of `read'
ptrmem30.o:(.sbss+0x0): first defined here
collect2: error: ld returned 1 exit status
>From gcc-bugs-return-520626-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 30 20:48:33 2016
Return-Path: <gcc-bugs-return-520626-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 102323 invoked by alias); 30 Mar 2016 20: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 97090 invoked by uid 55); 30 Mar 2016 20:48:17 -0000
From: "dominiq at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/70235] [4.9/5/6 Regression] Incorrect output with PF format
Date: Wed, 30 Mar 2016 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: 4.8.2
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: jvdelisle at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-70235-4-6NLwlcMdbO@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70235-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70235-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03666.txt.bz2
Content-length: 802

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

--- Comment #25 from dominiq at gcc dot gnu.org ---
Author: dominiq
Date: Wed Mar 30 20:47:45 2016
New Revision: 234600

URL: https://gcc.gnu.org/viewcvs?rev=234600&root=gcc&view=rev
Log:
2016-03-30  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
            Dominique d'Humieres  <dominiq@lps.ens.fr>

        PR libgfortran/70235
        * io/write_float.def: Fix PF format for negative values of the scale
        factor.

2016-03-30  Dominique d'Humieres  <dominiq@lps.ens.fr>
            Jerry DeLisle  <jvdelisle@gcc.gnu.org>

        * gfortran.dg/fmt_pf.f90: New test.


Added:
    trunk/gcc/testsuite/gfortran.dg/fmt_pf.f90
Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/libgfortran/ChangeLog
    trunk/libgfortran/io/write_float.def
>From gcc-bugs-return-520627-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 30 20:51:03 2016
Return-Path: <gcc-bugs-return-520627-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 120704 invoked by alias); 30 Mar 2016 20:51: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 120613 invoked by uid 48); 30 Mar 2016 20:50:49 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/70235] [4.9/5 Regression] Incorrect output with PF format
Date: Wed, 30 Mar 2016 20: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: 4.8.2
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: jvdelisle at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status short_desc
Message-ID: <bug-70235-4-tWfQm72iBF@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70235-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70235-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03667.txt.bz2
Content-length: 604

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING
            Summary|[4.9/5/6 Regression]        |[4.9/5 Regression]
                   |Incorrect output with PF    |Incorrect output with PF
                   |format                      |format

--- Comment #26 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Fixed on trunk with r234600.
>From gcc-bugs-return-520628-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 30 20:54:58 2016
Return-Path: <gcc-bugs-return-520628-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 127995 invoked by alias); 30 Mar 2016 20: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 127872 invoked by uid 48); 30 Mar 2016 20:54:45 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/69890] FAIL: gcc.target/i386/chkp-* on x86_64-apple-darwin15
Date: Wed, 30 Mar 2016 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: 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-69890-4-CF9u6TYv2T@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-69890-4@http.gcc.gnu.org/bugzilla/>
References: <bug-69890-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03668.txt.bz2
Content-length: 486

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

--- Comment #5 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> Well, tests were not supposed to check object_sizes pass capabilities. 
> But allowing misoptimized code means we don't test functionality
> we wanted to test.  I think these tests may use __builtin_* versions
> of string functions to make tests independent from headers.

Sorry, but I don't understand what should be done to fix the chkp-stropt-*
tests.
>From gcc-bugs-return-520629-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 30 21:09:05 2016
Return-Path: <gcc-bugs-return-520629-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 55335 invoked by alias); 30 Mar 2016 21:09:05 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 54268 invoked by uid 48); 30 Mar 2016 21:08:52 -0000
From: "georg@schorsch-tech.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/70464] [arch64] create a self hosting compiler
Date: Wed, 30 Mar 2016 21:09:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 5.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: georg@schorsch-tech.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-70464-4-7gGzqBJELt@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70464-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70464-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03669.txt.bz2
Content-length: 186

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

--- Comment #14 from georg@schorsch-tech.de ---
Is it related to this? 

https://gcc.gnu.org/ml/gcc-patches/2013-04/msg00896.html
>From gcc-bugs-return-520630-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 30 21:31:33 2016
Return-Path: <gcc-bugs-return-520630-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 73009 invoked by alias); 30 Mar 2016 21: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 72865 invoked by uid 48); 30 Mar 2016 21:31:20 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/68953] [6 Regression] [graphite] Wrong code w/ -O[12] -floop-nest-optimize
Date: Wed, 30 Mar 2016 21:31:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vries at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-68953-4-sAoOAQdvNv@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-68953-4@http.gcc.gnu.org/bugzilla/>
References: <bug-68953-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03670.txt.bz2
Content-length: 574

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

--- Comment #1 from vries at gcc dot gnu.org ---
Created attachment 38141
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38141&action=edit
updated test-case

Fails with -O1, passes with -O2.

The problem is that this loop nest:
... 
  for (zh = 0; zh < 2; ++zh)
    for (ro = 0; ro < 3; ++ro)
      yu[ro][0] = yu[zh + 1][0];
...
is rewritten into this loop nest, which has different semantics:
...
  for (ro = 0; ro < 3; ++ro)
    for (zh = 0; zh < 2; ++zh)
      yu[ro][0] = yu[zh + 1][0];
...
>From gcc-bugs-return-520631-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 30 21:33:28 2016
Return-Path: <gcc-bugs-return-520631-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 81982 invoked by alias); 30 Mar 2016 21: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 75388 invoked by uid 48); 30 Mar 2016 21:33:15 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/68953] [6 Regression] [graphite] Wrong code w/ -O[12] -floop-nest-optimize
Date: Wed, 30 Mar 2016 21: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: 6.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vries at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-68953-4-irXmEFJiqV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-68953-4@http.gcc.gnu.org/bugzilla/>
References: <bug-68953-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03671.txt.bz2
Content-length: 2081

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

--- Comment #2 from vries at gcc dot gnu.org ---
(In reply to vries from comment #1)
> Created attachment 38141 [details]
> updated test-case
> 
> Fails with -O1, passes with -O2.
> 
> The problem is that this loop nest:
> ... 
>   for (zh = 0; zh < 2; ++zh)
>     for (ro = 0; ro < 3; ++ro)
>       yu[ro][0] = yu[zh + 1][0];
> ...

Unrolled, that looks like:

  /* yu == { { 1 }, { 2 }, { 3 }, { 4 } }.  */

  yu[0][0] = yu[1][0]; /* zh == 0, ro == 0.  */

  /* yu == { { 2 }, { 2 }, { 3 }, { 4 } }.  */

  yu[1][0] = yu[1][0]; /* zh == 0, ro == 1.  */

  /* yu == { { 2 }, { 2 }, { 3 }, { 4 } }.  */

  yu[2][0] = yu[1][0]; /* zh == 0, ro == 2.  */

  /* yu == { { 2 }, { 2 }, { 2 }, { 4 } }.  */

  yu[0][0] = yu[2][0]; /* zh == 1, ro == 0.  */

  /* yu == { { 2 }, { 2 }, { 2 }, { 4 } }.  */

  yu[1][0] = yu[2][0]; /* zh == 1, ro == 1.  */

  /* yu == { { 2 }, { 2 }, { 2 }, { 4 } }.  */

  yu[2][0] = yu[2][0]; /* zh == 1, ro == 2.  */

  /* yu == { { 2 }, { 2 }, { 2 }, { 4 } }.  */


> is rewritten into this loop nest, which has different semantics:
> ...
>   for (ro = 0; ro < 3; ++ro)
>     for (zh = 0; zh < 2; ++zh)
>       yu[ro][0] = yu[zh + 1][0];
> ...

and unrolled, this looks like:

  /* yu == { { 1 }, { 2 }, { 3 }, { 4 } }.  */

  yu[0][0] = yu[1][0]; /* zh == 0, ro == 0.  */

  /* yu == { { 2 }, { 2 }, { 3 }, { 4 } }.  */

  yu[0][0] = yu[2][0]; /* zh == 1, ro == 0.  */

  /* yu == { { 3 }, { 2 }, { 3 }, { 4 } }.  */

  yu[1][0] = yu[1][0]; /* zh == 0, ro == 1.  */

  /* yu == { { 3 }, { 2 }, { 3 }, { 4 } }.  */

  yu[1][0] = yu[2][0]; /* zh == 1, ro == 1.  */

  /* yu == { { 3 }, { 3 }, { 3 }, { 4 } }.  */

  yu[2][0] = yu[1][0]; /* zh == 0, ro == 2.  */

  /* yu == { { 3 }, { 3 }, { 3 }, { 4 } }.  */

  yu[2][0] = yu[2][0]; /* zh == 1, ro == 2.  */

  /* yu == { { 3 }, { 3 }, { 3 }, { 4 } }.  */
>From gcc-bugs-return-520632-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 30 21:43:58 2016
Return-Path: <gcc-bugs-return-520632-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 99043 invoked by alias); 30 Mar 2016 21: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 98682 invoked by uid 48); 30 Mar 2016 21:43:45 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/58646] ICE on a multidimensional VLA with a constant bound and empty initializer list
Date: Wed, 30 Mar 2016 21:43:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: short_desc
Message-ID: <bug-58646-4-8lTUC9go46@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-58646-4@http.gcc.gnu.org/bugzilla/>
References: <bug-58646-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03672.txt.bz2
Content-length: 713

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|ICEs initializing VLAs      |ICE on a multidimensional
                   |                            |VLA with a constant bound
                   |                            |and empty initializer list

--- Comment #4 from Martin Sebor <msebor at gcc dot gnu.org> ---
Updating Summary to make it clear that the ICE depends on the VLA having
multiple dimensions at least one of which being a constant expression, and the
initializer list being empty.
>From gcc-bugs-return-520633-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 30 21:45:43 2016
Return-Path: <gcc-bugs-return-520633-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 104694 invoked by alias); 30 Mar 2016 21:45: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 104074 invoked by uid 48); 30 Mar 2016 21:45:29 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/55943] [4.9/5/6 Regression] ICE in gen_reg_rtx
Date: Wed, 30 Mar 2016 21: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: 4.8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: law at redhat dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 4.9.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc resolution
Message-ID: <bug-55943-4-M3CGH6UQo4@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-55943-4@http.gcc.gnu.org/bugzilla/>
References: <bug-55943-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03673.txt.bz2
Content-length: 549

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |law at redhat dot com
         Resolution|---                         |FIXED

--- Comment #14 from Jeffrey A. Law <law at redhat dot com> ---
This was fixed in 4.9, but tagged with its duplicate BZ (56382).
>From gcc-bugs-return-520634-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 30 22:31:24 2016
Return-Path: <gcc-bugs-return-520634-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 53587 invoked by alias); 30 Mar 2016 22:31:24 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 53434 invoked by uid 48); 30 Mar 2016 22:31:11 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/58646] ICE on a multidimensional VLA with an empty initializer list
Date: Wed, 30 Mar 2016 22:31:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: short_desc
Message-ID: <bug-58646-4-qGH3KoeQok@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-58646-4@http.gcc.gnu.org/bugzilla/>
References: <bug-58646-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03674.txt.bz2
Content-length: 664

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|ICE on a multidimensional   |ICE on a multidimensional
                   |VLA with a constant bound   |VLA with an empty
                   |and empty initializer list  |initializer list

--- Comment #5 from Martin Sebor <msebor at gcc dot gnu.org> ---
Actually, the ICE can be triggered even by a multidimensional VLA with no
constant bounds, like this one:

void f (int n)
{
    int a [n][n] = {{}};
}
>From gcc-bugs-return-520635-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 30 22:55:48 2016
Return-Path: <gcc-bugs-return-520635-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 7260 invoked by alias); 30 Mar 2016 22:55:47 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 7109 invoked by uid 48); 30 Mar 2016 22:55:35 -0000
From: "shaun.endres at numerica dot us" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/70470] New: std::min uninitialized value
Date: Wed, 30 Mar 2016 22:55:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 5.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: shaun.endres at numerica dot us
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-70470-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03675.txt.bz2
Content-length: 2704

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

            Bug ID: 70470
           Summary: std::min uninitialized value
           Product: gcc
           Version: 5.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: shaun.endres at numerica dot us
  Target Milestone: ---

Summary:

The following code incorrectly compute the value of x and will yield a warning
about an uninitialized variable:

const double &x = std::min(std::abs(1.0), 2.0);
if (x != 1) { std::cout << "Incorrect Result!" << std::endl; }

This will give a warning of:

warning: ‘<anonymous>’ is used uninitialized in this function [-Wuninitialized]

And will incorrectly compute the value of x to be zero, which will print
"Incorrect Result!" to the screen.

However, if you store the result in a double instead of a const double &, then
the result is computed correctly and no warning is given.  Additionally,
breaking up the std::min and std::abs into two statements will also make the
problem disappear.

***********

Details:

g++ --version => g++ (GCC) 5.3.0
uname -r => 2.6.32-573.12.1.el6.x86_64

Full Source:

#include <cmath>
#include <algorithm>
#include <iostream>

int main()
{
  double x = 1.0;
  double y = 2.0;

  double xx = std::abs(x);

  const double& z1 = std::min(xx, y);
  const double& z2 = std::min(std::abs(x), y);
  double z3 = std::min(xx, y);
  double z4 = std::min(std::abs(x), y);

  std::cout << "z1: " << z1 << std::endl;
  std::cout << "z2: " << z2 << std::endl;
  std::cout << "z3: " << z3 << std::endl;
  std::cout << "z4: " << z4 << std::endl;

  if ( z1 != 1 ) std::cerr << "Incorrect z1: " << z1 << " != 1" << std::endl;
  if ( z2 != 1 ) std::cerr << "Incorrect z2: " << z2 << " != 1" << std::endl;
  if ( z3 != 1 ) std::cerr << "Incorrect z3: " << z3 << " != 1" << std::endl;
  if ( z4 != 1 ) std::cerr << "Incorrect z4: " << z4 << " != 1" << std::endl;

  return 0;
}

Compiling:

g++ -o test_min -Wall -O2 test_min.cpp

Compilation Output:

test_min.cpp: In function ‘int main()’:
test_min.cpp:23:3: warning: ‘<anonymous>’ is used uninitialized in this
function [-Wuninitialized]
   if ( z2 != 1 ) std::cerr << "Incorrect z2: " << z2 << " != 1" << std::endl;
   ^

Execution Output:

z1: 1
z2: 0
z3: 1
z4: 1
Incorrect z2: 0 != 1

Notes:

I also tried this on gcc 4.4 and that did not seem to have the same issue.
If you remove the -O2 flag from the compilation command, then the issue goes
away.  (Adding -O1 and -O3 will also cause the issue.)
>From gcc-bugs-return-520636-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 30 23:55:33 2016
Return-Path: <gcc-bugs-return-520636-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 45991 invoked by alias); 30 Mar 2016 23:55:32 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 45821 invoked by uid 48); 30 Mar 2016 23:55:19 -0000
From: "ytj000 at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/64977] constexpr variable initialization by reference in lambda rejected
Date: Wed, 30 Mar 2016 23:55:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ytj000 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-64977-4-msCRwDcmz4@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64977-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64977-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03676.txt.bz2
Content-length: 896

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

--- Comment #2 from ytj000 at gmail dot com ---
(In reply to Martin Sebor from comment #1)
> I'm not 100% sure this example is valid.  It seems to me that the rejected
> initializer "e" is invalid because it's not
> a core constant expression.  I.e., it's a capture by reference, which is "an
> id-expression that refers to a variable or data member of reference type
> [that] has a preceding initialization" but the reference isn't "initialized
> with a constant expression" (a is not a constant expression).  Is there
> something I'm missing?

I think you are right. The following code shows clang has inconsistent
behavior.

struct A {
    constexpr operator int() const { return 0; }
};

int main() {
    A a;
    [&a]() { constexpr int b = a; };  // clang accepted

    A &ra = a;
    constexpr int b = ra; // clang rejected
}
>From gcc-bugs-return-520637-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 00:15:58 2016
Return-Path: <gcc-bugs-return-520637-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 77932 invoked by alias); 31 Mar 2016 00: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 77676 invoked by uid 48); 31 Mar 2016 00:15:46 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/56811] [4.9/5/6 Regression] libbacktrace causes undefined symbol "_Unwind_GetIPInfo" on ia64-hpux
Date: Thu, 31 Mar 2016 00:15:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: other
X-Bugzilla-Version: 4.8.0
X-Bugzilla-Keywords: build
X-Bugzilla-Severity: normal
X-Bugzilla-Who: law at redhat 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: 4.9.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc resolution
Message-ID: <bug-56811-4-0WbJ79NXqP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-56811-4@http.gcc.gnu.org/bugzilla/>
References: <bug-56811-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03677.txt.bz2
Content-length: 633

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |law at redhat dot com
         Resolution|---                         |FIXED

--- Comment #17 from Jeffrey A. Law <law at redhat dot com> ---
These issues were fixed long ago (gcc-4.8.3) and those fixes are included in
gcc-4.9 and beyond.  c#12 confirms this problem was fixed in gcc-4.8.3.
>From gcc-bugs-return-520638-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 00:17:52 2016
Return-Path: <gcc-bugs-return-520638-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 82974 invoked by alias); 31 Mar 2016 00:17:51 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 82895 invoked by uid 48); 31 Mar 2016 00:17:40 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/56811] [4.9/5/6 Regression] libbacktrace causes undefined symbol "_Unwind_GetIPInfo" on ia64-hpux
Date: Thu, 31 Mar 2016 00:17:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: other
X-Bugzilla-Version: 4.8.0
X-Bugzilla-Keywords: build
X-Bugzilla-Severity: normal
X-Bugzilla-Who: law at redhat 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: 4.9.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-56811-4-bcAoBu2ePD@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-56811-4@http.gcc.gnu.org/bugzilla/>
References: <bug-56811-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03678.txt.bz2
Content-length: 435

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ossman at cendio dot se

--- Comment #18 from Jeffrey A. Law <law at redhat dot com> ---
*** Bug 47609 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-520639-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 00:17:52 2016
Return-Path: <gcc-bugs-return-520639-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 82986 invoked by alias); 31 Mar 2016 00:17: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 82850 invoked by uid 48); 31 Mar 2016 00:17:39 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/47609] libstdc++ depends on libgcc_s.10.5 but gets linked to libgcc_s.10.4
Date: Thu, 31 Mar 2016 00: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: 4.4.3
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: law at redhat 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 cc resolution
Message-ID: <bug-47609-4-DiqfBMWFsS@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-47609-4@http.gcc.gnu.org/bugzilla/>
References: <bug-47609-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03679.txt.bz2
Content-length: 580

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |law at redhat dot com
         Resolution|---                         |DUPLICATE

--- Comment #1 from Jeffrey A. Law <law at redhat dot com> ---
Duplicate of 56811 and others.

*** This bug has been marked as a duplicate of bug 56811 ***
>From gcc-bugs-return-520640-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 01:04:01 2016
Return-Path: <gcc-bugs-return-520640-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 119296 invoked by alias); 31 Mar 2016 01: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 119124 invoked by uid 48); 31 Mar 2016 01:03:48 -0000
From: "hongxu.jia at windriver dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/70428] -fdebug-prefix-map did not support to remap sources with relative path
Date: Thu, 31 Mar 2016 01:04:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: other
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hongxu.jia at windriver 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-70428-4-8AjxPfVYor@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70428-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70428-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03680.txt.bz2
Content-length: 1631

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

hongxu jia <hongxu.jia at windriver dot com> changed:

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

--- Comment #4 from hongxu jia <hongxu.jia at windriver dot com> ---
(In reply to joseph@codesourcery.com from comment #3)
> On Wed, 30 Mar 2016, hongxu.jia at windriver dot com wrote:
> 
> > Do you mean the combination of using *"relative path" source to compile*
> > and *"absolute path" in -fdebug-prefix-map to remap* is not proper?
> 
> It's perfectly proper.  But the absolute path passed to -fdebug-prefix-map 
> must be the actual pwd of the build or an absolute path passed to the 
> compiler, or a prefix of one of those.  It must not be some canonicalized 
> version that was never seen by the compiler and combines fragments of 
> paths handled differently by the compiler.  I don't think the compiler 
> ever does anything with a path such as /folk/hjia/test1/test2, or ever 
> interprets what "../../" means in the path to source files.  You need to 
> pass /folk/hjia/dir1/dir2 or a prefix thereof to -fdebug-prefix-map in 
> your example, and the resulting debug info will still contain references 
> to ../../test1/test2/test.c (so you need to make sure that the remapped 
> path is one relative to which ../../test1/test2/test.c is valid, on the 
> system where the debug info is interpreted).

Ok, thanks to point it out
>From gcc-bugs-return-520641-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 01:29:17 2016
Return-Path: <gcc-bugs-return-520641-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 35700 invoked by alias); 31 Mar 2016 01:29: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 21298 invoked by uid 48); 31 Mar 2016 01:29:03 -0000
From: "ppalka at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/70470] std::min uninitialized value
Date: Thu, 31 Mar 2016 01:29:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 5.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ppalka at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-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-70470-4-FxSeOhIgYk@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70470-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70470-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03681.txt.bz2
Content-length: 515

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

Patrick Palka <ppalka at gcc dot gnu.org> changed:

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

--- Comment #1 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Reduced:

const int& foo (const int& x) { return x; }

int
main ()
{
  int x = 1;
  const int& y = foo (x+1);
  return y != 2;
}
>From gcc-bugs-return-520642-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 01:52:52 2016
Return-Path: <gcc-bugs-return-520642-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 37920 invoked by alias); 31 Mar 2016 01: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 37784 invoked by uid 48); 31 Mar 2016 01:52:36 -0000
From: "carlos at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/66830] Problem with C++ unique symbols in plugins
Date: Thu, 31 Mar 2016 01: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.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: carlos at redhat dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-66830-4-bS28o1A1r8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66830-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66830-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03682.txt.bz2
Content-length: 1169

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

Carlos O'Donell <carlos at redhat dot com> changed:

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

--- Comment #4 from Carlos O'Donell <carlos at redhat dot com> ---
(In reply to pleuba from comment #3)
> Is this problem/behavior referenced or documented somewhere? I did not find
> any explanation on the internet. 
> 
> It take me some time to understand it, and if we can avoid others to spend
> this time too.
> 
> Are they any plans to fix this or disable unique symbols by default ?

The dynamic loader could mark all users of an STB_GNU_UNIQUE symbol as
RTLD_NODELETE. It seems like the only answer.

That would mean you can't unload any of your plugins, and would make using C++
for dynamic plugin work very difficult. A long-running process could never
change these plugins. The author of the plugins would have to understand
intimate ABI details to write unloadable plugins or use another language that
doesn't have these problems.
>From gcc-bugs-return-520643-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 02:58:15 2016
Return-Path: <gcc-bugs-return-520643-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 98027 invoked by alias); 31 Mar 2016 02:58:14 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 81620 invoked by uid 48); 31 Mar 2016 02:58:00 -0000
From: "schnetter at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/70471] New: Superfluous move instructions in floating-point instruction sequence
Date: Thu, 31 Mar 2016 02: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: 5.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: schnetter 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-70471-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03683.txt.bz2
Content-length: 3696

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

            Bug ID: 70471
           Summary: Superfluous move instructions in floating-point
                    instruction sequence
           Product: gcc
           Version: 5.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: schnetter at gmail dot com
  Target Milestone: ---

In a function consisting of a long chain of floating-point operations, GCC
5.3.0 on Darwin 15.4.0 targeting an "Intel(R) Core(TM) i7-4980HQ CPU @ 2.80GHz"
with options

-march=native
-Ofast
-fopenmp

generates this sequence (line 6302 ff):

        vmovapd %ymm4, %ymm8
        vmovapd %ymm4, -10192(%rbp)
        vsubpd  %ymm1, %ymm8, %ymm0
        vmovapd -4496(%rbp), %ymm8

Am I right with my interpretation that the first vmovapd is strictly
superfluous? The register %ymm8 is set on the first line, is overwritten on the
last line, and is used only once in the third line, where the original value
%ymm4 is still available.

Additional comments:

This is not the only place where inspection by eye indicates superfluous move
instructions; these seem to occur in many places. As you see below, both the
input and the generated code are quite long. Most relevant for performance is
likely the cache footprint. Thus, superfluous instructions are worrisome.



Details:

$ uname -a
Darwin Redshift 15.4.0 Darwin Kernel Version 15.4.0: Fri Feb 26 22:08:05 PST
2016; root:xnu-3248.40.184~3/RELEASE_X86_64 x86_64

$
/Users/eschnett/src/spack/opt/spack/darwin-x86_64/gcc-4.2.1/gcc-5.3.0-j3ujojmhirf6t2mi5enfosb6545duy42/bin/g++
-v
Reading specs from
/Users/eschnett/src/spack/opt/spack/darwin-x86_64/gcc-4.2.1/gcc-5.3.0-j3ujojmhirf6t2mi5enfosb6545duy42/lib64/gcc/x86_64-apple-darwin15.4.0/5.3.0/specs
COLLECT_GCC=/Users/eschnett/src/spack/opt/spack/darwin-x86_64/gcc-4.2.1/gcc-5.3.0-j3ujojmhirf6t2mi5enfosb6545duy42/bin/g++
COLLECT_LTO_WRAPPER=/Users/eschnett/src/spack/opt/spack/darwin-x86_64/gcc-4.2.1/gcc-5.3.0-j3ujojmhirf6t2mi5enfosb6545duy42/libexec/gcc/x86_64-apple-darwin15.4.0/5.3.0/lto-wrapper
Target: x86_64-apple-darwin15.4.0
Configured with:
/Users/eschnett/src/spack/var/spack/stage/gcc-5.3.0-j3ujojmhirf6t2mi5enfosb6545duy42/gcc-5.3.0/configure
--prefix=/Users/eschnett/src/spack/opt/spack/darwin-x86_64/gcc-4.2.1/gcc-5.3.0-j3ujojmhirf6t2mi5enfosb6545duy42
--libdir=/Users/eschnett/src/spack/opt/spack/darwin-x86_64/gcc-4.2.1/gcc-5.3.0-j3ujojmhirf6t2mi5enfosb6545duy42/lib64
--disable-multilib --enable-languages=fortran,c,java,objc,c++
--with-mpc=/Users/eschnett/src/spack/opt/spack/darwin-x86_64/gcc-4.2.1/mpc-1.0.3-kg7pswhyszxa6vbgohqjhy2pywb76gpc
--with-mpfr=/Users/eschnett/src/spack/opt/spack/darwin-x86_64/gcc-4.2.1/mpfr-3.1.4-taib2hirt72ggnirqb2brytc4cvp2igf
--with-gmp=/Users/eschnett/src/spack/opt/spack/darwin-x86_64/gcc-4.2.1/gmp-6.1.0-ld7rtqn2neg3z47mzg2vnexqeet4pz3i
--enable-lto --with-quad
--with-isl=/Users/eschnett/src/spack/opt/spack/darwin-x86_64/gcc-4.2.1/isl-0.14-cn4dbzoocjsf2a5jwamnhnverh2hwccr
Thread model: posix
gcc version 5.3.0 (GCC) 

Compiled with:
$
/Users/eschnett/src/spack/opt/spack/darwin-x86_64/gcc-4.2.1/gcc-5.3.0-j3ujojmhirf6t2mi5enfosb6545duy42/bin/g++
-fopenmp -march=native -std=gnu++11 -Ofast -S
ML_BSSN_FD4_EvolutionInterior.cc.i

Pre-processed input "ML_BSSN_FD4_EvolutionInterior.cc.i" (3.5 MByte):
https://gist.github.com/eschnett/10bf0b2b1977348f3e15ae29db871bb0

Compiler output "ML_BSSN_FD4_EvolutionInterior.cc.s" (470 kByte):
https://gist.github.com/eschnett/79d31fe08e9588d28763a9ad5c77ccfa
>From gcc-bugs-return-520645-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 04:27:30 2016
Return-Path: <gcc-bugs-return-520645-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 39907 invoked by alias); 31 Mar 2016 04: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 39587 invoked by uid 48); 31 Mar 2016 04:27:16 -0000
From: "timshen at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/70459] regex segfault on long sequences
Date: Thu, 31 Mar 2016 04: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: 5.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: timshen 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-70459-4-IkIOCtdi3J@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70459-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70459-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03685.txt.bz2
Content-length: 651

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

Tim Shen <timshen at gcc dot gnu.org> changed:

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

--- Comment #2 from Tim Shen <timshen at gcc dot gnu.org> ---
This is a known issue. I plan to fix it, but it's not going to be in GCC 6.

Thanks for reporting!

*** This bug has been marked as a duplicate of bug 61582 ***
>From gcc-bugs-return-520644-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 04:27:30 2016
Return-Path: <gcc-bugs-return-520644-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 39891 invoked by alias); 31 Mar 2016 04:27: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 39652 invoked by uid 48); 31 Mar 2016 04:27:18 -0000
From: "timshen at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/61582] C++11 regex memory corruption
Date: Thu, 31 Mar 2016 04: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: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: timshen at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: timshen at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-61582-4-gX55LHzlAB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-61582-4@http.gcc.gnu.org/bugzilla/>
References: <bug-61582-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03684.txt.bz2
Content-length: 436

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

Tim Shen <timshen at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |chaoskeeper at mail dot ru

--- Comment #19 from Tim Shen <timshen at gcc dot gnu.org> ---
*** Bug 70459 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-520646-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 05:06:26 2016
Return-Path: <gcc-bugs-return-520646-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 23320 invoked by alias); 31 Mar 2016 05:06:25 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 23039 invoked by uid 48); 31 Mar 2016 05:06:11 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/70470] std::min uninitialized value
Date: Thu, 31 Mar 2016 05:06:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 5.3.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-70470-4-ny6XGFJ4aV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70470-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70470-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03686.txt.bz2
Content-length: 586

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

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> ---
In
const double& z2 = std::min(std::abs(x), y);
you IMHO bind the reference to a temporary that goes out of the scope at the
end of the statement, so any uses of z2 beyond that trigger undefined behavior.
>From gcc-bugs-return-520647-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 06:25:34 2016
Return-Path: <gcc-bugs-return-520647-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 27281 invoked by alias); 31 Mar 2016 06:25: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 117346 invoked by uid 55); 31 Mar 2016 06:25:21 -0000
From: "amodra at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/68973] [6 regression] Internal compiler error on power for gcc/testsuite/g++.dg/pr67211.C
Date: Thu, 31 Mar 2016 06:25:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: amodra at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: amodra at gmail dot com
X-Bugzilla-Target-Milestone: 6.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-68973-4-8yK1xsDRBd@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-68973-4@http.gcc.gnu.org/bugzilla/>
References: <bug-68973-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03687.txt.bz2
Content-length: 1473

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

--- Comment #21 from Alan Modra <amodra at gcc dot gnu.org> ---
Author: amodra
Date: Thu Mar 31 06:24:40 2016
New Revision: 234608

URL: https://gcc.gnu.org/viewcvs?rev=234608&root=gcc&view=rev
Log:
[RS6000] reload_vsx_from_gprsf splitter

This is PR68973 part 2, caused by the reload_vsx_from_gprsf splitter
emitting an invalid move.  Part 1 deferred for branch until it is
proven that the reload change is necessary.

        Backport from mainline
        2016-02-16  Alan Modra  <amodra@gmail.com>
        PR target/68973
        * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
        (p8_mtvsrd_df, p8_mtvsrd_sf): New.
        (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
        (p8_mtvsrwz): New.
        (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
        (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
        (p8_fmrgow_<mode>): Likewise.
        (reload_vsx_from_gpr<mode>): Adjust for above.  Use "wa" for
        clobber constraint.
        (reload_fpr_from_gpr<mode>): Adjust for above.  Use "d" for
        op0 constraint.
        (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
        to use movdi_internal64.  Remove op0_di.
        * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.

Modified:
    branches/gcc-5-branch/gcc/ChangeLog
    branches/gcc-5-branch/gcc/config/rs6000/rs6000.md
    branches/gcc-5-branch/gcc/config/rs6000/vsx.md
>From gcc-bugs-return-520648-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 06:26:50 2016
Return-Path: <gcc-bugs-return-520648-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 10341 invoked by alias); 31 Mar 2016 06:26: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 100664 invoked by uid 55); 31 Mar 2016 06:26:36 -0000
From: "amodra at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/68973] [6 regression] Internal compiler error on power for gcc/testsuite/g++.dg/pr67211.C
Date: Thu, 31 Mar 2016 06:26:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: amodra at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: amodra at gmail dot com
X-Bugzilla-Target-Milestone: 6.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-68973-4-oSSeUEp18X@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-68973-4@http.gcc.gnu.org/bugzilla/>
References: <bug-68973-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03688.txt.bz2
Content-length: 1479

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

--- Comment #22 from Alan Modra <amodra at gcc dot gnu.org> ---
Author: amodra
Date: Thu Mar 31 06:26:02 2016
New Revision: 234609

URL: https://gcc.gnu.org/viewcvs?rev=234609&root=gcc&view=rev
Log:
[RS6000] reload_vsx_from_gprsf splitter

This is PR68973 part 2, caused by the reload_vsx_from_gprsf splitter
emitting an invalid move.  Part 1 deferred for branch until it is
proven that the reload change is necessary.

        Backport from mainline
        2016-02-16  Alan Modra  <amodra@gmail.com>
        PR target/68973
        * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
        (p8_mtvsrd_df, p8_mtvsrd_sf): New.
        (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
        (p8_mtvsrwz): New.
        (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
        (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
        (p8_fmrgow_<mode>): Likewise.
        (reload_vsx_from_gpr<mode>): Adjust for above.  Use "wa" for
        clobber constraint.
        (reload_fpr_from_gpr<mode>): Adjust for above.  Use "d" for
        op0 constraint.
        (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
        to use movdi_internal64.  Remove op0_di.
        * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.

Modified:
    branches/gcc-4_9-branch/gcc/ChangeLog
    branches/gcc-4_9-branch/gcc/config/rs6000/rs6000.md
    branches/gcc-4_9-branch/gcc/config/rs6000/vsx.md
>From gcc-bugs-return-520649-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 07:07:15 2016
Return-Path: <gcc-bugs-return-520649-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 81524 invoked by alias); 31 Mar 2016 07:07:15 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 81287 invoked by uid 48); 31 Mar 2016 07:07:00 -0000
From: "safinaskar at mail dot ru" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/70472] New: is_copy_constructible<vector<unique_ptr<int>>>::value is true
Date: Thu, 31 Mar 2016 07:07:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: safinaskar at mail 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-70472-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03689.txt.bz2
Content-length: 3549

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

            Bug ID: 70472
           Summary: is_copy_constructible<vector<unique_ptr<int>>>::value
                    is true
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: safinaskar at mail dot ru
  Target Milestone: ---

Consider this code:

#include <type_traits>
#include <vector>
#include <memory>
#include <iostream>

int
main (void)
{
  std::cout <<
std::is_copy_constructible<std::vector<std::unique_ptr<int>>>::value << "\n";
}

It gives 1. But, of course, it should give 0, because the following code
doesn't compile:

#include <vector>
#include <memory>

int
main (void)
{
  typedef std::vector<std::unique_ptr<int>> v;
  v a;
  v b = a;
}

I think this problem is solvable. For example, it is solved for
std::exprimental::optional in gcc 6.0.0's stdlibc++.
std::is_copy_constructible<std::experimental::optional<std::unique_ptr<int>>>::value
is false.

Also, please, make sure that std::is_copy_constructible gives right answers for
all standard containers. And same for other type_traits (move_constructible
etc).

I don't know is
std::is_copy_constructible<std::vector<std::unique_ptr<int>>>::value == false
required by the standard. If no, then, please, add this requirement to it.

I noticed this bug when I tried to implement my own class template similar to
std::experimental::optional. Compiler give big error message when I combine my
class with other standard containers. If I add noexcept to my move constructor,
then the error message disappears. So I think this bug somehow related to bug
55043 (bug #55043). If you want, I can describe this my class template in
detail. Also, this bug is very similar to this comment:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55043#c15 .

I use gcc-snapshot Debian package. Package version is 20160320-1. Output of
"/usr/lib/gcc-snapshot/bin/gcc -v":
COLLECT_GCC=/usr/lib/gcc-snapshot/bin/gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc-snapshot/libexec/gcc/x86_64-linux-gnu/6.0.0/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 20160320-1'
--with-bugurl=file:///usr/share/doc/gcc-snapshot/README.Bugs
--enable-languages=c,ada,c++,java,go,fortran,objc,obj-c++
--prefix=/usr/lib/gcc-snapshot --enable-shared --enable-linker-build-id
--disable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug
--enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new
--enable-gnu-unique-object --disable-vtable-verify --enable-libmpx
--enable-plugin --with-system-zlib --disable-browser-plugin
--enable-java-awt=gtk --enable-gtk-cairo
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-6-snap-amd64/jre
--enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-6-snap-amd64
--with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-6-snap-amd64
--with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar
--enable-objc-gc --enable-multiarch --with-arch-32=i586 --with-abi=m64
--with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic
--disable-werror --enable-checking=yes --build=x86_64-linux-gnu
--host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 6.0.0 20160320 (experimental) [trunk revision 234355] (Debian
20160320-1)

I use stdlibc++ shipped with this gcc.
>From gcc-bugs-return-520650-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 07:12:00 2016
Return-Path: <gcc-bugs-return-520650-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 120362 invoked by alias); 31 Mar 2016 07: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 117436 invoked by uid 48); 31 Mar 2016 07:11:47 -0000
From: "awiouy at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/70473] New: genautomata memory footprint for arm
Date: Thu, 31 Mar 2016 07:12: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: 5.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: awiouy 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-70473-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03690.txt.bz2
Content-length: 724

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

            Bug ID: 70473
           Summary: genautomata memory footprint for arm
           Product: gcc
           Version: 5.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: awiouy at gmail dot com
  Target Milestone: ---

Hello,
bootstrapping/crosscompiling gcc 5.3.0 for arm (Raspberry Pi 2 and 3),
genautomata uses a lot of memory. This causes swapping/thrashing and extremely
long build times on low memory systems.
Similar to bug 60743, which requests that a new bug is filed.
Thank you for your attention, and regards,
@
>From gcc-bugs-return-520651-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 07:31:08 2016
Return-Path: <gcc-bugs-return-520651-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 35237 invoked by alias); 31 Mar 2016 07:31: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 35077 invoked by uid 48); 31 Mar 2016 07:30:55 -0000
From: "ktkachov at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/70473] genautomata memory footprint for arm
Date: Thu, 31 Mar 2016 07:31:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: bootstrap
X-Bugzilla-Version: 5.3.0
X-Bugzilla-Keywords: build, memory-hog
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ktkachov at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords cf_gcctarget bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-70473-4-xZOBGSxiup@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70473-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70473-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03691.txt.bz2
Content-length: 907

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

ktkachov at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |build, memory-hog
             Target|                            |arm*
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2016-03-31
                 CC|                            |ktkachov at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from ktkachov at gcc dot gnu.org ---
Confirmed. Unfortunately reducing the size of the automata requires changes in
the processor scheduling models and so needs a lot of benchmarking to make sure
generated code performance does not regress.
I'm working on some patches, but they are planned for GCC 7
>From gcc-bugs-return-520652-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 07:40:58 2016
Return-Path: <gcc-bugs-return-520652-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 54399 invoked by alias); 31 Mar 2016 07: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 54203 invoked by uid 48); 31 Mar 2016 07:40:44 -0000
From: "safinaskar at mail dot ru" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/70472] is_copy_constructible<vector<unique_ptr<int>>>::value is true
Date: Thu, 31 Mar 2016 07:40:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: safinaskar at mail 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-70472-4-TNNtltUtYH@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70472-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70472-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03692.txt.bz2
Content-length: 266

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

--- Comment #1 from Askar Safin <safinaskar at mail dot ru> ---
Also, this code doesn't compile: http://paste.debian.net/422907/ and I think
this is related to this bug. If I decomment noexcept line, it compiles
>From gcc-bugs-return-520653-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 07:49:34 2016
Return-Path: <gcc-bugs-return-520653-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 67818 invoked by alias); 31 Mar 2016 07: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 66260 invoked by uid 48); 31 Mar 2016 07:49:19 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/70421] [5/6 Regression] wrong code with v16si vector and useless cast at -O -mavx512f
Date: Thu, 31 Mar 2016 07: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: 6.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: P2
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-70421-4-b5XuS0gxxZ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70421-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70421-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03693.txt.bz2
Content-length: 423

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

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

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

--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-520654-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 08:01:46 2016
Return-Path: <gcc-bugs-return-520654-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 120397 invoked by alias); 31 Mar 2016 08:01: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 120256 invoked by uid 48); 31 Mar 2016 08:01:32 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/70470] std::min uninitialized value
Date: Thu, 31 Mar 2016 08:01:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 5.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: INVALID
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-70470-4-cF2SKf09Bs@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70470-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70470-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03694.txt.bz2
Content-length: 429

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

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

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

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Yep.
>From gcc-bugs-return-520655-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 08:03:42 2016
Return-Path: <gcc-bugs-return-520655-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 122173 invoked by alias); 31 Mar 2016 08:03:42 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 122026 invoked by uid 48); 31 Mar 2016 08:03:28 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/70469] multiple definition error in g++.dg/template/ptrmem30.C
Date: Thu, 31 Mar 2016 08: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: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: 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-70469-4-3ai4hCvwzI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70469-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70469-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03695.txt.bz2
Content-length: 452

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

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

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

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC does not host libgloss.
>From gcc-bugs-return-520656-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 08:06:24 2016
Return-Path: <gcc-bugs-return-520656-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 124401 invoked by alias); 31 Mar 2016 08:06:23 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 124275 invoked by uid 48); 31 Mar 2016 08:06:11 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/70468] [4.9/5/6 Regression] ICE on valid code on x86_64-linux-gnu in emit_mem_initializers, at cp/init.c:1109
Date: Thu, 31 Mar 2016 08:06:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords: ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 4.9.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority bug_status cf_known_to_work keywords cf_reconfirmed_on everconfirmed short_desc target_milestone cf_known_to_fail
Message-ID: <bug-70468-4-rRwY0KJ9Yl@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70468-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70468-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03696.txt.bz2
Content-length: 1618

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
             Status|UNCONFIRMED                 |NEW
      Known to work|                            |4.6.4
           Keywords|                            |ice-on-invalid-code
   Last reconfirmed|                            |2016-03-31
     Ever confirmed|0                           |1
            Summary|ICE on valid code on        |[4.9/5/6 Regression] ICE on
                   |x86_64-linux-gnu in         |valid code on
                   |emit_mem_initializers, at   |x86_64-linux-gnu in
                   |cp/init.c:1109              |emit_mem_initializers, at
                   |                            |cp/init.c:1109
   Target Milestone|---                         |4.9.4
      Known to fail|                            |4.7.3, 4.8.5, 4.9.3, 5.3.0,
                   |                            |6.0

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed but invalid code:

> /space/rguenther/install/gcc-4.6.4/bin/g++ t.C -S
t.C: In constructor ‘A< <template-parameter-1-1> >::A() [with
<template-parameter-1-1> = S]’:
t.C:22:5:   instantiated from ‘B<T1, T2>& operator<<(B<T1, T2>&, int) [with T1
= S, T2 = S]’
t.C:26:47:   instantiated from here
t.C:7:25: error: type ‘A<>’ is not a direct base of ‘A<>’
>From gcc-bugs-return-520657-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 08:10:24 2016
Return-Path: <gcc-bugs-return-520657-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 28358 invoked by alias); 31 Mar 2016 08: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 27799 invoked by uid 48); 31 Mar 2016 08:10:11 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/70467] Useless "and [esp],-1" emitted on AND with uint64_t variable
Date: Thu, 31 Mar 2016 08:10:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords cf_gcctarget bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-70467-4-jCcwrBSBSX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70467-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70467-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03697.txt.bz2
Content-length: 749

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |missed-optimization
             Target|                            |i?86-*-*
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2016-03-31
     Ever confirmed|0                           |1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
can't reproduce with sth simpler.  But confirmed, with plain -O2 -m32. 
Probably
to do with splitting wide types (or not doing that in this case).
>From gcc-bugs-return-520658-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 08:11:16 2016
Return-Path: <gcc-bugs-return-520658-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 30164 invoked by alias); 31 Mar 2016 08:11:16 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 29911 invoked by uid 48); 31 Mar 2016 08:11:03 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/70467] Useless "and [esp],-1" emitted on AND with uint64_t variable
Date: Thu, 31 Mar 2016 08:11:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: 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 cf_known_to_work resolution
Message-ID: <bug-70467-4-Dzn13iai6l@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70467-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70467-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03698.txt.bz2
Content-length: 765

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
      Known to work|                            |6.0
         Resolution|---                         |FIXED

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed in GCC 6 btw:

doStuff:
.LFB15:
        .cfi_startproc
        subl    $28, %esp
        .cfi_def_cfa_offset 32
        call    test
        fstpt   (%esp)
        andl    $2147483647, 4(%esp)
        fldt    (%esp)
        addl    $28, %esp
        .cfi_def_cfa_offset 4
        ret
>From gcc-bugs-return-520659-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 08:14:22 2016
Return-Path: <gcc-bugs-return-520659-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 33028 invoked by alias); 31 Mar 2016 08:14: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 32782 invoked by uid 48); 31 Mar 2016 08:14:12 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/70466] ICE on invalid code on x86_64-linux-gnu in tree check: expected constructor, have parm_decl in convert_like_real, at cp/call.c:6371 with -std=c++11
Date: Thu, 31 Mar 2016 08: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.0
X-Bugzilla-Keywords: ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on short_desc everconfirmed cf_known_to_fail
Message-ID: <bug-70466-4-JABZoRqxgV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70466-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70466-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03699.txt.bz2
Content-length: 1320

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2016-03-31
            Summary|ICE on invalid code on      |ICE on invalid code on
                   |x86_64-linux-gnu in tree    |x86_64-linux-gnu in tree
                   |check: expected             |check: expected
                   |constructor, have parm_decl |constructor, have parm_decl
                   |in convert_like_real, at    |in convert_like_real, at
                   |cp/call.c:6371              |cp/call.c:6371 with
                   |                            |-std=c++11
     Ever confirmed|0                           |1
      Known to fail|                            |4.3.4, 5.3.0, 6.0

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed with -std=gnu++14 (doesn't ICE with -std=gnu++98 which is default in
GCC 5).  ICEs the same with GCC 4.8 (and -std=gnu++1y) or GCC 4.7 or GCC 4.3(!)
and -std=gnu++0x.

So not really a regression.
>From gcc-bugs-return-520660-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 08:18:25 2016
Return-Path: <gcc-bugs-return-520660-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 41236 invoked by alias); 31 Mar 2016 08: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 41024 invoked by uid 48); 31 Mar 2016 08:18:13 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/70465] [4.9/5/6/7 Regression]  Poor code for x87 asm
Date: Thu, 31 Mar 2016 08:18:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords cf_gcctarget target_milestone short_desc
Message-ID: <bug-70465-4-n7PKOhHGBe@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70465-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70465-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03700.txt.bz2
Content-length: 807

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |missed-optimization
             Target|                            |i?86-*-*
   Target Milestone|6.0                         |7.0
            Summary|[4.9/5/6 Regression]  Poor  |[4.9/5/6/7 Regression]
                   |code for x87 asm            |Poor code for x87 asm

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Whatever we do, please defer to GCC 7.  (who cares about x87 math these days?)

I wonder why __builtin_atan2 doesn't expand to fpatan with fancy-math-387 and
-ffast-math.
>From gcc-bugs-return-520661-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 08:21:20 2016
Return-Path: <gcc-bugs-return-520661-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 47018 invoked by alias); 31 Mar 2016 08:21:20 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 44859 invoked by uid 48); 31 Mar 2016 08:21:07 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/70462] Unnecessary "base object constructor" for final classes
Date: Thu, 31 Mar 2016 08: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: 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: keywords cc
Message-ID: <bug-70462-4-vWeLLSdhUT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70462-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70462-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03701.txt.bz2
Content-length: 495

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

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

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

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Maybe the ABI mandates these nevertheless.
>From gcc-bugs-return-520662-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 08:22:06 2016
Return-Path: <gcc-bugs-return-520662-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 49617 invoked by alias); 31 Mar 2016 08:22:05 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 48717 invoked by uid 48); 31 Mar 2016 08:21:55 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/70461] [6 Regression] Performance regression after r234527
Date: Thu, 31 Mar 2016 08:22:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords: missed-optimization, ra
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords priority bug_status cf_reconfirmed_on target_milestone everconfirmed
Message-ID: <bug-70461-4-s8mJbw8yaN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70461-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70461-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03702.txt.bz2
Content-length: 667

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |missed-optimization, ra
           Priority|P3                          |P1
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2016-03-31
   Target Milestone|---                         |6.0
     Ever confirmed|0                           |1

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Thus confirmed.
>From gcc-bugs-return-520663-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 08:23:09 2016
Return-Path: <gcc-bugs-return-520663-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 54219 invoked by alias); 31 Mar 2016 08:23:08 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 53785 invoked by uid 48); 31 Mar 2016 08:22:56 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/70460] [4.9/5/6 Regression] Miscompilation of glibc on i686-linux starting with r234101
Date: Thu, 31 Mar 2016 08:23:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 4.9.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: target_milestone
Message-ID: <bug-70460-4-Xzq8Io4zDr@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70460-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70460-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03703.txt.bz2
Content-length: 295

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|6.0                         |4.9.4
>From gcc-bugs-return-520664-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 08:31:35 2016
Return-Path: <gcc-bugs-return-520664-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 94058 invoked by alias); 31 Mar 2016 08:31: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 93872 invoked by uid 48); 31 Mar 2016 08:31:21 -0000
From: "ubizjak at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/70465] [4.9/5/6/7 Regression]  Poor code for x87 asm
Date: Thu, 31 Mar 2016 08:31:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ubizjak at gmail dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-70465-4-9GzX8LHAe2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70465-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70465-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03704.txt.bz2
Content-length: 351

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

--- Comment #3 from Uroš Bizjak <ubizjak at gmail dot com> ---
(In reply to Richard Biener from comment #2)

> I wonder why __builtin_atan2 doesn't expand to fpatan with fancy-math-387 and
> -ffast-math.
It does. You also have to use -mfpmath=387 if your compiler defaults to SSE
math.
>From gcc-bugs-return-520665-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 08:35:38 2016
Return-Path: <gcc-bugs-return-520665-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 105087 invoked by alias); 31 Mar 2016 08:35: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 104829 invoked by uid 48); 31 Mar 2016 08:35:24 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/70471] Superfluous move instructions in floating-point instruction sequence
Date: Thu, 31 Mar 2016 08: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: 5.3.0
X-Bugzilla-Keywords: missed-optimization, ra
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-70471-4-A0URdeqdAm@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70471-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70471-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03705.txt.bz2
Content-length: 1226

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |missed-optimization, ra
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2016-03-31
     Ever confirmed|0                           |1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Please provide the compiler command plus output when -v appended so we can see
what -march=native expands to for you.

As there are a load of spills in this code the extra move is likely a remanent
of a late removed spill.

It looks like you are talking about the function

_ZN11ML_BSSN_FD4L34ML_BSSN_FD4_EvolutionInterior_BodyEPK4_cGHiiPKdS4_S4_PKiS6_iPrKPd._omp_fn.0

created from ML_BSSN_FD4::ML_BSSN_FD4_EvolutionInterior_Body.

Confirmed there are a load of spills in the code, couldn't find the specific
sequence with using -march=core-avx2 (but I'm also not running on darwin
which will make assembler look differently).

Looks like GCC 6 spills a lot less here.
>From gcc-bugs-return-520666-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 08:37:12 2016
Return-Path: <gcc-bugs-return-520666-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 109296 invoked by alias); 31 Mar 2016 08:37:12 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 107177 invoked by uid 48); 31 Mar 2016 08:36:59 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/70473] genautomata memory footprint for arm
Date: Thu, 31 Mar 2016 08:37: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: 5.3.0
X-Bugzilla-Keywords: build, memory-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:
Message-ID: <bug-70473-4-cgpWQDNO9r@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70473-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70473-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03706.txt.bz2
Content-length: 249

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

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
I suppose that for specific cases like building a compiler for/on raspi one
could disable all but the "interesting" automaton?
>From gcc-bugs-return-520667-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 08:39:09 2016
Return-Path: <gcc-bugs-return-520667-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 114631 invoked by alias); 31 Mar 2016 08:39: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 114477 invoked by uid 48); 31 Mar 2016 08:38:56 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/70404] pr70174.c fails on s390x
Date: Thu, 31 Mar 2016 08:39:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on assigned_to everconfirmed attachments.created
Message-ID: <bug-70404-4-NCHwmCBGCH@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70404-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70404-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03707.txt.bz2
Content-length: 689

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2016-03-31
           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 38142
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38142&action=edit
gcc6-pr70404.patch

Untested fix.
>From gcc-bugs-return-520668-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 08:41:23 2016
Return-Path: <gcc-bugs-return-520668-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 6510 invoked by alias); 31 Mar 2016 08: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 6463 invoked by uid 48); 31 Mar 2016 08:41:18 -0000
From: "ktkachov at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/70473] genautomata memory footprint for arm
Date: Thu, 31 Mar 2016 08: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: 5.3.0
X-Bugzilla-Keywords: build, memory-hog
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ktkachov at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-70473-4-yMlJJg0Uwk@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70473-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70473-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03708.txt.bz2
Content-length: 386

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

--- Comment #3 from ktkachov at gcc dot gnu.org ---
(In reply to Richard Biener from comment #2)
> I suppose that for specific cases like building a compiler for/on raspi one
> could disable all but the "interesting" automaton?

I don't think genautomata supports such functionality currently (i.e. disable
particular automata)
>From gcc-bugs-return-520669-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 08:42:39 2016
Return-Path: <gcc-bugs-return-520669-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 9246 invoked by alias); 31 Mar 2016 08:42:39 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 7886 invoked by uid 48); 31 Mar 2016 08:42:26 -0000
From: "rearnsha at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/69614] [4.9/5 Regression] wrong code with -Os -fno-expensive-optimizations -fschedule-insns -mtpcs-leaf-frame -fira-algorithm=priority @ armv7a
Date: Thu, 31 Mar 2016 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: 6.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: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: target_milestone
Message-ID: <bug-69614-4-YagmPMyifR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-69614-4@http.gcc.gnu.org/bugzilla/>
References: <bug-69614-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03709.txt.bz2
Content-length: 296

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

Richard Earnshaw <rearnsha at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|6.0                         |5.4
>From gcc-bugs-return-520670-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 08:48:00 2016
Return-Path: <gcc-bugs-return-520670-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 43344 invoked by alias); 31 Mar 2016 08:48:00 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 42749 invoked by uid 48); 31 Mar 2016 08:47:45 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/70468] [4.9/5/6 Regression] ICE on valid code on x86_64-linux-gnu in emit_mem_initializers, at cp/init.c:1109
Date: Thu, 31 Mar 2016 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: 6.0
X-Bugzilla-Keywords: ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 4.9.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-70468-4-p2JGvw1DH8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70468-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70468-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03710.txt.bz2
Content-length: 1443

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

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

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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Started with r182012:

.../cc1plus.182011 -quiet -std=c++98 pr70468.C
pr70468.C: In instantiation of ‘A< <template-parameter-1-1> >::A() [with
<template-parameter-1-1> = S]’:
pr70468.C:22:3:   required from ‘B<T1, T2>& operator<<(B<T1, T2>&, int) [with
T1 = S; T2 = S]’
pr70468.C:26:47:   required from here
pr70468.C:7:21: error: type ‘A<>’ is not a direct base of ‘A<>’
.../cc1plus.182012 -quiet -std=c++98 pr70468.C
pr70468.C: In instantiation of ‘A< <template-parameter-1-1> >::A() [with
<template-parameter-1-1> = S]’:
pr70468.C:22:3:   required from ‘B<T1, T2>& operator<<(B<T1, T2>&, int) [with
T1 = S; T2 = S]’
pr70468.C:26:47:   required from here
pr70468.C:7:21: internal compiler error: in emit_mem_initializers, at
cp/init.c:1020
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
>From gcc-bugs-return-520671-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 08:49:56 2016
Return-Path: <gcc-bugs-return-520671-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 47189 invoked by alias); 31 Mar 2016 08:49: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 47073 invoked by uid 55); 31 Mar 2016 08:49:42 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/70430] Incorrect result for logical "and" operation with mixed vector and scalar
Date: Thu, 31 Mar 2016 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: 5.2.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-70430-4-crLemMQXEz@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70430-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70430-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03711.txt.bz2
Content-length: 644

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

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Thu Mar 31 08:49:09 2016
New Revision: 234611

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

        PR c++/70430
        * typeck.c (cp_build_binary_op): Fix operand order of vector
        conditional in truth op handling.

        * g++.dg/ext/vector30.C: New testcase.

Added:
    trunk/gcc/testsuite/g++.dg/ext/vector30.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/typeck.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-520672-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 08:58:20 2016
Return-Path: <gcc-bugs-return-520672-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 81736 invoked by alias); 31 Mar 2016 08:58:19 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 80420 invoked by uid 48); 31 Mar 2016 08:58:06 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/70474] New: [4.9 Regression] Several hundred asan failures with 4.9.4 on x86_64-apple-darwin15
Date: Thu, 31 Mar 2016 08:58: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: 4.9.4
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone cf_gcchost cf_gcctarget cf_gccbuild
Message-ID: <bug-70474-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03712.txt.bz2
Content-length: 1383

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

            Bug ID: 70474
           Summary: [4.9 Regression] Several hundred asan failures with
                    4.9.4 on x86_64-apple-darwin15
           Product: gcc
           Version: 4.9.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: sanitizer
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dominiq at lps dot ens.fr
                CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org,
                    fxcoudert at gcc dot gnu.org,
                    howarth.at.gcc.testresults at gmail dot com,
                    iains at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org,
                    m.ostapenko at samsung dot com
  Target Milestone: ---
              Host: x86_64-apple-darwin15
            Target: x86_64-apple-darwin15
             Build: x86_64-apple-darwin15

On x86_64-apple-darwin15 (Xcode 7.3) I get several hundred asan failures with
4.9.4 (see https://gcc.gnu.org/ml/gcc-testresults/2016-03/msg03029.html). They
are of the kind

==62978==AddressSanitizer CHECK failed:
../../../../4.9_work/libsanitizer/asan/asan_rtl.cc:441 "((!asan_init_is_running
&& "ASan init calls itself!")) != (0)" (0x0, 0x0)
    <empty stack>

This is very similar to pr69147 for the gcc-5 branch.
>From gcc-bugs-return-520673-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 09:05:56 2016
Return-Path: <gcc-bugs-return-520673-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 12066 invoked by alias); 31 Mar 2016 09:05: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 11851 invoked by uid 48); 31 Mar 2016 09:05:44 -0000
From: "larsbj at gullik dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/70475] New: -Wmisleading-indentation quetionable in Eigen
Date: Thu, 31 Mar 2016 09:05:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: larsbj at gullik 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-70475-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03713.txt.bz2
Content-length: 846

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

            Bug ID: 70475
           Summary: -Wmisleading-indentation quetionable in Eigen
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: larsbj at gullik dot net
  Target Milestone: ---

In Eigen (http://eigen.tuxfamily.org/index.php?title=Main_Page),
this construct is used to group things:

----------------
void do_stuff();
void do_other_stuff();

int main() {
    bool a = false;

           do_other_stuff();
    if (a) do_stuff();
           do_other_stuff();
};
-------------

Should -Wmisleading-indentation really warn on this?
To me it is pretty clear that the conditional only
apply to the one line.
>From gcc-bugs-return-520674-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 09:06:50 2016
Return-Path: <gcc-bugs-return-520674-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 13773 invoked by alias); 31 Mar 2016 09: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 13654 invoked by uid 48); 31 Mar 2016 09:06:36 -0000
From: "sbergman at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/70476] New: C++11: Function name declared in unnamed namespace extern "C" gets exernal linkage
Date: Thu, 31 Mar 2016 09:06:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: sbergman at redhat dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-70476-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03714.txt.bz2
Content-length: 2851

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

            Bug ID: 70476
           Summary: C++11: Function name declared in unnamed namespace
                    extern "C" gets exernal linkage
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sbergman at redhat dot com
  Target Milestone: ---

My reading of the C++11-and-beyond Standard is that the name of a function with
extern "C" language linkage declared in an unnamed namespace should have
internal linkage:  Per [basic.link], it has the same linkage as the enclosing
unnamed namespace (i.e., internal).  And [dcl.link]'s "A declaration directly
contained in a linkage-specification is treated as if it contains the extern
specifier..." is irrelevant, as even a function declared with the "extern"
storage specifier in an unnamed namespace has internal linkage.  (See also
<https://groups.google.com/a/isocpp.org/forum/#!topic/std-discussion/oyLCkCUKpfU>
"Linkage of: namespace { extern "C" { void f() {} } }".)

That is, with test.cc being

                                 void external01() {}
                          extern void external02() {}
                          static void internal03() {}
             extern "C"          void external04() {}
             extern "C" {        void external05() {} }
             extern "C" { extern void external06() {} }
             extern "C" { static void internal07() {} }
 namespace {                     void internal08() {}   }
 namespace {              extern void internal09() {}   }
 namespace {              static void internal10() {}   }
 namespace { extern "C"          void internal11() {}   }
 namespace { extern "C" {        void internal12() {} } }
 namespace { extern "C" { extern void internal13() {} } }
 namespace { extern "C" { static void internal14() {} } }

all external* should have external linkage and all internal* should have
internal linkage when compiled as C++11 or later.

But (at least on Linux with recent GCC trunk)

> $ gcc/trunk/inst/bin/g++ --version
> g++ (GCC) 6.0.0 20160331 (experimental)
> Copyright (C) 2016 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
> $ gcc/trunk/inst/bin/g++ -std=c++11 -c test.cc && nm test.o | grep -w T
> 0000000000000015 T external04
> 000000000000001c T external05
> 0000000000000023 T external06
> 0000000000000046 T internal11
> 000000000000004d T internal12
> 0000000000000054 T internal13
> 0000000000000000 T _Z10external01v
> 0000000000000007 T _Z10external02v

shows that internal11--13 erroneously get external linkage.
>From gcc-bugs-return-520675-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 09:17:44 2016
Return-Path: <gcc-bugs-return-520675-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 61602 invoked by alias); 31 Mar 2016 09:17: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 61409 invoked by uid 48); 31 Mar 2016 09:17:31 -0000
From: "trippels at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/70475] -Wmisleading-indentation quetionable in Eigen
Date: Thu, 31 Mar 2016 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: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: trippels at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-70475-4-VCzqNQEoDo@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70475-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70475-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03715.txt.bz2
Content-length: 425

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

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

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

--- Comment #1 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
See discussion in PR69415.
>From gcc-bugs-return-520676-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 09:21:48 2016
Return-Path: <gcc-bugs-return-520676-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 84999 invoked by alias); 31 Mar 2016 09:21: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 81907 invoked by uid 48); 31 Mar 2016 09:21:38 -0000
From: "trippels at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/70475] -Wmisleading-indentation quetionable in Eigen
Date: Thu, 31 Mar 2016 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: 6.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:
Message-ID: <bug-70475-4-jWkx1TfLcn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70475-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70475-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03716.txt.bz2
Content-length: 277

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

--- Comment #2 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
(In reply to Markus Trippelsdorf from comment #1)
> See discussion in PR69415.

Sorry wrong bug number. 
IMHO it is OK to warn for the code above.
>From gcc-bugs-return-520677-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 09:26:25 2016
Return-Path: <gcc-bugs-return-520677-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 95479 invoked by alias); 31 Mar 2016 09:26: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 95266 invoked by uid 48); 31 Mar 2016 09:26:12 -0000
From: "m.ostapenko at samsung dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/70474] [4.9 Regression] Several hundred asan failures with 4.9.4 on x86_64-apple-darwin15
Date: Thu, 31 Mar 2016 09: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: 4.9.4
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: m.ostapenko at samsung dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-70474-4-P8oAhTQL2J@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70474-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70474-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03717.txt.bz2
Content-length: 277

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

--- Comment #1 from Maxim Ostapenko <m.ostapenko at samsung dot com> ---
Created attachment 38143
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38143&action=edit
Proposed patch.

Does this patch fix the problem?
>From gcc-bugs-return-520678-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 09:37:47 2016
Return-Path: <gcc-bugs-return-520678-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 90548 invoked by alias); 31 Mar 2016 09: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 83427 invoked by uid 48); 31 Mar 2016 09:37:34 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/70474] [4.9 Regression] Several hundred asan failures with 4.9.4 on x86_64-apple-darwin15
Date: Thu, 31 Mar 2016 09: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: 4.9.4
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: 4.9.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: target_milestone
Message-ID: <bug-70474-4-X19OiXfler@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70474-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70474-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03718.txt.bz2
Content-length: 295

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.9.4
>From gcc-bugs-return-520679-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 09:40:37 2016
Return-Path: <gcc-bugs-return-520679-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 104239 invoked by alias); 31 Mar 2016 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 102216 invoked by uid 48); 31 Mar 2016 09:40:25 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/70430] Incorrect result for logical "and" operation with mixed vector and scalar
Date: Thu, 31 Mar 2016 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: 5.2.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cf_known_to_work target_milestone cf_known_to_fail
Message-ID: <bug-70430-4-Yr0vA2TbDu@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70430-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70430-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03719.txt.bz2
Content-length: 510

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |6.0
   Target Milestone|---                         |5.4
      Known to fail|                            |5.3.0

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed on trunk sofar, queued for GCC 5.
>From gcc-bugs-return-520680-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 09:44:09 2016
Return-Path: <gcc-bugs-return-520680-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 109210 invoked by alias); 31 Mar 2016 09:44:09 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 109039 invoked by uid 48); 31 Mar 2016 09:43:56 -0000
From: "vogt at linux dot vnet.ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/70404] pr70174.c fails on s390x
Date: Thu, 31 Mar 2016 09: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: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vogt at linux dot vnet.ibm.com
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-70404-4-L983K9Lcgz@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70404-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70404-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03720.txt.bz2
Content-length: 260

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

--- Comment #3 from Dominik Vogt <vogt at linux dot vnet.ibm.com> ---
Andreas is already working on the issue, so before anybody spends any more work
on this, you should probably coordinate your efforts.
>From gcc-bugs-return-520681-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 10:10:43 2016
Return-Path: <gcc-bugs-return-520681-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 48921 invoked by alias); 31 Mar 2016 10:10:42 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 48714 invoked by uid 48); 31 Mar 2016 10:10:27 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/70467] Useless "and [esp],-1" emitted on AND with uint64_t variable
Date: Thu, 31 Mar 2016 10:10:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub 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 cc resolution
Message-ID: <bug-70467-4-kyMdQvexp7@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70467-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70467-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03721.txt.bz2
Content-length: 1168

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

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

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

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
It is not fixed, try
-m32 -O2 -mno-sse.
I believe the issue is that we expand_binop DImode
op0 == target
(mem/c:DI (plus:SI (reg/f:SI 82 virtual-stack-vars)
        (const_int -16 [0xfffffffffffffff0])) [0 MEM[(char *
{ref-all})&value]+0 S8 A128])
and op1
(const_int 9223372036854775807 [0x7fffffffffffffff])
which then expands this per subwords as two SImode expand_binops, but nothing
there is able to optimize & -1 (and similarly | or ^ 0, or & 0, or | -1).
And, combiner doesn't do anything, because it is a single insn that operates on
memory, so there is nothing to combine together.
So, IMHO expand_binop just should handle the easy cases.  I'll prepare a patch.
>From gcc-bugs-return-520682-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 10:28:00 2016
Return-Path: <gcc-bugs-return-520682-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 119539 invoked by alias); 31 Mar 2016 10:28: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 102686 invoked by uid 48); 31 Mar 2016 10:27:48 -0000
From: "glisse at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/23471] a*a (for signed ints with -fno-wrapv) is always postive
Date: Thu, 31 Mar 2016 10: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: 4.1.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: glisse 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-23471-4-jUcfXxf31r@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-23471-4@http.gcc.gnu.org/bugzilla/>
References: <bug-23471-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03722.txt.bz2
Content-length: 673

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

--- Comment #3 from Marc Glisse <glisse at gcc dot gnu.org> ---
The case a*a has been handled for a while, both in fold-const.c
(tree_binary_nonnegative_warnv_p) and in VRP. However, the case a*a*a*a*a*a is
not handled. In the .optimized dump at -O3, we still have:

  b_3 = a_2(D) * a_2(D);
  b_4 = a_2(D) * b_3;
  b_5 = a_2(D) * b_4;
  b_6 = a_2(D) * b_5;
  b_7 = a_2(D) * b_6;

If reassoc or some similar pass had turned it into the following, the
optimization would probably work:

  b_3 = a_2(D) * a_2(D);
  b_4 = a_2(D) * b_3;
  b_7 = b_4 * b_4;

Not sure how often this would be useful though.
>From gcc-bugs-return-520683-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 10:28:23 2016
Return-Path: <gcc-bugs-return-520683-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 19267 invoked by alias); 31 Mar 2016 10:28: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 8064 invoked by uid 48); 31 Mar 2016 10:28:15 -0000
From: "ienkovich at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/69890] FAIL: gcc.target/i386/chkp-* on x86_64-apple-darwin15
Date: Thu, 31 Mar 2016 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: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ienkovich at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-69890-4-TJq0Iwj5B8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-69890-4@http.gcc.gnu.org/bugzilla/>
References: <bug-69890-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03723.txt.bz2
Content-length: 483

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

--- Comment #6 from Ilya Enkovich <ienkovich at gcc dot gnu.org> ---
(In reply to Dominique d'Humieres from comment #5)
> Sorry, but I don't understand what should be done to fix the chkp-stropt-*
> tests.

Basically all external dependencies just should be removed.  There is
gcc.dg/strlenopt.h which is used for a similar purpose by strlenopt-* tests. 
It can be re-used/copied for chkp-stropt-* tests to replace string.h.
>From gcc-bugs-return-520684-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 10:38:19 2016
Return-Path: <gcc-bugs-return-520684-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 122460 invoked by alias); 31 Mar 2016 10:38:19 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 122345 invoked by uid 48); 31 Mar 2016 10:38:09 -0000
From: "b7.10110111 at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/70467] Useless "and [esp],-1" emitted on AND with uint64_t variable
Date: Thu, 31 Mar 2016 10:38:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: b7.10110111 at gmail dot com
X-Bugzilla-Status: REOPENED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-70467-4-NVQmnPggdA@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70467-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70467-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03724.txt.bz2
Content-length: 471

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

--- Comment #4 from Ruslan <b7.10110111 at gmail dot com> ---
(In reply to Jakub Jelinek from comment #3)
> ...
> nothing there is able to optimize & -1 (and similarly | or ^ 0, or & 0, or |
> -1).

Just a note: the same happens for arithmetic operations, not just bitwise. E.g.
if you change `v&=~(1ull<<63)` in the OP to `v+=1ull<<32`, GCC generates `add
dword [esp],0` followed by `adc dword [esp+4],1`.
>From gcc-bugs-return-520685-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 10:48:18 2016
Return-Path: <gcc-bugs-return-520685-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 107856 invoked by alias); 31 Mar 2016 10:48: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 107477 invoked by uid 48); 31 Mar 2016 10:48:01 -0000
From: "ktkachov at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/70477] New: -Wtautological-compare too aggressive?
Date: Thu, 31 Mar 2016 10:48:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ktkachov at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-70477-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03725.txt.bz2
Content-length: 1400

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

            Bug ID: 70477
           Summary: -Wtautological-compare too aggressive?
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ktkachov at gcc dot gnu.org
  Target Milestone: ---

I'm trying to perform an aarch64-none-linux-gnu bootstrap with -save-temps in
the BOOT_CFLAGS but I'm getting a -Wtautological-compare failure when compiling
c-family/c-pragma.c:

gcc/c-family/c-pragma.c:415:64: warning: self-comparison always evaluates to
false [-Wtautological-compare]
   if (BYTES_BIG_ENDIAN != WORDS_BIG_ENDIAN)
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                    ^ 

For aarch64 these are defined as:
#define BYTES_BIG_ENDIAN (TARGET_BIG_END != 0)
#define WORDS_BIG_ENDIAN (BYTES_BIG_ENDIAN)

I think this can be reproduced also as:

int var;

#define A var
#define B var

int foo (int a, int b)
{
  if (A == B)
    return a;
  else
    return b;
}

gcc -Wtautological-compare -c warn.c
warn.c: In function 'foo':
warn.c:8:9: warning: self-comparison always evaluates to true
[-Wtautological-compare]
   if (A == B)
         ^~

Should we be warning on these things if they come from a macro expansion?
>From gcc-bugs-return-520686-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 10:57:30 2016
Return-Path: <gcc-bugs-return-520686-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 24738 invoked by alias); 31 Mar 2016 10:57:29 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 24240 invoked by uid 48); 31 Mar 2016 10:57:17 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/70474] [4.9 Regression] Several hundred asan failures with 4.9.4 on x86_64-apple-darwin15
Date: Thu, 31 Mar 2016 10:57:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: sanitizer
X-Bugzilla-Version: 4.9.4
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: 4.9.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-70474-4-H8nxIztDpS@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70474-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70474-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03726.txt.bz2
Content-length: 637

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2016-03-31
     Ever confirmed|0                           |1

--- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> Created attachment 38143 [details]
> Proposed patch.
>
> Does this patch fix the problem?

From preliminary tests, yes. Thanks for the prompt answer.
>From gcc-bugs-return-520687-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 11:11:18 2016
Return-Path: <gcc-bugs-return-520687-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 88336 invoked by alias); 31 Mar 2016 11: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 86742 invoked by uid 48); 31 Mar 2016 11:10:58 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/70467] Useless "and [esp],-1" emitted on AND with uint64_t variable
Date: Thu, 31 Mar 2016 11:11:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub 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-70467-4-sO5s3x5Q3t@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70467-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70467-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03727.txt.bz2
Content-length: 2541

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

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
For the logicals, e.g. the following works:
--- gcc/optabs.c.jj     2016-02-16 16:15:17.000000000 +0100
+++ gcc/optabs.c        2016-03-31 12:53:37.571337401 +0200
@@ -1136,6 +1136,37 @@ expand_binop (machine_mode mode, optab b
       op1 = force_reg (GET_MODE_INNER (mode), op1);
     }

+  /* Optimize some bitwise operations; these can be not optimized
+     away by GIMPLE optimizations when expanding wider bitwise operations
+     a word at a time.  */
+
+  if (optimize)
+    {
+      if (binoptab == and_optab)
+       {
+         if (op1 == CONST0_RTX (mode) && ! side_effects_p (op0))
+           return op1;
+         if (INTEGRAL_MODE_P (mode) && op1 == CONSTM1_RTX (mode))
+           return op0;
+       }
+      if (binoptab == ior_optab)
+       {
+         if (op1 == CONST0_RTX (mode))
+           return op0;
+         if (INTEGRAL_MODE_P (mode)
+             && op1 == CONSTM1_RTX (mode)
+             && ! side_effects_p (op0))
+           return op1;
+       }
+      if (binoptab == xor_optab)
+       {
+         if (op1 == CONST0_RTX (mode))
+           return op0;
+         if (INTEGRAL_MODE_P (mode) && op1 == CONSTM1_RTX (mode))
+           return expand_unop (mode, one_cmpl_optab, op0, target, 0);
+       }
+    }
+
   /* Record where to delete back to if we backtrack.  */
   last = get_last_insn ();

Tested on
void foo (unsigned long long *);

void
bar (void)
{
  unsigned long long a;
  foo (&a);
  a &= 0x7fffffffffffffffULL;
  foo (&a);
  a &= 0xffffffff7fffffffULL;
  foo (&a);
  a &= 0x7fffffff00000000ULL;
  foo (&a);
  a &= 0x000000007fffffffULL;
  foo (&a);
  a &= 0x00000000ffffffffULL;
  foo (&a);
  a &= 0xffffffff00000000ULL;
  foo (&a);
  a |= 0x7fffffffffffffffULL;
  foo (&a);
  a |= 0xffffffff7fffffffULL;
  foo (&a);
  a |= 0x7fffffff00000000ULL;
  foo (&a);
  a |= 0x000000007fffffffULL;
  foo (&a);
  a |= 0x00000000ffffffffULL;
  foo (&a);
  a |= 0xffffffff00000000ULL;
  foo (&a);
  a ^= 0x7fffffffffffffffULL;
  foo (&a);
  a ^= 0xffffffff7fffffffULL;
  foo (&a);
  a ^= 0x7fffffff00000000ULL;
  foo (&a);
  a ^= 0x000000007fffffffULL;
  foo (&a);
  a ^= 0x00000000ffffffffULL;
  foo (&a);
  a ^= 0xffffffff00000000ULL;
  foo (&a);
}

Though, apparently CSE1 is able to optimize some of these (& 0, | -1, ^ -1),
but not the others.
So another option is to handle & -1, | 0 and ^ 0 in CSE.
>From gcc-bugs-return-520688-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 11:18:32 2016
Return-Path: <gcc-bugs-return-520688-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 115420 invoked by alias); 31 Mar 2016 11:18:32 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 115315 invoked by uid 48); 31 Mar 2016 11:18:19 -0000
From: "krebbel at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/70478] New: [LRA] S/390: Performance regression - superfluous stack frame
Date: Thu, 31 Mar 2016 11:18: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: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: krebbel at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-70478-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03728.txt.bz2
Content-length: 983

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

            Bug ID: 70478
           Summary: [LRA] S/390: Performance regression - superfluous
                    stack frame
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: krebbel at gcc dot gnu.org
  Target Milestone: ---

void foo(unsigned int *a, unsigned char *b)
{
  *a &= *b;
}

cc1 -O3 -march=z9-109 t.c -mno-lra

foo:
        llc     %r1,0(%r3)
        n       %r1,0(%r2)
        st      %r1,0(%r2)
        br      %r14

cc1 -O3 -march=z9-109 t.c

foo:
        stg     %r15,120(%r15)
        lay     %r15,-168(%r15)
        llc     %r1,0(%r3)
        st      %r1,164(%r15)
        nc      0(4,%r2),164(%r15)
        lg      %r15,288(%r15)
        br      %r14

Problem is present since r199754 which enabled LRA on S/390.
>From gcc-bugs-return-520689-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 11:21:22 2016
Return-Path: <gcc-bugs-return-520689-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 121696 invoked by alias); 31 Mar 2016 11:21:22 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 121503 invoked by uid 48); 31 Mar 2016 11:21:09 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/23471] a*a (for signed ints with -fno-wrapv) is always postive
Date: Thu, 31 Mar 2016 11: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: 4.1.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: 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-23471-4-CLFzWlHxea@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-23471-4@http.gcc.gnu.org/bugzilla/>
References: <bug-23471-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03729.txt.bz2
Content-length: 1010

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

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to Marc Glisse from comment #3)
> The case a*a has been handled for a while, both in fold-const.c
> (tree_binary_nonnegative_warnv_p) and in VRP. However, the case a*a*a*a*a*a
> is not handled. In the .optimized dump at -O3, we still have:
> 
>   b_3 = a_2(D) * a_2(D);
>   b_4 = a_2(D) * b_3;
>   b_5 = a_2(D) * b_4;
>   b_6 = a_2(D) * b_5;
>   b_7 = a_2(D) * b_6;
> 
> If reassoc or some similar pass had turned it into the following, the
> optimization would probably work:
> 
>   b_3 = a_2(D) * a_2(D);
>   b_4 = a_2(D) * b_3;
>   b_7 = b_4 * b_4;
> 
> Not sure how often this would be useful though.

Hum, reassoc handles this for floats only it seems (__builtin_powi detection
and expansion).  Ah, and of course reassoc does nothing to
TYPE_OVERFLOW_UNDEFINED
ops.

It seems to be reassoc could handle this case anyway as code-gen optimiztion.
>From gcc-bugs-return-520690-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 11:22:21 2016
Return-Path: <gcc-bugs-return-520690-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 122838 invoked by alias); 31 Mar 2016 11:22:20 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 122700 invoked by uid 48); 31 Mar 2016 11:22:08 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/23471] a*a (for signed ints with -fno-wrapv) is always postive
Date: Thu, 31 Mar 2016 11:22:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 4.1.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: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-23471-4-87vyUi830o@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-23471-4@http.gcc.gnu.org/bugzilla/>
References: <bug-23471-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03730.txt.bz2
Content-length: 515

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

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

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

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
There is tools in tree-ssa-math-opts.c (powi_as_mults) for this, plus this
"re-association" is valid for all TYPE_OVERFLOW kinds.
>From gcc-bugs-return-520691-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 11:24:46 2016
Return-Path: <gcc-bugs-return-520691-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 125037 invoked by alias); 31 Mar 2016 11:24:42 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 124875 invoked by uid 48); 31 Mar 2016 11:24:29 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/70467] Useless "and [esp],-1" emitted on AND with uint64_t variable
Date: Thu, 31 Mar 2016 11:24:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth 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-70467-4-61nl40k1ms@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70467-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70467-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03731.txt.bz2
Content-length: 203

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

--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
I would have expected simplify_rtx to eventually handle all interesting cases.
>From gcc-bugs-return-520692-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 11:46:36 2016
Return-Path: <gcc-bugs-return-520692-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 22029 invoked by alias); 31 Mar 2016 11:46:36 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 21900 invoked by uid 48); 31 Mar 2016 11:46:27 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/70477] -Wtautological-compare too aggressive?
Date: Thu, 31 Mar 2016 11:46:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mpolacek at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-70477-4-ghSU3G1Alk@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70477-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70477-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03732.txt.bz2
Content-length: 679

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

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

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

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
I already added

 1360   /* Don't warn for various macro expansions.  */
 1361   if (from_macro_expansion_at (loc)
 1362       || from_macro_expansion_at (EXPR_LOCATION (lhs))
 1363       || from_macro_expansion_at (EXPR_LOCATION (rhs)))
 1364     return;

so it /shouldn't/ be triggering :(.
>From gcc-bugs-return-520693-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 11:56:45 2016
Return-Path: <gcc-bugs-return-520693-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 67225 invoked by alias); 31 Mar 2016 11:56:45 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 67044 invoked by uid 48); 31 Mar 2016 11:56:32 -0000
From: "rdapp at linux dot vnet.ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/69526] ivopts candidate strangeness
Date: Thu, 31 Mar 2016 11:56:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: minor
X-Bugzilla-Who: rdapp at linux dot vnet.ibm.com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-69526-4-vVL3c5OvzJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-69526-4@http.gcc.gnu.org/bugzilla/>
References: <bug-69526-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03733.txt.bz2
Content-length: 832

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

--- Comment #10 from rdapp at linux dot vnet.ibm.com ---
Created attachment 38144
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38144&action=edit
Tentative patch for VRP and loop-doloop

Meanwhile I found the time to implement a pattern for VRP which seems to do the
job on tree level. Although larger now (and not many cases are covered yet) I
suppose I agree that it fits better in VRP than in ivopts and might even catch
more cases than before.

The fix on RTL level is nonetheless necessary since doloop calculates the
number of iterations independently of the code before and also adds a +1.
I cleaned up the fix a little by introducing niterp1_expr (niter plus 1) but
there's still room for improvement.

No regressions so far, improvement ideas welcome.
>From gcc-bugs-return-520694-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 12:07:53 2016
Return-Path: <gcc-bugs-return-520694-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 120396 invoked by alias); 31 Mar 2016 12:07: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 120288 invoked by uid 48); 31 Mar 2016 12:07:40 -0000
From: "schnetter at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/70471] Superfluous move instructions in floating-point instruction sequence
Date: Thu, 31 Mar 2016 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: 5.3.0
X-Bugzilla-Keywords: missed-optimization, ra
X-Bugzilla-Severity: normal
X-Bugzilla-Who: schnetter 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-70471-4-iYlopE1ny5@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70471-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70471-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03734.txt.bz2
Content-length: 4664

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

--- Comment #2 from Erik Schnetter <schnetter at gmail dot com> ---
Compiler invocation with "-v" appended:

$
/Users/eschnett/src/spack/opt/spack/darwin-x86_64/gcc-4.2.1/gcc-5.3.0-j3ujojmhirf6t2mi5enfosb6545duy42/bin/g++
-fopenmp -march=native -std=gnu++11 -Ofast -S
ML_BSSN_FD4_EvolutionInterior.cc.i -v
Reading specs from
/Users/eschnett/src/spack/opt/spack/darwin-x86_64/gcc-4.2.1/gcc-5.3.0-j3ujojmhirf6t2mi5enfosb6545duy42/lib64/gcc/x86_64-apple-darwin15.4.0/5.3.0/specs
COLLECT_GCC=/Users/eschnett/src/spack/opt/spack/darwin-x86_64/gcc-4.2.1/gcc-5.3.0-j3ujojmhirf6t2mi5enfosb6545duy42/bin/g++
Target: x86_64-apple-darwin15.4.0
Configured with:
/Users/eschnett/src/spack/var/spack/stage/gcc-5.3.0-j3ujojmhirf6t2mi5enfosb6545duy42/gcc-5.3.0/configure
--prefix=/Users/eschnett/src/spack/opt/spack/darwin-x86_64/gcc-4.2.1/gcc-5.3.0-j3ujojmhirf6t2mi5enfosb6545duy42
--libdir=/Users/eschnett/src/spack/opt/spack/darwin-x86_64/gcc-4.2.1/gcc-5.3.0-j3ujojmhirf6t2mi5enfosb6545duy42/lib64
--disable-multilib --enable-languages=fortran,c,java,objc,c++
--with-mpc=/Users/eschnett/src/spack/opt/spack/darwin-x86_64/gcc-4.2.1/mpc-1.0.3-kg7pswhyszxa6vbgohqjhy2pywb76gpc
--with-mpfr=/Users/eschnett/src/spack/opt/spack/darwin-x86_64/gcc-4.2.1/mpfr-3.1.4-taib2hirt72ggnirqb2brytc4cvp2igf
--with-gmp=/Users/eschnett/src/spack/opt/spack/darwin-x86_64/gcc-4.2.1/gmp-6.1.0-ld7rtqn2neg3z47mzg2vnexqeet4pz3i
--enable-lto --with-quad
--with-isl=/Users/eschnett/src/spack/opt/spack/darwin-x86_64/gcc-4.2.1/isl-0.14-cn4dbzoocjsf2a5jwamnhnverh2hwccr
Thread model: posix
gcc version 5.3.0 (GCC) 
COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.11.4' '-fopenmp' '-march=native'
'-std=gnu++11' '-Ofast' '-S' '-v' '-shared-libgcc'

/Users/eschnett/src/spack/opt/spack/darwin-x86_64/gcc-4.2.1/gcc-5.3.0-j3ujojmhirf6t2mi5enfosb6545duy42/libexec/gcc/x86_64-apple-darwin15.4.0/5.3.0/cc1plus
-fpreprocessed ML_BSSN_FD4_EvolutionInterior.cc.i -march=haswell -mmmx
-mno-3dnow -msse -msse2 -msse3 -mssse3 -mno-sse4a -mcx16 -msahf -mmovbe -maes
-mno-sha -mpclmul -mpopcnt -mabm -mno-lwp -mfma -mno-fma4 -mno-xop -mbmi -mbmi2
-mno-tbm -mavx -mavx2 -msse4.2 -msse4.1 -mlzcnt -mno-rtm -mno-hle -mrdrnd
-mf16c -mfsgsbase -mno-rdseed -mno-prfchw -mno-adx -mfxsr -mxsave -mxsaveopt
-mno-avx512f -mno-avx512er -mno-avx512cd -mno-avx512pf -mno-prefetchwt1
-mno-clflushopt -mno-xsavec -mno-xsaves -mno-avx512dq -mno-avx512bw
-mno-avx512vl -mno-avx512ifma -mno-avx512vbmi -mno-clwb -mno-pcommit
-mno-mwaitx --param l1-cache-size=32 --param l1-cache-line-size=64 --param
l2-cache-size=6144 -mtune=haswell -fPIC -quiet -dumpbase
ML_BSSN_FD4_EvolutionInterior.cc.i -mmacosx-version-min=10.11.4 -auxbase
ML_BSSN_FD4_EvolutionInterior.cc -Ofast -std=gnu++11 -version -fopenmp -o
ML_BSSN_FD4_EvolutionInterior.cc.s
GNU C++11 (GCC) version 5.3.0 (x86_64-apple-darwin15.4.0)
        compiled by GNU C version 5.3.0, GMP version 6.1.0, MPFR version 3.1.4,
MPC version 1.0.3
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU C++11 (GCC) version 5.3.0 (x86_64-apple-darwin15.4.0)
        compiled by GNU C version 5.3.0, GMP version 6.1.0, MPFR version 3.1.4,
MPC version 1.0.3
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: e534f97573a0a1c1d792b0a47110beef
COMPILER_PATH=/Users/eschnett/src/spack/opt/spack/darwin-x86_64/gcc-4.2.1/gcc-5.3.0-j3ujojmhirf6t2mi5enfosb6545duy42/libexec/gcc/x86_64-apple-darwin15.4.0/5.3.0/:/Users/eschnett/src/spack/opt/spack/darwin-x86_64/gcc-4.2.1/gcc-5.3.0-j3ujojmhirf6t2mi5enfosb6545duy42/libexec/gcc/x86_64-apple-darwin15.4.0/5.3.0/:/Users/eschnett/src/spack/opt/spack/darwin-x86_64/gcc-4.2.1/gcc-5.3.0-j3ujojmhirf6t2mi5enfosb6545duy42/libexec/gcc/x86_64-apple-darwin15.4.0/:/Users/eschnett/src/spack/opt/spack/darwin-x86_64/gcc-4.2.1/gcc-5.3.0-j3ujojmhirf6t2mi5enfosb6545duy42/lib64/gcc/x86_64-apple-darwin15.4.0/5.3.0/:/Users/eschnett/src/spack/opt/spack/darwin-x86_64/gcc-4.2.1/gcc-5.3.0-j3ujojmhirf6t2mi5enfosb6545duy42/lib64/gcc/x86_64-apple-darwin15.4.0/
LIBRARY_PATH=/Users/eschnett/src/spack/opt/spack/darwin-x86_64/gcc-4.2.1/gcc-5.3.0-j3ujojmhirf6t2mi5enfosb6545duy42/lib64/gcc/x86_64-apple-darwin15.4.0/5.3.0/:/Users/eschnett/src/spack/opt/spack/darwin-x86_64/gcc-4.2.1/gcc-5.3.0-j3ujojmhirf6t2mi5enfosb6545duy42/lib64/gcc/x86_64-apple-darwin15.4.0/5.3.0/../../../:/usr/lib/
COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.11.4' '-fopenmp' '-march=native'
'-std=gnu++11' '-Ofast' '-S' '-v' '-shared-libgcc'
>From gcc-bugs-return-520695-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 12:25:35 2016
Return-Path: <gcc-bugs-return-520695-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 52457 invoked by alias); 31 Mar 2016 12:25:35 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 52330 invoked by uid 48); 31 Mar 2016 12:25:22 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/69526] ivopts candidate strangeness
Date: Thu, 31 Mar 2016 12:25:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: minor
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-69526-4-5XkmD2qSFD@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-69526-4@http.gcc.gnu.org/bugzilla/>
References: <bug-69526-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03735.txt.bz2
Content-length: 1977

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

--- Comment #11 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to rdapp from comment #10)
> Created attachment 38144 [details]
> Tentative patch for VRP and loop-doloop
> 
> Meanwhile I found the time to implement a pattern for VRP which seems to do
> the job on tree level. Although larger now (and not many cases are covered
> yet) I suppose I agree that it fits better in VRP than in ivopts and might
> even catch more cases than before.
> 
> The fix on RTL level is nonetheless necessary since doloop calculates the
> number of iterations independently of the code before and also adds a +1.
> I cleaned up the fix a little by introducing niterp1_expr (niter plus 1) but
> there's still room for improvement.
> 
> No regressions so far, improvement ideas welcome.

It's a bit very ad-hoc (looking at the VRP part).  I think what we'd need to
do is

  a) in VRP have a general helper telling you whether UNOP A or A BINOP B
  overflows/underflows

  b) in the existing patterns that would handle this and similar situations
  in match.pd:

    /* (A +- CST) +- CST -> A + CST  */
    (for outer_op (plus minus)
     (for inner_op (plus minus)
...

  use such a generic predicate to handle cases with (A +- CST) wrapped
  inside a conversion (it should already be fine to handle this case
  if A +- CST cannot overflow because TYPE_OVERFLOW_UNDEFINED).

  c) use fold_stmt (or gimple_simplify directly) in vrp_fold_stmt to
  invoke the folding machinery - eventually simply unconditionally
  call fold_stmt in
tree-ssa-propagate.c:substitute_and_fold_dom_walker::before_dom_children rather
  than only when we progagated into a stmt.

Even when doing the "ad-hoc" thing initially splitting out a) (implementing
only a subset of operations) would be a useful thing to do.  Note that
during VRP itself you can use its own lattice while when not in VRP you'd
have to rely on SSA_NAME_RANGE_INFO.
>From gcc-bugs-return-520696-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 12:30:26 2016
Return-Path: <gcc-bugs-return-520696-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 73190 invoked by alias); 31 Mar 2016 12:30: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 72483 invoked by uid 48); 31 Mar 2016 12:30:08 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/69526] ivopts candidate strangeness
Date: Thu, 31 Mar 2016 12:30:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: minor
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-69526-4-NFwaFGH0zb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-69526-4@http.gcc.gnu.org/bugzilla/>
References: <bug-69526-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03736.txt.bz2
Content-length: 472

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

--- Comment #12 from Richard Biener <rguenth at gcc dot gnu.org> ---
So, we don't optimize at -O2

long foo (int a)
{
  return (long)(a + 1) - 1;
}

Note that (T)(A +- CST1) +- CST2 -> (T)A +- CST3 thus the combined
addition in general needs to be done in the larger type _unless_ the
absolute constant value of CST3 is equal or smaller than CST1.

Handling the special case of CST1 == CST2 might be easiest here.
>From gcc-bugs-return-520697-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 12:34:18 2016
Return-Path: <gcc-bugs-return-520697-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 89971 invoked by alias); 31 Mar 2016 12:34:17 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 87406 invoked by uid 48); 31 Mar 2016 12:34:05 -0000
From: "abel at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/70292] ICE in verify_target_availability, at sel-sched.c:1584 with -fno-inline -fno-dce -fschedule-insns -fselective-scheduling -fno-tree-dce -O1
Date: Thu, 31 Mar 2016 12: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.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: abel at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: 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-70292-4-3Ov1pEME3w@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70292-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70292-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03737.txt.bz2
Content-length: 1130

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2016-03-31
                 CC|                            |abel at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Andrey Belevantsev <abel at gcc dot gnu.org> ---
(In reply to Andrey Tarasevich from comment #0)
> Created attachment 38016 [details]
> test case with ICE
> 
> This might be a duplicate of bug 64411
> 

It is, I have verified that the patch for 64411 fixes this as well.  However,
the patch is applied to trunk only for now.  I wasn't going to backport it to
gcc-5 because 64411 doesn't have any mentions of the compiler that works.  But
for this test my system opensuse gcc works.  Thus it can be classified as a
regression, and I would backport it to gcc-5 branch and add also this test case
to trunk and gcc 5.
>From gcc-bugs-return-520698-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 12:35:35 2016
Return-Path: <gcc-bugs-return-520698-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 92852 invoked by alias); 31 Mar 2016 12:35: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 92482 invoked by uid 48); 31 Mar 2016 12:35:22 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/70462] Unnecessary "base object constructor" for final classes
Date: Thu, 31 Mar 2016 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: 5.3.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: jason at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-70462-4-xkRnSGrJMi@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70462-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70462-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03738.txt.bz2
Content-length: 372

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

--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #1)
> Maybe the ABI mandates these nevertheless.

Right, the ABI doesn't say anything about final classes.  Note that the extra
symbol is only an alias; there aren't two function definitions taking up space.
>From gcc-bugs-return-520699-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 12:38:58 2016
Return-Path: <gcc-bugs-return-520699-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 102490 invoked by alias); 31 Mar 2016 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 102222 invoked by uid 48); 31 Mar 2016 12:38:45 -0000
From: "ienkovich at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/69890] FAIL: gcc.target/i386/chkp-* on x86_64-apple-darwin15
Date: Thu, 31 Mar 2016 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: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ienkovich at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-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-69890-4-HtIvovco37@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-69890-4@http.gcc.gnu.org/bugzilla/>
References: <bug-69890-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03739.txt.bz2
Content-length: 448

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

--- Comment #7 from Ilya Enkovich <ienkovich at gcc dot gnu.org> ---
Created attachment 38145
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38145&action=edit
patch

Attached patch seems to work OK on Linux and removes all string.h includes from
chkp-str* tests.  I believe this should resolve all related issues on Darwing
and other targets.

Could you please test it on Darwin?
>From gcc-bugs-return-520700-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 12:50:35 2016
Return-Path: <gcc-bugs-return-520700-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 8655 invoked by alias); 31 Mar 2016 12:50: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 8208 invoked by uid 48); 31 Mar 2016 12:50:21 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/70467] Useless "and [esp],-1" emitted on AND with uint64_t variable
Date: Thu, 31 Mar 2016 12:50:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub 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-70467-4-4OksOIa6tg@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70467-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70467-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03740.txt.bz2
Content-length: 2881

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

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
That is correct expectation, but the problem is that no pass that uses it
actually manages to update the insn.
As I said earlier, the combiner doesn't trigger, because there is just a single
insn, nothing to combine.
And CSE only triggers for & 0 and similar (which turns it into mem = 0), but
doesn't trigger for the case where we would want a no-op move.
There are two reasons for that.
One is PR35258, which wants to avoid overlapping sets, but doesn't consider
noop moves to be fine.  And then, most of the architectures actually don't
allow MEM to MEM moves, so even if we get through that, we don't validate the
changes.
The following untested patch fixes that:

--- gcc/cse.c.jj        2016-02-17 11:40:19.000000000 +0100
+++ gcc/cse.c   2016-03-31 14:42:27.104824253 +0200
@@ -5166,7 +5166,7 @@ cse_insn (rtx_insn *insn)
            }

          /* Avoid creation of overlapping memory moves.  */
-         if (MEM_P (trial) && MEM_P (SET_DEST (sets[i].rtl)))
+         if (MEM_P (trial) && MEM_P (dest) && !rtx_equal_p (trial, dest))
            {
              rtx src, dest;

@@ -5277,6 +5277,20 @@ cse_insn (rtx_insn *insn)
              break;
            }

+         /* Similarly, lots of targets don't allow no-op
+            (set (mem x) (mem x)) moves.  */
+         else if (n_sets == 1
+                  && MEM_P (trial)
+                  && MEM_P (dest)
+                  && rtx_equal_p (trial, dest)
+                  && !side_effects_p (dest)
+                  && (cfun->can_delete_dead_exceptions
+                      || insn_nothrow_p (insn)))
+           {
+             SET_SRC (sets[i].rtl) = trial;
+             break;
+           }
+
          /* Reject certain invalid forms of CONST that we create.  */
          else if (CONSTANT_P (trial)
                   && GET_CODE (trial) == CONST
@@ -5495,6 +5509,21 @@ cse_insn (rtx_insn *insn)
          sets[i].rtl = 0;
        }

+      /* Similarly for no-op MEM moves.  */
+      else if (n_sets == 1
+              && MEM_P (SET_DEST (sets[i].rtl))
+              && MEM_P (SET_SRC (sets[i].rtl))
+              && rtx_equal_p (SET_DEST (sets[i].rtl),
+                              SET_SRC (sets[i].rtl))
+              && !side_effects_p (SET_DEST (sets[i].rtl))
+              && (cfun->can_delete_dead_exceptions || insn_nothrow_p (insn)))
+       {
+         if (cfun->can_throw_non_call_exceptions && can_throw_internal (insn))
+           cse_cfg_altered = true;
+         delete_insn_and_edges (insn);
+         sets[i].rtl = 0;
+       }
+
       /* If this SET is now setting PC to a label, we know it used to
         be a conditional or computed branch.  */
       else if (dest == pc_rtx && GET_CODE (src) == LABEL_REF
>From gcc-bugs-return-520701-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 13:01:39 2016
Return-Path: <gcc-bugs-return-520701-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 104111 invoked by alias); 31 Mar 2016 13:01: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 101812 invoked by uid 55); 31 Mar 2016 13:01:26 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/70460] [4.9/5/6 Regression] Miscompilation of glibc on i686-linux starting with r234101
Date: Thu, 31 Mar 2016 13:01:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 4.9.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-70460-4-CE7krrQYDR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70460-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70460-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03741.txt.bz2
Content-length: 752

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

--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Mar 31 13:00:52 2016
New Revision: 234614

URL: https://gcc.gnu.org/viewcvs?rev=234614&root=gcc&view=rev
Log:
        PR rtl-optimization/70460
        * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
        with operand from REG_LABEL_OPERAND, instead substitute
        SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
        Don't do anything for REG_NON_LOCAL_GOTO jumps.

        * gcc.c-torture/execute/pr70460.c: New test.

Added:
    trunk/gcc/testsuite/gcc.c-torture/execute/pr70460.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/ira.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-520703-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 13:13:59 2016
Return-Path: <gcc-bugs-return-520703-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 58989 invoked by alias); 31 Mar 2016 13:13:58 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 47058 invoked by uid 55); 31 Mar 2016 13:13:45 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/70460] [4.9/5/6 Regression] Miscompilation of glibc on i686-linux starting with r234101
Date: Thu, 31 Mar 2016 13:13:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 4.9.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-70460-4-xh832AEmge@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70460-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70460-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03743.txt.bz2
Content-length: 817

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

--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Mar 31 13:13:13 2016
New Revision: 234617

URL: https://gcc.gnu.org/viewcvs?rev=234617&root=gcc&view=rev
Log:
        PR rtl-optimization/70460
        * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
        with operand from REG_LABEL_OPERAND, instead substitute
        SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
        Don't do anything for REG_NON_LOCAL_GOTO jumps.

        * gcc.c-torture/execute/pr70460.c: New test.

Added:
    branches/gcc-5-branch/gcc/testsuite/gcc.c-torture/execute/pr70460.c
Modified:
    branches/gcc-5-branch/gcc/ChangeLog
    branches/gcc-5-branch/gcc/ira.c
    branches/gcc-5-branch/gcc/testsuite/ChangeLog
>From gcc-bugs-return-520702-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 13:13:37 2016
Return-Path: <gcc-bugs-return-520702-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 42948 invoked by alias); 31 Mar 2016 13: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 42565 invoked by uid 48); 31 Mar 2016 13:13:24 -0000
From: "ramana at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/63874] vtable address generation goes through memory
Date: Thu, 31 Mar 2016 13: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: 5.0
X-Bugzilla-Keywords: missed-optimization
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: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-63874-4-YpBKnKWJmj@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-63874-4@http.gcc.gnu.org/bugzilla/>
References: <bug-63874-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03742.txt.bz2
Content-length: 738

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

--- Comment #2 from Ramana Radhakrishnan <ramana at gcc dot gnu.org> ---
(In reply to Richard Earnshaw from comment #1)
> Sounds like this might be confusion between weak definitions and weak
> references.  If we have a weak reference to the object, we cannot convert it
> into a pc-relative expression, since that would mean we couldn't detect
> NULL.  However, if we have a non-weak reference to a weak object we can
> replace that with a pc-relative addressing mode, _provided_ that we can
> guarantee that the definition will appear in the same link unit (ie it's not
> part of building a DSO).

Patch posted here. 

https://gcc.gnu.org/ml/gcc-patches/2016-03/msg01680.html
>From gcc-bugs-return-520704-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 13:22:29 2016
Return-Path: <gcc-bugs-return-520704-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 114008 invoked by alias); 31 Mar 2016 13:22:28 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 113845 invoked by uid 55); 31 Mar 2016 13:22:15 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/70460] [4.9/5/6 Regression] Miscompilation of glibc on i686-linux starting with r234101
Date: Thu, 31 Mar 2016 13:22:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 4.9.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-70460-4-prR1iM01tt@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70460-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70460-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03744.txt.bz2
Content-length: 825

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

--- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Mar 31 13:21:43 2016
New Revision: 234618

URL: https://gcc.gnu.org/viewcvs?rev=234618&root=gcc&view=rev
Log:
        PR rtl-optimization/70460
        * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
        with operand from REG_LABEL_OPERAND, instead substitute
        SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
        Don't do anything for REG_NON_LOCAL_GOTO jumps.

        * gcc.c-torture/execute/pr70460.c: New test.

Added:
    branches/gcc-4_9-branch/gcc/testsuite/gcc.c-torture/execute/pr70460.c
Modified:
    branches/gcc-4_9-branch/gcc/ChangeLog
    branches/gcc-4_9-branch/gcc/ira.c
    branches/gcc-4_9-branch/gcc/testsuite/ChangeLog
>From gcc-bugs-return-520705-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 13:22:54 2016
Return-Path: <gcc-bugs-return-520705-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 118639 invoked by alias); 31 Mar 2016 13:22: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 116049 invoked by uid 48); 31 Mar 2016 13:22:41 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/70460] [4.9/5/6 Regression] Miscompilation of glibc on i686-linux starting with r234101
Date: Thu, 31 Mar 2016 13:22:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 4.9.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-70460-4-gs4jdkJLlu@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70460-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70460-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03745.txt.bz2
Content-length: 424

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

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

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

--- Comment #12 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-520706-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 13:23:35 2016
Return-Path: <gcc-bugs-return-520706-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 121122 invoked by alias); 31 Mar 2016 13:23:35 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 120978 invoked by uid 48); 31 Mar 2016 13:23:22 -0000
From: "kyukhin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/70479] New: FMA is not reassociated causing x2 slowdown vs. ICC
Date: Thu, 31 Mar 2016 13: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: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: kyukhin at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
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-70479-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03746.txt.bz2
Content-length: 10691

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

            Bug ID: 70479
           Summary: FMA is not reassociated causing x2 slowdown vs. ICC
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: kyukhin at gcc dot gnu.org
  Target Milestone: ---

Created attachment 38146
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38146&action=edit
Reproducer

Attached example demonstrates the issue.
GCC is recent trunk. ICC is v16.

Compile:
  GCC: g++ -march=haswell -Ofast -flto -fopenmp-simd -fpermissive m.cpp -o
m.gcc
  ICC: icpc -O3 -ipo -fpermissive -xAVX2 -qopenmp m.cpp -o m.icc

Run
  GCC: time ./m.icc 20000 20000
  ICC: time ./m.gcc 20000 20000

Hot spot generated by GCC (annotated w/ perf hit counts):
157 │8d0:┌─→vbroad 0x4(%r13),%zmm0
193 │    │  lea    0x1(%rdx),%edx
173 │    │  vmulps (%r14,%rax,1),%zmm0,%zmm0
2943│    │  vbroad 0x60(%r13),%zmm1
166 │    │  vbroad 0x5c(%r13),%zmm2
151 │    │  vbroad 0x58(%r13),%zmm3
144 │    │  vbroad 0x54(%r13),%zmm4
164 │    │  vbroad 0x50(%r13),%zmm5
170 │    │  vbroad 0x4c(%r13),%zmm6
162 │    │  vbroad 0x48(%r13),%zmm7
162 │    │  vbroad 0x44(%r13),%zmm8
154 │    │  vbroad 0x40(%r13),%zmm9
172 │    │  vbroad 0x3c(%r13),%zmm10
167 │    │  vbroad 0x38(%r13),%zmm11
172 │    │  vbroad 0x34(%r13),%zmm12
171 │    │  vbroad 0x30(%r13),%zmm13
161 │    │  vbroad 0x2c(%r13),%zmm14
176 │    │  vbroad 0x28(%r13),%zmm15
139 │    │  vbroad 0x24(%r13),%zmm16
180 │    │  vbroad 0x20(%r13),%zmm17
158 │    │  vbroad 0x1c(%r13),%zmm18
165 │    │  vbroad 0x18(%r13),%zmm19
140 │    │  vbroad 0x10(%r13),%zmm21
179 │    │  vbroad 0xc(%r13),%zmm22
146 │    │  vbroad 0x8(%r13),%zmm23
170 │    │  vbroad 0x0(%r13),%zmm24
170 │    │  vbroad 0x14(%r13),%zmm20
168 │    │  vfmadd (%r15,%rax,1),%zmm24,%zmm0
2732│    │  mov    0xb8(%rsp),%rcx
172 │    │  vfmadd (%r11,%rax,1),%zmm23,%zmm0
1649│    │  vfmadd (%rsi,%rax,1),%zmm22,%zmm0                                  
                                      3413│    │  vfmadd
(%rcx,%rax,1),%zmm21,%zmm0                                                     
                   3653│    │  mov    0xc0(%rsp),%rcx                          
                                                         182 │    │  vfmadd
(%rcx,%rax,1),%zmm20,%zmm0
2806│    │  mov    0xc8(%rsp),%rcx
176 │    │  vfmadd (%rcx,%rax,1),%zmm19,%zmm0
2439│    │  mov    0xd0(%rsp),%rcx
179 │    │  vfmadd (%rcx,%rax,1),%zmm18,%zmm0
2562│    │  mov    0xd8(%rsp),%rcx
197 │    │  vfmadd (%rcx,%rax,1),%zmm17,%zmm0
2867│    │  mov    0xe0(%rsp),%rcx
141 │    │  vfmadd (%rcx,%rax,1),%zmm16,%zmm0
3200│    │  mov    0xe8(%rsp),%rcx
156 │    │  vfmadd (%rcx,%rax,1),%zmm15,%zmm0
3557│    │  mov    0xf0(%rsp),%rcx
158 │    │  vfmadd (%rcx,%rax,1),%zmm14,%zmm0
3333│    │  mov    0xf8(%rsp),%rcx
143 │    │  vfmadd (%rcx,%rax,1),%zmm13,%zmm0
3004│    │  mov    0x100(%rsp),%rcx
177 │    │  vfmadd (%rcx,%rax,1),%zmm12,%zmm0
2876│    │  mov    0x108(%rsp),%rcx
144 │    │  vfmadd (%rcx,%rax,1),%zmm11,%zmm0
2838│    │  mov    0x110(%rsp),%rcx
168 │    │  vfmadd (%rcx,%rax,1),%zmm10,%zmm0
2503│    │  mov    0x118(%rsp),%rcx
203 │    │  vfmadd (%rcx,%rax,1),%zmm9,%zmm0
2471│    │  mov    0x120(%rsp),%rcx
185 │    │  vfmadd (%rcx,%rax,1),%zmm8,%zmm0
2153│    │  mov    0x128(%rsp),%rcx
152 │    │  vfmadd (%r12,%rax,1),%zmm7,%zmm0
2091│    │  vfmadd (%rbx,%rax,1),%zmm6,%zmm0
3049│    │  vfmadd (%r10,%rax,1),%zmm5,%zmm0
3737│    │  vfmadd (%r9,%rax,1),%zmm4,%zmm0
3665│    │  vfmadd (%r8,%rax,1),%zmm3,%zmm0
3627│    │  vfmadd (%rdi,%rax,1),%zmm2,%zmm0
3804│    │  vfmadd (%rcx,%rax,1),%zmm1,%zmm0
4052│    │  mov    0x130(%rsp),%rcx
160 │    │  cmp    0x138(%rsp),%edx
534 │    │  vmovup %zmm0,(%rcx,%rax,1)
3235│    │  lea    0x40(%rax),%rax
161 │    └──jb     8d0

Hot spot generated by ICC (annotated w/ perf hit counts):
   344 │47a:┌─→vmulps 0x204c(%r11,%r14,4),%zmm27,%zmm2
   821 │    │  vmulps 0x2050(%r11,%r14,4),%zmm4,%zmm1
   318 │    │  vmulps 0x2040(%r11,%r14,4),%zmm6,%zmm29
   818 │    │  vmulps 0x1840(%r11,%r14,4),%zmm7,%zmm31
   275 │    │  vfmadd 0x1838(%r11,%r14,4),%zmm9,%zmm31
  1234 │    │  vfmadd 0x183c(%r11,%r14,4),%zmm8,%zmm29
   442 │    │  vfmadd 0x2044(%r11,%r14,4),%zmm5,%zmm2
  1110 │    │  vfmadd 0x2048(%r11,%r14,4),%zmm28,%zmm1
   337 │    │  vaddps %zmm29,%zmm31,%zmm0
  1047 │    │  vaddps %zmm1,%zmm2,%zmm3
   655 │    │  vmulps 0x1830(%r11,%r14,4),%zmm11,%zmm30
   956 │    │  vmulps 0x1834(%r11,%r14,4),%zmm10,%zmm2
   296 │    │  vmulps 0x1024(%r11,%r14,4),%zmm15,%zmm1
  1050 │    │  vmulps 0x1028(%r11,%r14,4),%zmm14,%zmm31
   294 │    │  vaddps %zmm0,%zmm3,%zmm3
  1057 │    │  vfmadd 0x102c(%r11,%r14,4),%zmm13,%zmm30
   344 │    │  vfmadd 0x1030(%r11,%r14,4),%zmm12,%zmm2
   911 │    │  vfmadd 0x1020(%r11,%r14,4),%zmm16,%zmm31
   332 │    │  vfmadd 0x820(%r11,%r14,4),%zmm17,%zmm1
   885 │    │  vaddps %zmm2,%zmm30,%zmm29
   486 │    │  vmulps 0x818(%r11,%r14,4),%zmm19,%zmm2
   837 │    │  vaddps %zmm31,%zmm1,%zmm30
   487 │    │  vmulps 0x81c(%r11,%r14,4),%zmm18,%zmm1
   851 │    │  vfmadd 0x810(%r11,%r14,4),%zmm21,%zmm2
   424 │    │  vfmadd 0x814(%r11,%r14,4),%zmm20,%zmm1
  1123 │    │  vaddps %zmm30,%zmm29,%zmm29
   389 │    │  vaddps %zmm1,%zmm2,%zmm31
  1372 │    │  vmulps 0xc(%r11,%r14,4),%zmm23,%zmm2
   311 │    │  vmulps 0x10(%r11,%r14,4),%zmm22,%zmm1
   916 │    │  vaddps %zmm29,%zmm3,%zmm3
   297 │    │  vfmadd (%r11,%r14,4),%zmm26,%zmm2
   795 │    │  vfmadd 0x8(%r11,%r14,4),%zmm24,%zmm1
   426 │    │  vaddps %zmm1,%zmm2,%zmm0
  1275 │    │  vmulps 0x208c(%r11,%r14,4),%zmm27,%zmm1
   364 │    │  vmulps 0x2080(%r11,%r14,4),%zmm6,%zmm30
  1061 │    │  vfmadd 0x4(%r11,%r14,4),%zmm25,%zmm0
   473 │    │  vfmadd 0x2084(%r11,%r14,4),%zmm5,%zmm1
  1106 │    │  vaddps %zmm31,%zmm0,%zmm2
   327 │    │  vmulps 0x2090(%r11,%r14,4),%zmm4,%zmm0
  1410 │    │  vmulps 0x1880(%r11,%r14,4),%zmm7,%zmm29
   274 │    │  vfmadd 0x2088(%r11,%r14,4),%zmm28,%zmm0
  1317 │    │  vaddps %zmm2,%zmm3,%zmm2
   364 │    │  vmulps 0x1874(%r11,%r14,4),%zmm10,%zmm3
  1196 │    │  vaddps %zmm0,%zmm1,%zmm31
   408 │    │  nop
     9 │    │  vmulps 0x1870(%r11,%r14,4),%zmm11,%zmm0
   374 │    │  vfmadd 0x1878(%r11,%r14,4),%zmm9,%zmm29
  1515 │    │  vfmadd 0x187c(%r11,%r14,4),%zmm8,%zmm30
   333 │    │  vfmadd 0x106c(%r11,%r14,4),%zmm13,%zmm0
  1728 │    │  vfmadd 0x1070(%r11,%r14,4),%zmm12,%zmm3
   306 │    │  vaddps %zmm30,%zmm29,%zmm1
  1778 │    │  vmulps 0x1064(%r11,%r14,4),%zmm15,%zmm29
   321 │    │  vaddps %zmm3,%zmm0,%zmm0
  1826 │    │  vmulps 0x1068(%r11,%r14,4),%zmm14,%zmm3
   347 │    │  vfmadd 0x860(%r11,%r14,4),%zmm17,%zmm29
  1562 │    │  vaddps %zmm1,%zmm31,%zmm1
   239 │    │  vfmadd 0x1060(%r11,%r14,4),%zmm16,%zmm3
  1600 │    │  vmulps 0x85c(%r11,%r14,4),%zmm18,%zmm30
   311 │    │  vaddps %zmm3,%zmm29,%zmm3
  1776 │    │  vmulps 0x858(%r11,%r14,4),%zmm19,%zmm29
   338 │    │  vfmadd 0x854(%r11,%r14,4),%zmm20,%zmm30
  1588 │    │  vfmadd 0x850(%r11,%r14,4),%zmm21,%zmm29
   292 │    │  vaddps %zmm3,%zmm0,%zmm0
  1331 │    │  vaddps %zmm30,%zmm29,%zmm31
   460 │    │  vmulps 0x4c(%r11,%r14,4),%zmm23,%zmm29
  1365 │    │  vmulps 0x50(%r11,%r14,4),%zmm22,%zmm30
   347 │    │  vaddps %zmm0,%zmm1,%zmm1
  1461 │    │  vfmadd 0x40(%r11,%r14,4),%zmm26,%zmm29
   489 │    │  vfmadd 0x48(%r11,%r14,4),%zmm24,%zmm30
  1583 │    │  vaddps %zmm30,%zmm29,%zmm30
   875 │    │  vfmadd 0x44(%r11,%r14,4),%zmm25,%zmm30
  1912 │    │  vmovup %zmm2,0x1028(%r13,%r14,4)
  1536 │    │  vaddps %zmm31,%zmm30,%zmm31
  1472 │    │  vaddps %zmm31,%zmm1,%zmm0
  1088 │    │  vmovup %zmm0,0x1068(%r13,%r14,4)
  1644 │    │  add    $0x20,%r14
   182 │    │  cmp    $0x200,%r14
    10 │    └──jb     47a


The issue is that we not doing rebalancing of FMA calculations.
This issue might be reproduced on Haswell as well, although because
of shorter vector perf difference is about 30%
>From gcc-bugs-return-520707-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 13:26:02 2016
Return-Path: <gcc-bugs-return-520707-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 124608 invoked by alias); 31 Mar 2016 13:26: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 124243 invoked by uid 48); 31 Mar 2016 13:25:49 -0000
From: "kyukhin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/70479] FMA is not reassociated causing x2 slowdown vs. ICC
Date: Thu, 31 Mar 2016 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: 6.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: kyukhin at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-70479-4-wegYIWM3ST@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70479-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70479-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03747.txt.bz2
Content-length: 538

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

--- Comment #1 from Kirill Yukhin <kyukhin at gcc dot gnu.org> ---
(In reply to Kirill Yukhin from comment #0)
> Compile:
>   GCC: g++ -march=haswell -Ofast -flto -fopenmp-simd -fpermissive m.cpp -o
> m.gcc
>   ICC: icpc -O3 -ipo -fpermissive -xAVX2 -qopenmp m.cpp -o m.icc
Correct compile commands (original are for Haswell)
   GCC: g++ -march=knl -Ofast -flto -fopenmp-simd -fpermissive m.cpp -o m.gcc
   ICC: icpc -O3 -ipo -fpermissive -xMIC-AVX512 -qopenmp m.cpp -o m.icc
>From gcc-bugs-return-520708-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 13:28:42 2016
Return-Path: <gcc-bugs-return-520708-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 3323 invoked by alias); 31 Mar 2016 13:28: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 3142 invoked by uid 48); 31 Mar 2016 13:28:29 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/70479] FMA is not reassociated causing x2 slowdown vs. ICC
Date: Thu, 31 Mar 2016 13:28:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 6.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:
Message-ID: <bug-70479-4-3oqkYoSDxj@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70479-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70479-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03748.txt.bz2
Content-length: 339

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

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
You mean we fail to handle ternary associative tree codes in GIMPLE reassoc?
Yes, that's true.  It's not going to be easy to retro-fit there
implementation-wise.  With rebalancing you mean handling reassoc-width > 1?
>From gcc-bugs-return-520709-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 13:43:31 2016
Return-Path: <gcc-bugs-return-520709-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 97695 invoked by alias); 31 Mar 2016 13: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 90381 invoked by uid 48); 31 Mar 2016 13:43:24 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/70478] [LRA] S/390: Performance regression - superfluous stack frame
Date: Thu, 31 Mar 2016 13:43:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords: ra
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-70478-4-3XFzsytMyq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70478-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70478-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03749.txt.bz2
Content-length: 2161

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ra
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2016-03-31
     Ever confirmed|0                           |1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
It seems to somehow "optimize" with regard to the and op being unsigned char
and thus all upper bits being zero and only the lower ones need to be computed?

Before RA

(insn 7 4 8 2 (set (reg:SI 66 [ *b_4(D)+-3 ])
        (zero_extend:SI (mem:QI (reg:DI 3 %r3 [ b ]) [0 *b_4(D)+0 S1 A8])))
t.c:3 1209 {*zero_extendqisi2_extimm}
     (expr_list:REG_DEAD (reg:DI 3 %r3 [ b ])
        (nil)))
(insn 8 7 11 2 (parallel [
            (set (mem:SI (reg:DI 2 %r2 [ a ]) [1 *a_2(D)+0 S4 A32])
                (and:SI (mem:SI (reg:DI 2 %r2 [ a ]) [1 *a_2(D)+0 S4 A32])
                    (reg:SI 66 [ *b_4(D)+-3 ])))
            (clobber (reg:CC 33 %cc))
        ]) t.c:3 1473 {*andsi3_zarch}
     (expr_list:REG_DEAD (reg:SI 66 [ *b_4(D)+-3 ])
        (expr_list:REG_DEAD (reg:DI 2 %r2 [ a ])
            (expr_list:REG_UNUSED (reg:CC 33 %cc)
                (nil)))))

after

(insn 7 4 8 2 (set (reg:SI 66 [ *b_4(D)+-3 ])
        (zero_extend:SI (mem:QI (reg:DI 3 %r3 [ b ]) [0 *b_4(D)+0 S1 A8])))
t.c:3 1209 {*zero_extendqisi2_extimm}
     (expr_list:REG_DEAD (reg:DI 3 %r3 [ b ])
        (nil)))
(insn 8 7 11 2 (parallel [
            (set (mem:SI (reg:DI 2 %r2 [ a ]) [1 *a_2(D)+0 S4 A32])
                (and:SI (mem:SI (reg:DI 2 %r2 [ a ]) [1 *a_2(D)+0 S4 A32])
                    (reg:SI 66 [ *b_4(D)+-3 ])))
            (clobber (reg:CC 33 %cc))
        ]) t.c:3 1473 {*andsi3_zarch}
     (expr_list:REG_DEAD (reg:SI 66 [ *b_4(D)+-3 ])
        (expr_list:REG_DEAD (reg:DI 2 %r2 [ a ])
            (expr_list:REG_UNUSED (reg:CC 33 %cc)
                (nil)))))

but then LRA chooses to spill while reload is happy with the above.
>From gcc-bugs-return-520710-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 13:50:23 2016
Return-Path: <gcc-bugs-return-520710-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 43587 invoked by alias); 31 Mar 2016 13:50: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 43124 invoked by uid 48); 31 Mar 2016 13:50:10 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/69564] [5/6 Regression] lto and/or C++ make scimark2 LU slower
Date: Thu, 31 Mar 2016 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: 6.0
X-Bugzilla-Keywords: lto, missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-69564-4-VfiafaSgfo@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-69564-4@http.gcc.gnu.org/bugzilla/>
References: <bug-69564-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03750.txt.bz2
Content-length: 3978

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

--- Comment #25 from Richard Biener <rguenth at gcc dot gnu.org> ---
I benchmarked the patch in comment#17 with a full three-run on all_cpp
on a Haswell machine with -Ofast -march=native (peak is patched).

                                  Estimated                       Estimated
                Base     Base       Base        Peak     Peak       Peak
Benchmarks      Ref.   Run Time     Ratio       Ref.   Run Time     Ratio
-------------- ------  ---------  ---------    ------  ---------  ---------
400.perlbench                               NR                              NR 
401.bzip2                                   NR                              NR 
403.gcc                                     NR                              NR 
429.mcf                                     NR                              NR 
445.gobmk                                   NR                              NR 
456.hmmer                                   NR                              NR 
458.sjeng                                   NR                              NR 
462.libquantum                              NR                              NR 
464.h264ref                                 NR                              NR 
471.omnetpp      6250        315       19.9 *    6250        312       20.0 *  
473.astar        7020        323       21.7 *    7020        323       21.7 *  
483.xalancbmk    6900        193       35.8 *    6900        192       35.9 *  
 Est. SPECint_base2006                   --
 Est. SPECint2006                                                        --

                                  Estimated                       Estimated
                Base     Base       Base        Peak     Peak       Peak
Benchmarks      Ref.   Run Time     Ratio       Ref.   Run Time     Ratio
-------------- ------  ---------  ---------    ------  ---------  ---------
410.bwaves                                  NR                              NR 
416.gamess                                  NR                              NR 
433.milc                                    NR                              NR 
434.zeusmp                                  NR                              NR 
435.gromacs                                 NR                              NR 
436.cactusADM                               NR                              NR 
437.leslie3d                                NR                              NR 
444.namd         8020        300       26.7 *    8020        300       26.8 *  
447.dealII      11440        253       45.3 *   11440        257       44.5 *  
450.soplex       8340        218       38.3 *    8340        218       38.2 *  
453.povray       5320        120       44.2 *    5320        120       44.2 *  
454.calculix                                NR                              NR 
459.GemsFDTD                                NR                              NR 
465.tonto                                   NR                              NR 
470.lbm                                     NR                              NR 
481.wrf                                     NR                              NR 
482.sphinx3                                 NR                              NR 
 Est. SPECfp_base2006                    --
 Est. SPECfp2006                                                         --


dealII might be not noise, three runs are

447.dealII      11440        319       35.8 S   11440        257       44.5 S
447.dealII      11440        252       45.4 S   11440        257       44.5 *
447.dealII      11440        253       45.3 *   11440        256       44.7 S

and I think we can take peak values (stupid CPU freq boosting).

I'm re-running just 447.dealII now, results tomorrow.  Binaries do differ.
>From gcc-bugs-return-520711-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 13:51:01 2016
Return-Path: <gcc-bugs-return-520711-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 47014 invoked by alias); 31 Mar 2016 13:51:01 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 46685 invoked by uid 55); 31 Mar 2016 13:50:48 -0000
From: "abel at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/64411] ICE: in verify_target_availability, at sel-sched.c:1577 with -Os -mcmodel=medium -fPIC -fschedule-insns -fselective-scheduling
Date: Thu, 31 Mar 2016 13:51:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: abel at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: abel at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-64411-4-tRY6k7bvkP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64411-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64411-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2016-03/txt/msg03751.txt.bz2
Content-length: 1205

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

--- Comment #4 from Andrey Belevantsev <abel at gcc dot gnu.org> ---
Author: abel
Date: Thu Mar 31 13:50:15 2016
New Revision: 234620

URL: https://gcc.gnu.org/viewcvs?rev=234620&root=gcc&view=rev
Log:
        Backport from mainline
        2016-03-15  Andrey Belevantsev  <abel@ispras.ru>

        gcc/
        PR target/64411
        * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
        factored out from ...
        (sched_analyze_insn): ... here.
        * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
        * sel-sched-ir.c (setup_id_implicit_regs): New function, use
        get_implicit_reg_pending_clobbers in it.
        (setup_id_reg_sets): Use setup_id_implicit_regs.
        (deps_init_id): Ditto.

        testsuite/
        PR target/64411
        * gcc.target/i386/pr64411.C: New test.


Added:
    branches/gcc-5-branch/gcc/testsuite/gcc.target/i386/pr64411.C
Modified:
    branches/gcc-5-branch/gcc/ChangeLog
    branches/gcc-5-branch/gcc/sched-deps.c
    branches/gcc-5-branch/gcc/sched-int.h
    branches/gcc-5-branch/gcc/sel-sched-ir.c
    branches/gcc-5-branch/gcc/testsuite/ChangeLog
>From gcc-bugs-return-520712-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 31 13:52:42 2016
Return-Path: <gcc-bugs-return-520712-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 53618 invoked by alias); 31 Mar 2016 13: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 53604 invoked by uid 89); 31 Mar 2016 13:52:41 -0000
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.2 required=5.0 tests=AWL,BAYES_50,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammyS18, philippe, Crash, 19877
X-HELO: sam.airs.com
Received: from sam.airs.com (HELO sam.airs.com) (64.13.145.90) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 31 Mar 2016 13:52:31 +0000
Received: (qmail 47703 invoked by uid 10); 31 Mar 2016 13:52:29 -0000
Received: (qmail 28254 invoked by uid 500); 31 Mar 2016 13:52:22 -0000
From: Ian Lance Taylor <ian@airs.com>
To: Philippe Daouadi <blastrock0@free.fr>
Cc: dj@redhat.com, gcc-bugs@gcc.gnu.org
Subject: Re: [BUG] Crash when demangling with libiberty
References: <56FC1576.80701@free.fr>
Date: Thu, 31 Mar 2016 13:52:00 -0000
In-Reply-To: <56FC1576.80701@free.fr> (Philippe Daouadi's message of "Wed, 30	Mar 2016 20:05:42 +0200")
Message-ID: <m3twjmeove.fsf@pepe.airs.com>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-SW-Source: 2016-03/txt/msg03752.txt.bz2
Content-length: 947

Philippe Daouadi <blastrock0@free.fr> writes:

> I have been given these e-mail addresses by Nick Clifton after
> reporting a bug on binutils here:
> https://sourceware.org/bugzilla/show_bug.cgi?id\x19877 . The bug is in
> libiberty, according to him.
>
> The bug boils down to this command (and objdump, and lldb) crashing:
>
>     c++filt
> _ZSt4moveIRZN11tconcurrent6futureIvE4thenIZ5awaitIS2_EDaOT_EUlRKS6_E_EENS1_INSt5decayIDTclfp_defpTEEE4typeEEES7_EUlvE_EONSt16remove_referenceIS6_E4typeES7_
>
> I'm using c++filt from binutils 2.26 and have gcc 5.3.1-8 on a debian
> unstable if it is of any matter.

Please refile your bug report at https://gcc.gnu.org/bugzilla .  If at
all possible, please include the preprocessed source code that produces
the symbol (you can get this by passing the --save-temps option to the
compiler; we want the .ii file) and please include complete details on
the compiler that produced the symbol.  Thanks.

Ian


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

end of thread, other threads:[~2016-03-30 18:18 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-40625-4@http.gcc.gnu.org/bugzilla/>
2010-12-16 13:27 ` [Bug testsuite/40625] [4.5/4.6 Regression] Errors in "make -k check-gcc RUNTESTFLAGS=plugin.exp" rguenth at gcc dot gnu.org
2011-01-15  1:10 ` dirtyepic at gentoo dot org
2011-04-28 15:44 ` [Bug testsuite/40625] [4.5/4.6/4.7 " rguenth at gcc dot gnu.org
2012-07-02 13:56 ` [Bug testsuite/40625] [4.6/4.7/4.8 " rguenth at gcc dot gnu.org
2013-04-12 15:17 ` [Bug testsuite/40625] [4.7/4.8/4.9 " jakub at gcc dot gnu.org
2014-06-12 13:45 ` [Bug testsuite/40625] [4.7/4.8/4.9/4.10 " rguenth at gcc dot gnu.org
2014-12-19 13:38 ` [Bug testsuite/40625] [4.8/4.9/5 " jakub at gcc dot gnu.org
2015-06-23  8:21 ` [Bug testsuite/40625] [4.8/4.9/5/6 " rguenth at gcc dot gnu.org
2015-06-26 20:10 ` [Bug testsuite/40625] [4.9/5/6 " jakub at gcc dot gnu.org
2015-06-26 20:36 ` jakub at gcc dot gnu.org
2016-03-30 18:18 ` law at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).