[Bug c++/80265] __builtin_{memcmp,memchr,strlen} are not usable in constexpr functions

2019-01-19 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80265 --- Comment #33 from Marc Glisse --- (In reply to Jonathan Wakely from comment #8) > I think there was a bug report in the last month or so asking for some > builtin to detect when we're in a constexpr context. Now that we have (__builtin_)is_co

[Bug c++/80265] __builtin_{memcmp,memchr,strlen} are not usable in constexpr functions

2019-01-19 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80265 --- Comment #34 from Jakub Jelinek --- Created attachment 45467 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45467&action=edit gcc9-pr86590.patch Untested patch to use __builtin_is_constant_evaluated() here. I believe it should help, th

[Bug fortran/88902] ICE: Segmentation fault (in DFS::DFS_write_tree_body)

2019-01-19 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88902 --- Comment #7 from Jakub Jelinek --- Author: jakub Date: Sat Jan 19 08:43:12 2019 New Revision: 268091 URL: https://gcc.gnu.org/viewcvs?rev=268091&root=gcc&view=rev Log: PR fortran/88902 * trans-decl.c (gfc_get_symbol_decl): Don

[Bug fortran/88902] ICE: Segmentation fault (in DFS::DFS_write_tree_body)

2019-01-19 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88902 --- Comment #8 from Jakub Jelinek --- Fixed on the trunk so far.

[Bug c++/80265] __builtin_{memcmp,memchr,strlen} are not usable in constexpr functions

2019-01-19 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80265 --- Comment #35 from Marc Glisse --- I just noticed that Jonathan has already written such a patch in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86590#c28 but didn't commit it (maybe because is_constant_evaluated was not committed yet, or becau

[Bug libstdc++/86590] Codegen is poor when passing std::string by value with _GLIBCXX_EXTERN_TEMPLATE undefined

2019-01-19 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86590 --- Comment #31 from Marc Glisse --- Adding "inline" to _M_construct does convince the inliner to proceed, but I don't know if that would cause too much bloat in other code, it would be best if IPA somehow guessed that this case is interesting wi

[Bug fortran/88871] [9 regression] ICE segmentation fault in f951

2019-01-19 Thread tkoenig at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88871 --- Comment #15 from Thomas Koenig --- Author: tkoenig Date: Sat Jan 19 11:03:28 2019 New Revision: 268092 URL: https://gcc.gnu.org/viewcvs?rev=268092&root=gcc&view=rev Log: 2019-01-17 Thomas Koenig PR fortran/88871 * resolve

[Bug fortran/88871] [9 regression] ICE segmentation fault in f951

2019-01-19 Thread tkoenig at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88871 Thomas Koenig changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug gcov-profile/83599] [GCOV] A If TRUE statement lead the return statement has wrong number of execution in gcov

2019-01-19 Thread yangyibiao at nju dot edu.cn
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83599 --- Comment #2 from Yibiao Yang --- (In reply to Martin Liška from comment #1) > Thanks for another report, in this case the code is invalid: > > gcc pr83599.c -Wreturn-type > pr83599.c: In function ‘func’: > pr83599.c:7:1: warning: control rea

[Bug rtl-optimization/88922] Merge identical constants with different modes

2019-01-19 Thread ebotcazou at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88922 Eric Botcazou changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c++/80265] __builtin_{memcmp,memchr,strlen} are not usable in constexpr functions

2019-01-19 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80265 --- Comment #36 from Jakub Jelinek --- (In reply to Marc Glisse from comment #35) > I just noticed that Jonathan has already written such a patch in > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86590#c28 but didn't commit it > (maybe because is

[Bug middle-end/32628] [4.3 Regression] bogus integer overflow warning

2019-01-19 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=32628 --- Comment #12 from Marc Glisse --- Nowadays, we consider that we can only access half of the address space, and you can only add up to PTRDIFF_MAX to a pointer, so in some sense this does overflow. I am thinking of removing the testcase, which

[Bug gcov-profile/88924] New: [GCOV] Wrong frequencies when there is complicated if expressions in gcov

2019-01-19 Thread yangyibiao at nju dot edu.cn
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88924 Bug ID: 88924 Summary: [GCOV] Wrong frequencies when there is complicated if expressions in gcov Product: gcc Version: 7.3.0 Status: UNCONFIRMED Severity: norma

[Bug lto/88925] New: address of static string changes

2019-01-19 Thread ssbssa at yahoo dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88925 Bug ID: 88925 Summary: address of static string changes Product: gcc Version: 8.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto As

[Bug fortran/56789] Handling of contiguous dummy arguments

2019-01-19 Thread tkoenig at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56789 --- Comment #23 from Thomas Koenig --- Author: tkoenig Date: Sat Jan 19 20:06:41 2019 New Revision: 268096 URL: https://gcc.gnu.org/viewcvs?rev=268096&root=gcc&view=rev Log: 2018-01-19 Thomas Koenig Paul Thomas PR fortran/5

[Bug fortran/56789] Handling of contiguous dummy arguments

2019-01-19 Thread tkoenig at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56789 Thomas Koenig changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug fortran/77960] ICE in gfc_conv_ss_startstride, at fortran/trans-array.c:3966

