[Bug tree-optimization/93266] New: strlen pass could optimize strncpy with known strlen (src) == 0 into memset

2020-01-14 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93266 Bug ID: 93266 Summary: strlen pass could optimize strncpy with known strlen (src) == 0 into memset Product: gcc Version: 10.0 Status: UNCONFIRMED Severity:

[Bug ipa/92749] [10 Regression] warning: inlining failed in call to ‘salsa20’: --param max-inline-insns-single limit reached after r276516

2020-01-14 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92749 --- Comment #2 from Jan Hubicka --- This is intentional, we got less aggressive at inlining inline functions for -O2 (since we do not need to do all inlining we want for -O3 when we have independent set of attributes). Indeed -Winline -Werror

[Bug ipa/92240] [10 regression] ICE in duplicate, at ipa-prop.c:3883

2020-01-14 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92240 Jan Hubicka changed: What|Removed |Added CC||mjambor at suse dot cz --- Comment #5

[Bug rtl-optimization/93264] [10 Regression] ICE in cfg_layout_redirect_edge_and_branch_force, at cfgrtl.c:4522

2020-01-14 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93264 Richard Biener changed: What|Removed |Added Target Milestone|--- |10.0

[Bug lto/88081] [8/9/10 Regression] ICE in lto_varpool_replace_node, at lto/lto-symtab.c:109

2020-01-14 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88081 Jan Hubicka changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c/93265] New: memcmp comparisons of structs wrapping a primitive type not as compact/efficient as direct comparisons of the underlying primitive type under -Os

2020-01-14 Thread pskocik at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93265 Bug ID: 93265 Summary: memcmp comparisons of structs wrapping a primitive type not as compact/efficient as direct comparisons of the underlying primitive type under -Os

[Bug tree-optimization/93262] [8/9/10 Regression] DSE memstar call trimming affecting -D_FORTIFY_SOURCE since r244444

2020-01-14 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93262 Jakub Jelinek changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug lto/91576] [10 Regression] error: invalid conversion in gimple call since r272749

2020-01-14 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91576 --- Comment #18 from Jan Hubicka --- OK, other testcases does not reproduce for me. However if they do it seems like fallout from the change dropping type checking from call statements.

[Bug lto/91576] [10 Regression] error: invalid conversion in gimple call since r272749

2020-01-14 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91576 --- Comment #17 from Jan Hubicka --- Created attachment 47651 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47651=edit proposed patch This is patch I plan to test which fixes the last testcase. It adds warning about TREE_ADDRESSABLE

[Bug tree-optimization/93258] [10 regression] Missed constant folding from constructor

2020-01-14 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93258 --- Comment #2 from Martin Liška --- > Btw, on trunk I see it optimized, maybe some recent CTOR "fixing" fixed it > again? Can you double-check? > > If it's fixed again I suggest to add the testcase (ck should be elided > in the assembly?) I

[Bug c++/90916] [10 Regression] ICE in retrieve_specialization, at cp/pt.c:1258

2020-01-14 Thread nathan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90916 Nathan Sidwell changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug tree-optimization/65178] incorrect -Wmaybe-uninitialized when using nested loops

2020-01-14 Thread winter-...@bfw-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65178 --- Comment #16 from Leon Winter --- I just checked again with gcc 9.2.1 and the issue disappeared.

[Bug lto/91576] [10 Regression] error: invalid conversion in gimple call since r272749

2020-01-14 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91576 --- Comment #16 from Jan Hubicka --- OK, i get an ICE because type is not compatible with its main variant. the two types are: constant 384> unit-size constant 48> align:64 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type

[Bug rtl-optimization/93264] New: [10 Regression] ICE in cfg_layout_redirect_edge_and_branch_force, at cfgrtl.c:4522

2020-01-14 Thread zhroma at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93264 Bug ID: 93264 Summary: [10 Regression] ICE in cfg_layout_redirect_edge_and_branch_force, at cfgrtl.c:4522 Product: gcc Version: 10.0 Status:

