[Bug libstdc++/87544] alloc-size-larger-than incorrectly triggered

2019-05-11 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87544 --- Comment #20 from Marc Glisse --- I created bug 90436 about the excessive checking so it does not distract from the warning that this bug is about (and doesn't get lost either).

[Bug libstdc++/90436] New: Redundant size checking in vector

2019-05-11 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90436 Bug ID: 90436 Summary: Redundant size checking in vector Product: gcc Version: 10.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: normal Priority:

[Bug middle-end/89230] Bogus uninited usage warning

2019-05-11 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89230 --- Comment #7 from Eric Gallager --- (In reply to Andrew Pinski from comment #3) > (In reply to lavr from comment #2) > > Okay, but "d" points to a clearly separate storage on stack within a local > > frame. None of the pointers passed to (s)pr

[Bug target/63793] -mcmodel=medium in gfortran on x86_64 emits references that are RIP relative (instead of using the GOT)

2019-05-11 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63793 Eric Gallager changed: What|Removed |Added Component|middle-end |target --- Comment #21 from Eric Gallage

[Bug middle-end/90435] gcc generate infinite loop code when using -O2 or -O3

2019-05-11 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90435 --- Comment #3 from Marc Glisse --- (In reply to 庞庆源 from comment #2) > gcc pmalloc.c -O2 -o ppp -ldl -fno-tree-loop-distribute-patterns > -fno-strict-aliasing > Still not work. -fno-builtin (the malloc+memset -> calloc is not part of loop dist

[Bug lto/61048] compiling with -fsanitize=address crashes GCC if pointers are used

2019-05-11 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61048 Eric Gallager changed: What|Removed |Added CC||dodji at gcc dot gnu.org,

[Bug middle-end/90435] gcc generate infinite loop code when using -O2 or -O3

2019-05-11 Thread pangqingyuan1991 at 163 dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90435 --- Comment #2 from 庞庆源 --- gcc pmalloc.c -O2 -o ppp -ldl -fno-tree-loop-distribute-patterns -fno-strict-aliasing Still not work. Why I don't see stack overflow if this will trigger function loop calling

[Bug middle-end/90435] gcc generate infinite loop code when using -O2 or -O3

2019-05-11 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90435 --- Comment #1 from Andrew Pinski --- Your implementation of calloc will be calling itself due to the optimization of malloc followed by memset into calloc. You need to use -fno-tree-loop-distribute-patterns for that case since your implementat

[Bug c/90435] New: gcc generate infinite loop code when using -O2 or -O3

2019-05-11 Thread pangqingyuan1991 at 163 dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90435 Bug ID: 90435 Summary: gcc generate infinite loop code when using -O2 or -O3 Product: gcc Version: 8.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Compon

[Bug bootstrap/90418] [10 Regression] powerpc-darwin9 bootstrap fails after r271013

2019-05-11 Thread iains at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90418 --- Comment #10 from Iain Sandoe --- (In reply to David Edelsohn from comment #9) > Changing > > /* Extra stack adjustment for exception handler return. */ > if (crtl->calls_eh_return) > emit_insn (gen_addsi3 (stack_pointer_rtx, stack_p

[Bug bootstrap/90418] [10 Regression] powerpc-darwin9 bootstrap fails after r271013

2019-05-11 Thread dje at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90418 --- Comment #9 from David Edelsohn --- Changing /* Extra stack adjustment for exception handler return. */ if (crtl->calls_eh_return) emit_insn (gen_addsi3 (stack_pointer_rtx, stack_pointer_rtx, EH_RETURN_STAC

[Bug tree-optimization/42970] Missed unused function return value elimination

2019-05-11 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42970 Eric Gallager changed: What|Removed |Added Keywords||patch URL|

[Bug lto/90434] New: [regression from 8.x] Incorrect code generation for __builtin_strcmp with LTO and freestanding binary