2019-01-19 Thread kargl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77960 --- Comment #3 from kargl at gcc dot gnu.org --- Author: kargl Date: Sat Jan 19 21:18:26 2019 New Revision: 268097 URL: https://gcc.gnu.org/viewcvs?rev=268097&root=gcc&view=rev Log: 2019-01-19 Steven G. Kargl PR fortran/77960

[Bug fortran/77960] ICE in gfc_conv_ss_startstride, at fortran/trans-array.c:3966

2019-01-19 Thread kargl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77960 kargl at gcc dot gnu.org changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--

[Bug fortran/24878] subroutine getting called illegally as a function

2019-01-19 Thread juergen.reuter at desy dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24878 Jürgen Reuter changed: What|Removed |Added CC||juergen.reuter at desy dot de --- Commen

[Bug fortran/25095] Disallowed intrinsic in initialization statement

2019-01-19 Thread juergen.reuter at desy dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25095 --- Comment #7 from Jürgen Reuter --- Indeed, ifort and PGI fortran flag this as an error in the implied DO expression. Nagfor flags it just as an extension.

[Bug fortran/25714] concat of strings create an extra temporary variable

2019-01-19 Thread juergen.reuter at desy dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25714 Jürgen Reuter changed: What|Removed |Added CC||juergen.reuter at desy dot de --- Commen

[Bug fortran/37835] -fno-automatic does not work for derived types with default initalizer

2019-01-19 Thread dominiq at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37835 --- Comment #7 from dominiq at gcc dot gnu.org --- Author: dominiq Date: Sat Jan 19 21:45:43 2019 New Revision: 268098 URL: https://gcc.gnu.org/viewcvs?rev=268098&root=gcc&view=rev Log: 2019-01-19 Dominique d'Humieres PR fortran/37835

[Bug fortran/37835] -fno-automatic does not work for derived types with default initalizer

2019-01-19 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37835 Dominique d'Humieres changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug fortran/86167] allocation variable length character array in derived type incorrect

2019-01-19 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86167 --- Comment #2 from Dominique d'Humieres --- This seems to have been fixed on trunk (9.0) around 2018-09-26.

[Bug debug/78685] -Og generates too many ""s

2019-01-19 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78685 --- Comment #15 from Eric Gallager --- (In reply to Tom de Vries from comment #13) > (In reply to Tom de Vries from comment #12) > > Created attachment 44343 [details] > > > [debug] Add fkeep-vars-live > > > Guality testing status: Og -fkeep-va

[Bug tree-optimization/88926] New: ivopts with some NOP conversions

2019-01-19 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88926 Bug ID: 88926 Summary: ivopts with some NOP conversions Product: gcc Version: 9.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: enhancement Priori

[Bug target/38182] stddef.h assumes machinee/ansi.h defines _ANSI_H_

2019-01-19 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38182 --- Comment #18 from Eric Gallager --- (In reply to jos...@codesourcery.com from comment #16) > Subject: Re: stddef.h assumes machinee/ansi.h defines > _ANSI_H_ > > On Mon, 7 Sep 2009, prlw1 at cam dot ac dot uk wrote: > > > I just got stuck

[Bug bootstrap/51450] configure's test for -fno-rtti -fno-exceptions broken

2019-01-19 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51450 --- Comment #5 from Eric Gallager --- Is this an issue with upstream libtool, too, or just GCC's patched version of it?

[Bug c/41045] Extended asm with C operands doesn’t work at top level

2019-01-19 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41045 --- Comment #11 from Eric Gallager --- (In reply to Steven Fuerst from comment #9) > > Of course... since this is not exactly the intent of the (section()) > attribute, tricks like this may break at any time. "not exactly the intent" is a bit o

[Bug go/88927] New: [9 Regression] Bootstrap failure on arm in libgo

2019-01-19 Thread jakub at gcc dot gnu.org
directory '/builddir/build/BUILD/gcc-9.0.0-20190119/obj-armv7hl-redhat-linux-gnueabi/armv7hl-redhat-linux-gnueabi/libgo' make[4]: *** [Makefile:2833: internal/cpu.lo] Error 1 make[3]: *** [Makefile:2231: all-recursive] Error 1 make[3]: Leaving directory '/builddir/build/BUILD/gcc-9

[Bug go/88927] [9 Regression] Bootstrap failure on arm in libgo starting with r268084

2019-01-19 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88927 Jakub Jelinek changed: What|Removed |Added Target||armv7hl-unknown-linux-gnuea

[Bug go/88927] [9 Regression] Bootstrap failure on arm in libgo starting with r268084

2019-01-19 Thread ian at airs dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88927 --- Comment #1 from Ian Lance Taylor --- This is likely fixed by https://golang.org/cl/158717.

[Bug go/88927] [9 Regression] Bootstrap failure on arm in libgo starting with r268084

2019-01-19 Thread jakub at gcc dot gnu.org
n.go | sed -e 's/[^ ]*\.gox//g' -e 's/[^ ]*\.dep//'`; /bin/sh ./libtool --tag GO --mode=compile /builddir/build/BUILD/gcc-9.0.0-20190119/obj-armv7hl-redhat-linux-gnueabi/./gcc/gccgo -B/builddir/build/BUILD/gcc-9.0.0-20190119/obj-armv7hl-redhat-linux-gnueabi/./gcc/ -B/usr/armv7hl-re