[Bug tree-optimization/93262] [8/9/10 Regression] DSE memstar call trimming affecting -D_FORTIFY_SOURCE since r244444

2020-01-14 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93262 --- Comment #2 from Jakub Jelinek --- Untested trunk fix on top of the PR93249 fix, so won't apply cleanly to older stuff, will need reindentation: --- tree-ssa-dse.c.jj2 2020-01-14 12:13:39.900589819 +0100 +++ tree-ssa-dse.c 2020-01-14

[Bug tree-optimization/93258] [10 regression] Missed constant folding from constructor

2020-01-14 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93258 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug tree-optimization/93258] [10 regression] Missed constant folding from constructor

2020-01-14 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93258 Richard Biener changed: What|Removed |Added Keywords||missed-optimization Target

[Bug tree-optimization/93262] [8/9/10 Regression] DSE memstar call trimming affecting -D_FORTIFY_SOURCE since r244444

2020-01-14 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93262 Richard Biener changed: What|Removed |Added Keywords||wrong-code

[Bug tree-optimization/92765] [10 Regression] Wrong code caused by folding of -Wstring-compare since r276773

2020-01-14 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92765 --- Comment #23 from Richard Biener --- (In reply to Martin Sebor from comment #22) > I've been going through the test cases here. IIUC, the one in comment #10 > is a separate issue and should get its own bug. (Arguably, so is the one in >

[Bug fortran/93263] New: -fno-automatic and RECURSIVE

2020-01-14 Thread gcc.bugzilla at he dot sk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93263 Bug ID: 93263 Summary: -fno-automatic and RECURSIVE Product: gcc Version: 9.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran

[Bug c++/91501] Stack Optimization bug on function and lambda return

2020-01-14 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91501 --- Comment #6 from Andrew Pinski --- (In reply to BCartier from comment #5) > Thanks for the heads up, nice to know a fix could be possible. > > As for the const reference in doStuff, do you mean > > void __attribute__((noinline))

[Bug c++/91501] Stack Optimization bug on function and lambda return

2020-01-14 Thread baptiste.cartier at ertosgener dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91501 --- Comment #5 from BCartier --- Thanks for the heads up, nice to know a fix could be possible. As for the const reference in doStuff, do you mean void __attribute__((noinline)) doStuff(const struct TestStruct ) { ... } ? By doing so,

[Bug tree-optimization/93262] [8/9/10 Regression] DSE memstar call trimming affecting -D_FORTIFY_SOURCE since r244444

2020-01-14 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93262 Jakub Jelinek changed: What|Removed |Added Priority|P3 |P1 CC|

[Bug tree-optimization/93262] New: [8/9/10 Regression] DSE memstar call trimming affecting -D_FORTIFY_SOURCE since r244444

2020-01-14 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93262 Bug ID: 93262 Summary: [8/9/10 Regression] DSE memstar call trimming affecting -D_FORTIFY_SOURCE since r24 Product: gcc Version: 10.0 Status: UNCONFIRMED

[Bug c++/91501] Stack Optimization bug on function and lambda return

2020-01-14 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91501 --- Comment #4 from Andrew Pinski --- (In reply to Andrew Pinski from comment #3) > The problem is here: > /* Also strip a TARGET_EXPR that would force an extra copy. */ > if (TREE_CODE (*arg_p) == TARGET_EXPR) > { >

[Bug tree-optimization/93261] New: fold strstr(a, b) to zero when b is longer than a

2020-01-14 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93261 Bug ID: 93261 Summary: fold strstr(a, b) to zero when b is longer than a Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: enhancement Priority: P3

[Bug libgomp/93260] Deal with missing CUDA etc. installation in libgomp '-lcuda' etc. test cases

2020-01-14 Thread tschwinge at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93260 Thomas Schwinge changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c++/91501] Stack Optimization bug on function and lambda return