2019-05-11 Thread andrew.cooper3 at citrix dot com
--version gcc (GCC) 8.3.1 20190511 ... $ PATH=/local/bin/gcc-9.x/bin:$PATH gcc --version gcc (GCC) 9.1.1 20190511 The 8.x version works correctly, while the 9.x version results in incorrect code generation, which leads to a crash when executed. Both versions work fine when LTO is not in use. The

[Bug target/90379] Gcc 9.1 fails "make check" on linux due to missing MacOS-specific header file

2019-05-11 Thread iains at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90379 --- Comment #11 from Iain Sandoe --- Author: iains Date: Sat May 11 20:19:31 2019 New Revision: 271098 URL: https://gcc.gnu.org/viewcvs?rev=271098&root=gcc&view=rev Log: fixincludes - fix PR90379 One should not provide test_text for wrap style

[Bug bootstrap/89864] gcc fails to build/bootstrap with XCode 10.2

2019-05-11 Thread iains at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89864 --- Comment #95 from Iain Sandoe --- Author: iains Date: Sat May 11 20:19:31 2019 New Revision: 271098 URL: https://gcc.gnu.org/viewcvs?rev=271098&root=gcc&view=rev Log: fixincludes - fix PR90379 One should not provide test_text for wrap style

[Bug c++/67371] Never executed "throw" in constexpr function fails to compile

2019-05-11 Thread fiesh at zefix dot tv
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67371 fiesh at zefix dot tv changed: What|Removed |Added CC||fiesh at zefix dot tv --- Comment

[Bug c++/90426] [P0732] Error constructing non-type template parameter from a prvalue

2019-05-11 Thread mateusz.pusz at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90426 --- Comment #5 from Mateusz Pusz --- (In reply to Mateusz Pusz from comment #3) > (In reply to Marek Polacek from comment #1) > > This compiles if I use {} instead of (): > > > > struct gram : unit {}; > > (In reply to Marek Polacek from commen

[Bug bootstrap/90418] [10 Regression] powerpc-darwin9 bootstrap fails after r271013

2019-05-11 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90418 --- Comment #8 from Segher Boessenkool --- It also fails all over on powerpc-linux. Pretty much all targets just do something like /* Extra stack adjustment for exception handler return. */ if (crtl->calls_eh_return) emit_insn (gen_add

[Bug c++/90426] [P0732] Error constructing non-type template parameter from a prvalue

2019-05-11 Thread mateusz.pusz at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90426 --- Comment #4 from Mateusz Pusz --- (In reply to Marek Polacek from comment #1) > This compiles if I use {} instead of (): > > struct gram : unit {}; I know that it compiles fine in the following cases: struct gram : unit {}; struct gram : uni

[Bug c++/90426] [P0732] Error constructing non-type template parameter from a prvalue

2019-05-11 Thread mateusz.pusz at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90426 --- Comment #3 from Mateusz Pusz --- (In reply to Marek Polacek from comment #1) > This compiles if I use {} instead of (): > > struct gram : unit {}; (In reply to Marek Polacek from comment #2) > I think this is invalid. [temp.arg]p2: > "In a

[Bug tree-optimization/42970] Missed unused function return value elimination

2019-05-11 Thread jamborm at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42970 --- Comment #7 from Martin Jambor --- (In reply to Eric Gallager from comment #6) > > Stage 1 has opened again. And therefore I have submitted a cleaned-up version for review: https://gcc.gnu.org/ml/gcc-patches/2019-05/msg00472.html

[Bug translation/90149] diagnostics containing BIT_FIELD_REF don't conform to diagnostics guideline

2019-05-11 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90149 --- Comment #13 from Martin Sebor --- I had started by doing that but gave up when I noticed that there are lots of them, some like this: if (TREE_CODE (expr) == REALPART_EXPR || TREE_CODE (expr) == IMAGPART_EXPR || TREE_CODE (expr

[Bug testsuite/81058] FAIL: gcc.target/i386/avx512bw-vpmovu?swb-1.c scan-assembler-times vpmovu?swb.*

2019-05-11 Thread iains at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81058 --- Comment #8 from Iain Sandoe --- Author: iains Date: Sat May 11 15:05:58 2019 New Revision: 271097 URL: https://gcc.gnu.org/viewcvs?rev=271097&root=gcc&view=rev Log: testsuite, darwin] Fix PR81058. The tests fail because Darwin indirects com

[Bug target/90379] Gcc 9.1 fails "make check" on linux due to missing MacOS-specific header file

2019-05-11 Thread iains at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90379 --- Comment #10 from Iain Sandoe --- (In reply to marc from comment #9) > The patch does no longer apply to current gcc-9-branch, which, however, > still has the problem. The_Atomic stuff is easy to spot, though, and I can > confirm this fixes it

[Bug target/90379] Gcc 9.1 fails "make check" on linux due to missing MacOS-specific header file

2019-05-11 Thread marc at kdab dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90379 marc at kdab dot com changed: What|Removed |Added CC||marc at kdab dot com --- Comment #

[Bug fortran/61968] ICE (assembly failure) due to wrongly generating a vtable for TYPE(*) / BT_ASSUMED_TYPE

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

[Bug tree-optimization/90433] New: POINTER_DIFF_EXPR in vectorizer prologue

2019-05-11 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90433 Bug ID: 90433 Summary: POINTER_DIFF_EXPR in vectorizer prologue Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-opti

[Bug target/81266] FAIL: 30_threads/thread/native_handle/typesizes.cc execution test on darwin

2019-05-11 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81266 Jonathan Wakely changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug target/81266] FAIL: 30_threads/thread/native_handle/typesizes.cc execution test on darwin

2019-05-11 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81266 --- Comment #8 from Jonathan Wakely --- Author: redi Date: Sat May 11 11:38:51 2019 New Revision: 271095 URL: https://gcc.gnu.org/viewcvs?rev=271095&root=gcc&view=rev Log: PR libstdc++/81266 fix std::thread::native_handle_type test The test use

[Bug target/81266] FAIL: 30_threads/thread/native_handle/typesizes.cc execution test on darwin

2019-05-11 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81266 --- Comment #7 from Jonathan Wakely --- Author: redi Date: Sat May 11 11:35:59 2019 New Revision: 271094 URL: https://gcc.gnu.org/viewcvs?rev=271094&root=gcc&view=rev Log: PR libstdc++/81266 fix std::thread::native_handle_type test The test use

[Bug target/81266] FAIL: 30_threads/thread/native_handle/typesizes.cc execution test on darwin

2019-05-11 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81266 Jonathan Wakely changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug c++/59813] tail-call elimination didn't fire for left-shift of char to cout

2019-05-11 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59813 --- Comment #16 from Jakub Jelinek --- Author: jakub Date: Sat May 11 09:33:22 2019 New Revision: 271093 URL: https://gcc.gnu.org/viewcvs?rev=271093&root=gcc&view=rev Log: PR c++/59813 * config/aarch64/aarch64.c (aarch64_expand_e

[Bug fortran/90430] [9 Regression] internal procedure target rejected in initialization

2019-05-11 Thread janus at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90430 janus at gcc dot gnu.org changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|--

[Bug fortran/90355] Uninitialized read in gfortran.dg/ISO_Fortran_binding_4.f90 test

2019-05-11 Thread pault at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90355 Paul Thomas changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug fortran/90352] [9/10 Regression] ICE on BIND(C) subroutine with characters with len /= 1

2019-05-11 Thread pault at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90352 Paul Thomas changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug target/81266] FAIL: 30_threads/thread/native_handle/typesizes.cc execution test on darwin

2019-05-11 Thread iains at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81266 Iain Sandoe changed: What|Removed |Added Target Milestone|--- |8.4 --- Comment #6 from Iain Sandoe --- F

[Bug fortran/90093] Extended C interop: optional argument incorrectly identified as PRESENT

2019-05-11 Thread pault at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90093 Paul Thomas changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug fortran/90352] [9/10 Regression] ICE on BIND(C) subroutine with characters with len /= 1