2020-01-14 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91501 --- Comment #3 from Andrew Pinski --- The problem is here: /* Also strip a TARGET_EXPR that would force an extra copy. */ if (TREE_CODE (*arg_p) == TARGET_EXPR) { tree init = TARGET_EXPR_INITIAL (*arg_p);

[Bug middle-end/93246] [8/9 Regression] Unexpected program behavior when -fsanitize=address and -O2/O3 used

2020-01-14 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93246 Richard Biener changed: What|Removed |Added Known to work||10.0 Summary|[8/9/10

[Bug tree-optimization/93249] [10 Regression] wrong code with __builtin_strncpy() copying empty string

2020-01-14 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93249 --- Comment #6 from Jakub Jelinek --- (In reply to Martin Sebor from comment #5) > "Proven not to contain any zeros in the first N bytes" where N is the source > offset in strncpy, would suggest the strlen pass might be more suitable for > this

[Bug libgomp/65155] libgomp-plugin-host_nonshm installation failure

2020-01-14 Thread tschwinge at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65155 Thomas Schwinge changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED CC|

[Bug tree-optimization/93249] [10 Regression] wrong code with __builtin_strncpy() copying empty string

2020-01-14 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93249 --- Comment #5 from Martin Sebor --- "Proven not to contain any zeros in the first N bytes" where N is the source offset in strncpy, would suggest the strlen pass might be more suitable for this transformation than DSE.

[Bug libgomp/93260] Deal with missing CUDA etc. installation in libgomp '-lcuda' etc. test cases

2020-01-14 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93260 --- Comment #1 from Jakub Jelinek --- Yeah. Just note that even the testing could be done when libcuda.so can't be dlopened, and in that case the test that need it should be UNSUPPORTED.

[Bug libgomp/93260] New: Deal with missing CUDA etc. installation in libgomp '-lcuda' etc. test cases

2020-01-14 Thread tschwinge at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93260 Bug ID: 93260 Summary: Deal with missing CUDA etc. installation in libgomp '-lcuda' etc. test cases Product: gcc Version: unknown Status: UNCONFIRMED Keywords:

[Bug tree-optimization/93249] [10 Regression] wrong code with __builtin_strncpy() copying empty string

2020-01-14 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93249 --- Comment #4 from Jakub Jelinek --- Created attachment 47650 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47650=edit gcc10-pr93249.patch Untested fix.

[Bug fortran/93253] Regression on non-standard hex constant syntax

2020-01-14 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93253 --- Comment #5 from Andrew Pinski --- By the way this is from the email thread that added that option (https://gcc.gnu.org/ml/fortran/2019-07/msg00054.html): The code for deprecated items is still present and can sometimes be used via the

[Bug tree-optimization/92029] [10 Regression] 'libgomp.fortran/pr90779.f90' ICE for nvptx offloading

2020-01-14 Thread tschwinge at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92029 Thomas Schwinge changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug tree-optimization/90838] Detect table-based ctz implementation

2020-01-14 Thread tnfchris at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90838 Tamar Christina changed: What|Removed |Added Status|ASSIGNED|RESOLVED CC|

[Bug middle-end/26163] [meta-bug] missed optimization in SPEC (2k17, 2k and 2k6 and 95)

2020-01-14 Thread tnfchris at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=26163 Bug 26163 depends on bug 90838, which changed state. Bug 90838 Summary: Detect table-based ctz implementation https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90838 What|Removed |Added

[Bug c++/91501] Stack Optimization bug on function and lambda return

2020-01-14 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91501 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug fortran/93253] Regression on non-standard hex constant syntax

2020-01-14 Thread fx at gnu dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93253 --- Comment #4 from Dave Love --- Apologies, I was misled by something else; that option does affect the result. However, this change in behaviour isn't mentioned in release notes, the error message doesn't point to that option, and

[Bug fortran/93253] Regression on non-standard hex constant syntax