2019-05-11 Thread pault at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90352 --- Comment #9 from Paul Thomas --- Author: pault Date: Sat May 11 07:49:52 2019 New Revision: 271090 URL: https://gcc.gnu.org/viewcvs?rev=271090&root=gcc&view=rev Log: 2019-05-11 Paul Thomas PR fortran/90093 * gfortran.dg/IS

[Bug fortran/90093] Extended C interop: optional argument incorrectly identified as PRESENT

2019-05-11 Thread pault at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90093 --- Comment #5 from Paul Thomas --- Author: pault Date: Sat May 11 07:49:52 2019 New Revision: 271090 URL: https://gcc.gnu.org/viewcvs?rev=271090&root=gcc&view=rev Log: 2019-05-11 Paul Thomas PR fortran/90093 * gfortran.dg/IS

[Bug fortran/90355] Uninitialized read in gfortran.dg/ISO_Fortran_binding_4.f90 test

2019-05-11 Thread pault at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90355 --- Comment #4 from Paul Thomas --- Author: pault Date: Sat May 11 07:49:52 2019 New Revision: 271090 URL: https://gcc.gnu.org/viewcvs?rev=271090&root=gcc&view=rev Log: 2019-05-11 Paul Thomas PR fortran/90093 * gfortran.dg/IS

[Bug fortran/90352] [9/10 Regression] ICE on BIND(C) subroutine with characters with len /= 1

2019-05-11 Thread pault at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90352 --- Comment #8 from Paul Thomas --- Author: pault Date: Sat May 11 07:47:32 2019 New Revision: 271089 URL: https://gcc.gnu.org/viewcvs?rev=271089&root=gcc&view=rev Log: 2019-05-11 Paul Thomas PR fortran/90093 * trans-decl.c (

[Bug fortran/90355] Uninitialized read in gfortran.dg/ISO_Fortran_binding_4.f90 test

2019-05-11 Thread pault at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90355 --- Comment #3 from Paul Thomas --- Author: pault Date: Sat May 11 07:47:32 2019 New Revision: 271089 URL: https://gcc.gnu.org/viewcvs?rev=271089&root=gcc&view=rev Log: 2019-05-11 Paul Thomas PR fortran/90093 * trans-decl.c (

[Bug fortran/90093] Extended C interop: optional argument incorrectly identified as PRESENT

2019-05-11 Thread pault at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90093 --- Comment #4 from Paul Thomas --- Author: pault Date: Sat May 11 07:47:32 2019 New Revision: 271089 URL: https://gcc.gnu.org/viewcvs?rev=271089&root=gcc&view=rev Log: 2019-05-11 Paul Thomas PR fortran/90093 * trans-decl.c (

[Bug fortran/90430] [9 Regression] internal procedure target rejected in initialization

2019-05-11 Thread janus at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90430 --- Comment #3 from janus at gcc dot gnu.org --- Also I have just looked into the Fortran 2018 standard, and I don't think the situation has changed there: R1518 initial-proc-target is procedure-name C1519 (R1518) The procedure-name shall be th

[Bug fortran/90430] [9 Regression] internal procedure target rejected in initialization

2019-05-11 Thread janus at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90430 --- Comment #2 from janus at gcc dot gnu.org --- I think the test case is actually invalid (at least wrt Fortran 2008), see PR 85537 comment 18 (and 20).

[Bug pch/90326] Using any precompiled header breaks definition of FLT_MAX

2019-05-11 Thread asmith at feralinteractive dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90326 Alex Smith changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug translation/90149] diagnostics containing BIT_FIELD_REF don't conform to diagnostics guideline

2019-05-11 Thread rguenther at suse dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90149 --- Comment #12 from rguenther at suse dot de --- On May 10, 2019 10:34:03 PM GMT+02:00, "msebor at gcc dot gnu.org" wrote: >https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90149 > >Martin Sebor changed: > > What|Removed