2020-01-14 Thread fx at gnu dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93253 --- Comment #3 from Dave Love --- You wrote: > Do you read the document that comes with your compiler? Do you appreciate how that sort of response sounds is likely to drive people off (not for the first time)? I read two sets of release

[Bug c++/93259] New: Unsized temporary array initialization problem

2020-01-14 Thread m.cencora at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93259 Bug ID: 93259 Summary: Unsized temporary array initialization problem Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug testsuite/91955] g++.dg/warn/Wstringop-truncation-1.C should not rely on early inlinng

2020-01-14 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91955 --- Comment #2 from Martin Sebor --- Here's what I'm proposing: diff --git a/gcc/testsuite/g++.dg/warn/Wstringop-truncation-1.C b/gcc/testsuite/g++.dg/warn/Wstringop-truncation-1.C index 8f5e7da2c2e..8e2491ca2b3 100644 ---

[Bug testsuite/91955] g++.dg/warn/Wstringop-truncation-1.C should not rely on early inlinng

2020-01-14 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91955 Martin Sebor changed: What|Removed |Added Component|tree-optimization |testsuite --- Comment #1 from Martin

[Bug c++/91501] Stack Optimization bug on function and lambda return

2020-01-14 Thread baptiste.cartier at ertosgener dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91501 --- Comment #1 from BCartier --- Hello, I see this bug has been marked as unconfirmed, are there any updates about this issue ?

[Bug fortran/81095] fcheck=bounds and empty forall

2020-01-14 Thread markeggleston at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81095 markeggleston at gcc dot gnu.org changed: What|Removed |Added Last reconfirmed|2017-06-15 00:00:00 |2020-1-14

[Bug tree-optimization/93258] New: [10 regression] Missed constant folding from constructor

2020-01-14 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93258 Bug ID: 93258 Summary: [10 regression] Missed constant folding from constructor Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal

[Bug middle-end/93246] [8/9/10 Regression] Unexpected program behavior when -fsanitize=address and -O2/O3 used

2020-01-14 Thread cvs-commit at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93246 --- Comment #13 from CVS Commits --- The master branch has been updated by Richard Guenther : https://gcc.gnu.org/g:6b8df3e421b56bb7853a158b889f5e45611fd31f commit r10-5940-g6b8df3e421b56bb7853a158b889f5e45611fd31f Author: Richard Biener

[Bug ipa/69678] Missed function specialization + partial devirtualization opportunity

2020-01-14 Thread luoxhu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69678 luoxhu at gcc dot gnu.org changed: What|Removed |Added Status|NEW |RESOLVED

[Bug ipa/69678] Missed function specialization + partial devirtualization opportunity

2020-01-14 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69678 Martin Liška changed: What|Removed |Added CC||luoxhu at gcc dot gnu.org --- Comment #3

[Bug tree-optimization/15596] [8/9/10 Regression] Missed optimization with bitfields with return value

2020-01-14 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=15596 --- Comment #34 from Andrew Pinski --- (In reply to rguent...@suse.de from comment #33) > Something like init-regs I'd not like. But the above should be > detectable by store-merging in some way - store-merging can > merge across

[Bug ipa/93252] Warning for symbols that could be internalized

2020-01-14 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93252 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug fortran/93253] Regression on non-standard hex constant syntax

2020-01-14 Thread markeggleston at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93253 markeggleston at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED

[Bug middle-end/45274] __restrict__ type qualifier does not work on pointers to bitfields

2020-01-14 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45274 Andrew Pinski changed: What|Removed |Added Assignee|rguenth at gcc dot gnu.org |pinskia at gcc dot gnu.org ---

[Bug tree-optimization/15596] [8/9/10 Regression] Missed optimization with bitfields with return value

2020-01-14 Thread rguenther at suse dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=15596 --- Comment #33 from rguenther at suse dot de --- On Tue, 14 Jan 2020, pinskia at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=15596 > > Andrew Pinski changed: > >What|Removed

<    1   2