[Bug c++/97474] [8/9/10/11 Regression] produces wrong code with references to another field

2020-10-19 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97474 --- Comment #11 from Jakub Jelinek --- (In reply to Jakub Jelinek from comment #10) > I think the place in the C++ FE that adds restrict here is: > tree > type_passed_as (tree type) > { > /* Pass classes with copy ctors by invisible reference.

[Bug c++/97474] [8/9/10/11 Regression] produces wrong code with references to another field

2020-10-19 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97474 Jakub Jelinek changed: What|Removed |Added CC||jason at gcc dot gnu.org,

[Bug c/97445] Some fonctions marked static inline in Linux kernel are not inlined

2020-10-19 Thread hubicka at ucw dot cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97445 --- Comment #27 from Jan Hubicka --- > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97445 > > --- Comment #23 from Christophe Leroy --- > (In reply to Jan Hubicka from comment #19) > > > > It is always possible to always_inline functions that

Re: [Bug c/97445] Some fonctions marked static inline in Linux kernel are not inlined

2020-10-19 Thread Jan Hubicka
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97445 > > --- Comment #23 from Christophe Leroy --- > (In reply to Jan Hubicka from comment #19) > > > > It is always possible to always_inline functions that are intended to be > > always inlined. > > Honza > > Yes and I sent a patch for that to t

[Bug c++/97474] [8/9/10/11 Regression] produces wrong code with references to another field

2020-10-19 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97474 Richard Biener changed: What|Removed |Added CC||rguenth at gcc dot gnu.org

[Bug tree-optimization/97360] [11 Regression] ICE in range_on_exit

2020-10-19 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 --- Comment #31 from Richard Biener --- (In reply to Andrew Macleod from comment #30) > On 10/19/20 6:40 PM, bergner at gcc dot gnu.org wrote: > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 > > > > --- Comment #28 from Peter Bergner ---

[Bug rtl-optimization/97497] gcse wrong code generation with partial register clobbers

2020-10-19 Thread krebbel at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97497 --- Comment #4 from Andreas Krebbel --- Reading from symbol t uses the GOT pointer in r12. The call then partially clobbers r12 but does not affect the lower 32 bits where the GOT pointer resides. So the GOT pointer stays in fact live across the

[Bug c/97445] Some fonctions marked static inline in Linux kernel are not inlined

2020-10-19 Thread christophe.leroy at csgroup dot eu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97445 --- Comment #26 from Christophe Leroy --- In reality it is not perfect with GCC 9.2, but that's better, only two instances are unused. [root@po17688vm linux-powerpc]# ppc-linux-objdump -d vmlinux | grep get_order c00c0470 : c013e238 : c0225f68

[Bug bootstrap/97499] build dos cross compiler ICE

2020-10-19 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97499 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |WAITING Ever confirmed|0

[Bug tree-optimization/97496] [11 Regression] during during GIMPLE pass: cddce since r11-4005-g6c6e0cafa38cee83

2020-10-19 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97496 Richard Biener changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug c++/97438] [accepts-invalid] coroutines accepts prmomise type with both return_value() and return_void()

2020-10-19 Thread avi--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97438 --- Comment #5 from Avi Kivity --- No pressing reason to backport (for me gcc coroutines are useless anyway due to 95137)

[Bug rtl-optimization/97497] gcse wrong code generation with partial register clobbers

2020-10-19 Thread krebbel at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97497 --- Comment #3 from Andreas Krebbel --- Created attachment 49405 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49405&action=edit testcase

[Bug c/97445] Some fonctions marked static inline in Linux kernel are not inlined

2020-10-19 Thread christophe.leroy at csgroup dot eu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97445 --- Comment #24 from Christophe Leroy --- Created attachment 49403 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49403&action=edit pipe.i from build of fs/pipe.o with GCC 9.2

[Bug c/97445] Some fonctions marked static inline in Linux kernel are not inlined

2020-10-19 Thread christophe.leroy at csgroup dot eu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97445 --- Comment #25 from Christophe Leroy --- Created attachment 49404 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49404&action=edit pipe.s from build of fs/pipe.o with GCC 9.2

[Bug c/97445] Some fonctions marked static inline in Linux kernel are not inlined

2020-10-19 Thread christophe.leroy at csgroup dot eu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97445 --- Comment #23 from Christophe Leroy --- (In reply to Jan Hubicka from comment #19) > > It is always possible to always_inline functions that are intended to be > always inlined. > Honza Yes and I sent a patch for that to the Linux kernel, but

[Bug c++/95310] [concepts] Unrelated template parameters printed in diagnostic

2020-10-19 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95310 --- Comment #4 from Patrick Palka --- (In reply to ensadc from comment #3) > When verifying the fix, I noticed a new bug: Thanks for the heads up. > > > template requires true > using iter_reference_t = decltype(*T{}); > > template > s

[Bug c++/94799] [8/9/10 Regression] Calling a member template function fails

2020-10-19 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94799 --- Comment #14 from Marek Polacek --- Patch posted: https://gcc.gnu.org/pipermail/gcc-patches/2020-October/556517.html

[Bug bootstrap/97499] build dos cross compiler ICE

2020-10-19 Thread euloanty at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97499 --- Comment #1 from fdlbxtqi --- /gcc_dos_build/./gcc/xgcc -B/gcc_dos_build/./gcc/ -B/i586-pc-msdosdjgpp/i586-pc-msdosdjgpp/bin/ -B/i586-pc-msdosdjgpp/i586-pc-msdosdjgpp/lib/ -isystem /i586-pc-msdosdjgpp/i586-pc-msdosdjgpp/include -isystem /i586-

[Bug bootstrap/97499] New: build dos cross compiler ICE

2020-10-19 Thread euloanty at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97499 Bug ID: 97499 Summary: build dos cross compiler ICE Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap A

[Bug target/97473] Spilled function parameters not aligned properly on multiple non-x86 targets

2020-10-19 Thread hp at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97473 Hans-Peter Nilsson changed: What|Removed |Added CC||hp at gcc dot gnu.org --- Comment #

[Bug preprocessor/97498] New: #pragma GCC diagnostic ignored "-Wunused-function" inconsistent

2020-10-19 Thread matthewp515 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97498 Bug ID: 97498 Summary: #pragma GCC diagnostic ignored "-Wunused-function" inconsistent Product: gcc Version: 9.3.0 Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/97360] [11 Regression] ICE in range_on_exit

2020-10-19 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 --- Comment #30 from Andrew Macleod --- On 10/19/20 6:40 PM, bergner at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 > > --- Comment #28 from Peter Bergner --- > (In reply to Andrew Macleod from comment #25) >> Won

[Bug tree-optimization/97360] [11 Regression] ICE in range_on_exit

2020-10-19 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 --- Comment #29 from CVS Commits --- The master branch has been updated by Andrew Macleod : https://gcc.gnu.org/g:6e02de946125c36871bd4d8eff21f7f88f01a8aa commit r11-4080-g6e02de946125c36871bd4d8eff21f7f88f01a8aa Author: Andrew MacLeod Date:

[Bug tree-optimization/97360] [11 Regression] ICE in range_on_exit

2020-10-19 Thread bergner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 --- Comment #28 from Peter Bergner --- (In reply to Andrew Macleod from comment #25) > Wonder if it was suppose to be something like: > > >/* Vector pair and vector quad support. */ >if (TARGET_EXTRA_BUILTINS) > { > - tree oi

[Bug middle-end/94169] warn for modifying getenv() result

2020-10-19 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94169 --- Comment #4 from Martin Sebor --- Yes. The recent proposal to change their signature to return const char* was rejected in WG14 thanks to source compatibility concerns: http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2526.htm http://www.op

[Bug target/97481] GCC ice when build with RISCV on msys2

2020-10-19 Thread euloanty at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97481 --- Comment #5 from fdlbxtqi --- (In reply to Jim Wilson from comment #2) > riscv-unknown-linux-gnu is not a supported target. You must use either > riscv32-unknown-linux-gnu or riscv64-unknwon-linux-gnu. Both compilers > support both word size

[Bug c++/93297] internal compiler error: in set_constraints, at cp/constraint.cc:

2020-10-19 Thread john at mcfarlane dot name via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93297 --- Comment #8 from John McFarlane --- And this input can generate an ICE even with the -std=c++2a switch: template class a; template a()->a; template <2> using c a; static_assert(c{ } CL: g++ -v -std=c++2a source.cpp Online

[Bug libstdc++/55394] Using call_once without -lpthread compiles without warning

2020-10-19 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55394 Sergei Trofimovich changed: What|Removed |Added CC||slyfox at gcc dot gnu.org --- Comme

[Bug libstdc++/97485] std::call_once crashes at runtime on glibc if not linked to libpthread: terminate called after throwing an instance of 'std::system_error': what(): Unknown error -1

2020-10-19 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97485 Sergei Trofimovich changed: What|Removed |Added Resolution|--- |DUPLICATE Status|UNCONF

[Bug c++/93297] internal compiler error: in set_constraints, at cp/constraint.cc:

2020-10-19 Thread john at mcfarlane dot name via Gcc-bugs
me/john/gcc-head/ --enable-languages=c,c++,lto Thread model: posix Supported LTO compression algorithms: zlib gcc version 11.0.0 20201019 (experimental) (GCC) COLLECT_GCC_OPTIONS='-v' '-shared-libgcc' '-mtune=generic' '-march=x86-64' '-dumpdir' &#x

[Bug rtl-optimization/97497] gcse wrong code generation with partial register clobbers

2020-10-19 Thread rsandifo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97497 rsandifo at gcc dot gnu.org changed: What|Removed |Added CC||rsandifo at gcc dot gnu.org

[Bug preprocessor/97471] [11 Regression] ICE on using function-like macro as a non function-like macro since r11-338-g2a0225e47868fbfc

2020-10-19 Thread nathan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97471 Nathan Sidwell changed: What|Removed |Added Resolution|FIXED |--- Status|RESOLVED

[Bug libstdc++/97132] assume_aligned is not constexpr

2020-10-19 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97132 Jonathan Wakely changed: What|Removed |Added Resolution|--- |FIXED Target Milestone|---

[Bug tree-optimization/97474] [8/9/10/11 Regression] produces wrong code with references to another field

2020-10-19 Thread joseph at codesourcery dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97474 --- Comment #8 from joseph at codesourcery dot com --- p and p->p are two different pointer objects, the first restricted, so it's not valid to use p->p to access an object that's also accessed via p (and modified). This is different from the

[Bug target/97481] GCC ice when build with RISCV on msys2

2020-10-19 Thread euloanty at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97481 --- Comment #4 from fdlbxtqi --- (In reply to Jim Wilson from comment #2) > riscv-unknown-linux-gnu is not a supported target. You must use either > riscv32-unknown-linux-gnu or riscv64-unknwon-linux-gnu. Both compilers > support both word size

[Bug libstdc++/97132] assume_aligned is not constexpr

2020-10-19 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97132 --- Comment #7 from CVS Commits --- The releases/gcc-9 branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:77923ad01415f6e72af844cbef5227f5b5a9fb4b commit r9-9003-g77923ad01415f6e72af844cbef5227f5b5a9fb4b Author: Jonathan Wakely

[Bug libstdc++/97132] assume_aligned is not constexpr

2020-10-19 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97132 --- Comment #6 from CVS Commits --- The releases/gcc-10 branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:90c9484b12dd8a05b5314f5cb9847df46024a194 commit r10-8913-g90c9484b12dd8a05b5314f5cb9847df46024a194 Author: Jonathan Wakel

[Bug tree-optimization/97360] [11 Regression] ICE in range_on_exit

2020-10-19 Thread bergner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 --- Comment #27 from Peter Bergner --- (In reply to Peter Bergner from comment #26) > (In reply to Andrew Macleod from comment #25) > > Wonder if it was suppose to be something like: > > Maybe? :-) I'll report back how the build does with this

[Bug libfortran/97063] [ MATMUL intrinsic] The value of result is wrong when vector (step size is negative) * matrix

2020-10-19 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97063 --- Comment #8 from CVS Commits --- The releases/gcc-10 branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:53325dec8e01775af3eb9231d10f2afa1b8d5559 commit r10-8912-g53325dec8e01775af3eb9231d10f2afa1b8d5559 Author: Harald Anlauf D

[Bug c++/94799] [8/9/10 Regression] Calling a member template function fails

2020-10-19 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94799 --- Comment #13 from Marek Polacek --- The fix may be as easy as this: --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -23812,8 +23812,8 @@ cp_parser_class_name (cp_parser *parser, /* Any name names a type if we're following the `typename' ke

[Bug target/97481] GCC ice when build with RISCV on msys2

2020-10-19 Thread euloanty at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97481 --- Comment #3 from fdlbxtqi --- (In reply to Jim Wilson from comment #2) > riscv-unknown-linux-gnu is not a supported target. You must use either > riscv32-unknown-linux-gnu or riscv64-unknwon-linux-gnu. Both compilers > support both word size

[Bug tree-optimization/97360] [11 Regression] ICE in range_on_exit

2020-10-19 Thread bergner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 --- Comment #26 from Peter Bergner --- (In reply to Andrew Macleod from comment #25) > (In reply to Peter Bergner from comment #24) > > (In reply to Richard Biener from comment #22) > > >tree oi_uns_type = make_unsigned_type (256); > > >

[Bug middle-end/94169] warn for modifying getenv() result

2020-10-19 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94169 David Malcolm changed: What|Removed |Added CC||dmalcolm at gcc dot gnu.org --- Comment

[Bug fortran/97491] Wrong restriction for VALUE arguments of pure procedures

2020-10-19 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97491 anlauf at gcc dot gnu.org changed: What|Removed |Added CC||anlauf at gcc dot gnu.org L

[Bug tree-optimization/97360] [11 Regression] ICE in range_on_exit

2020-10-19 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 --- Comment #25 from Andrew Macleod --- (In reply to Peter Bergner from comment #24) > (In reply to Richard Biener from comment #22) > >tree oi_uns_type = make_unsigned_type (256); > > - vector_pair_type_node = build_distinct_type_co

[Bug c++/97438] [accepts-invalid] coroutines accepts prmomise type with both return_value() and return_void()

2020-10-19 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97438 Iain Sandoe changed: What|Removed |Added Resolution|--- |FIXED Last reconfirmed|

[Bug target/97481] GCC ice when build with RISCV on msys2

2020-10-19 Thread wilson at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97481 Jim Wilson changed: What|Removed |Added CC||wilson at gcc dot gnu.org --- Comment #2 fr

[Bug c++/97438] [accepts-invalid] coroutines accepts prmomise type with both return_value() and return_void()

2020-10-19 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97438 --- Comment #3 from CVS Commits --- The master branch has been updated by Iain D Sandoe : https://gcc.gnu.org/g:b003c4b14b3f889e6707db68d2c6545eda7a203b commit r11-4076-gb003c4b14b3f889e6707db68d2c6545eda7a203b Author: Iain Sandoe Date: Sat

[Bug sanitizer/97478] Cross Build from windows to linux. It looks like the sys/timeb.h header file does not exist in latest glibc any more

2020-10-19 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97478 --- Comment #2 from Jakub Jelinek --- It breaks bootstrap on x86_64-linux and i686-linux too.

[Bug tree-optimization/97360] [11 Regression] ICE in range_on_exit

2020-10-19 Thread bergner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 --- Comment #24 from Peter Bergner --- (In reply to Richard Biener from comment #22) >tree oi_uns_type = make_unsigned_type (256); > - vector_pair_type_node = build_distinct_type_copy (oi_uns_type); >SET_TYPE_MODE (vector_pai

[Bug middle-end/97487] [10/11 Regression] ICE in expand_simple_binop, at optabs.c:939 since r10-1420-g744fd446c321f78f

2020-10-19 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97487 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #2

[Bug bootstrap/97409] riscv cross toolchain build fails

2020-10-19 Thread wilson at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97409 Jim Wilson changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|---

[Bug tree-optimization/97456] [10/11 Regression] An incorrect optimization causes a function to always return the same value when using -flto

2020-10-19 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97456 --- Comment #8 from CVS Commits --- The master branch has been updated by Martin Jambor : https://gcc.gnu.org/g:619f91eaa8c8a50f1f9d3e7b96ee837037f0e806 commit r11-4075-g619f91eaa8c8a50f1f9d3e7b96ee837037f0e806 Author: Martin Jambor Date: Mo

[Bug c/97445] Some fonctions marked static inline in Linux kernel are not inlined

2020-10-19 Thread hubicka at ucw dot cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97445 --- Comment #22 from Jan Hubicka --- > Maybe better just have a match.pd rule that would fold > y = z binop cst; > x = __builtin_constant_p (y); > to > x = __builtin_constant_p (z); > and let SCCVN do the rest (or do it in fwprop or whatever else

[Bug c/97445] Some fonctions marked static inline in Linux kernel are not inlined

2020-10-19 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97445 --- Comment #21 from Jakub Jelinek --- (In reply to Jan Hubicka from comment #20) > > _2 = size_68(D) + 18446744073709551615; > > _3 = __builtin_constant_p (_2); > Forgot to note, things would be easier if we folded this to _1 :) > Among othe

[Bug rtl-optimization/97497] gcse wrong code generation with partial register clobbers

2020-10-19 Thread krebbel at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97497 --- Comment #1 from Andreas Krebbel --- Created attachment 49402 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49402&action=edit Proposed fix With the patch only regs are considered which aren't "fixed" assuming that for fixed_regs the ba

[Bug rtl-optimization/97497] New: gcse wrong code generation with partial register clobbers

2020-10-19 Thread krebbel at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97497 Bug ID: 97497 Summary: gcse wrong code generation with partial register clobbers Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Prior

[Bug c/97445] Some fonctions marked static inline in Linux kernel are not inlined

2020-10-19 Thread hubicka at ucw dot cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97445 --- Comment #20 from Jan Hubicka --- > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97445 > > --- Comment #19 from Jan Hubicka --- > get_order unwinds to: > >[local count: 1073741824]: > _1 = __builtin_constant_p (size_68(D)); > if (_1

[Bug tree-optimization/97496] [11 Regression] during during GIMPLE pass: cddce since r11-4005-g6c6e0cafa38cee83

2020-10-19 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97496 Martin Liška changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug tree-optimization/97496] [11 Regression] during during GIMPLE pass: cddce since r11-4005-g6c6e0cafa38cee83

2020-10-19 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97496 --- Comment #2 from Martin Liška --- for SSA_NAME: vect__16.4_34 in statement: # .MEM_29 = VDEF <.MEM_7(D)> MEM [(int *)&b] = vect__16.4_34; during GIMPLE pass: slp dump file: pr97496.c.169t.slp1 pr97496.c:3:6: internal compiler error: verify_ss

[Bug c/97445] Some fonctions marked static inline in Linux kernel are not inlined

2020-10-19 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97445 --- Comment #19 from Jan Hubicka --- get_order unwinds to: [local count: 1073741824]: _1 = __builtin_constant_p (size_68(D)); if (_1 != 0) goto ; [50.00%] else goto ; [50.00%] [local count: 536870913]: if (size_68(D) == 0)

[Bug c/97496] New: ice during during GIMPLE pass: cddce

2020-10-19 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97496 Bug ID: 97496 Summary: ice during during GIMPLE pass: cddce Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c A

[Bug middle-end/97495] -Wstringop-overflow where -Warray-bounds would be more appropriate

2020-10-19 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97495 Martin Sebor changed: What|Removed |Added Keywords||diagnostic Ever confirmed|0

[Bug middle-end/97495] New: -Wstringop-overflow where -Warray-bounds would be more appropriate

2020-10-19 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97495 Bug ID: 97495 Summary: -Wstringop-overflow where -Warray-bounds would be more appropriate Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal

[Bug middle-end/93232] std::array warning: writing 1 byte into a region of size 0 [ttps://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wstringop-overflow=-Wstringop-overflow=m]

2020-10-19 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93232 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org Resolut

[Bug rtl-optimization/97313] [11 Regression] ICE in lra_set_insn_recog_data, at lra.c:1004 since r11-937-g5261cf8ce824bfc7

2020-10-19 Thread vmakarov at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97313 --- Comment #5 from Vladimir Makarov --- (In reply to Martin Liška from comment #4) > Thank you Vladimir for the fix. > Can we close it now? There are no complaints about the patch for more a week. So I guess the PR can be closed.

[Bug c/97493] generate wrong code with "-Os -fno-toplevel-reorder -frename-registers"

2020-10-19 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97493 --- Comment #3 from Jakub Jelinek --- I can't reproduce it with -fno-strict-aliasing, only when that option is missing.

[Bug tree-optimization/80928] SLP vectorization does not handle induction in outer loop vectorization

2020-10-19 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80928 --- Comment #30 from Richard Biener --- (In reply to Richard Biener from comment #29) > So a testcase for missed outer loop induction SLP (and nested cycle SLP) is > for example > > int a[1024]; > void foo (unsigned n) > { > for (int i = 0; i

[Bug c/97445] Some fonctions marked static inline in Linux kernel are not inlined

2020-10-19 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97445 --- Comment #18 from Martin Liška --- (In reply to Jan Hubicka from comment #17) > > The following happens: > > > > get_order is called by kmalloc_large which is called in kmalloc. And kmalloc > > calls the function for larger allocations. Probl

[Bug c/97493] generate wrong code with "-Os -fno-toplevel-reorder -frename-registers"

2020-10-19 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97493 Richard Biener changed: What|Removed |Added Status|RESOLVED|WAITING Last reconfirmed|

[Bug tree-optimization/97494] [11 regression] several vector test case failures starting with r11-3966

2020-10-19 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97494 Richard Biener changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org

[Bug c/97445] Some fonctions marked static inline in Linux kernel are not inlined

2020-10-19 Thread hubicka at ucw dot cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97445 --- Comment #17 from Jan Hubicka --- > The following happens: > > get_order is called by kmalloc_large which is called in kmalloc. And kmalloc > calls the function for larger allocations. Problem is that we eliminate all > calls to get_order lat

[Bug c/97445] Some fonctions marked static inline in Linux kernel are not inlined

2020-10-19 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97445 Martin Liška changed: What|Removed |Added CC||hubicka at gcc dot gnu.org,

[Bug tree-optimization/97494] New: [11 regression] several vector test case failures starting with r11-3966

2020-10-19 Thread seurer at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97494 Bug ID: 97494 Summary: [11 regression] several vector test case failures starting with r11-3966 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal

[Bug c/97445] Some fonctions marked static inline in Linux kernel are not inlined

2020-10-19 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97445 --- Comment #15 from Martin Liška --- Created attachment 49401 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49401&action=edit x86_64 pre-processed source file

[Bug c/97445] Some fonctions marked static inline in Linux kernel are not inlined

2020-10-19 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97445 Martin Liška changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug preprocessor/97471] [11 Regression] ICE on using function-like macro as a non function-like macro since r11-338-g2a0225e47868fbfc

2020-10-19 Thread nathan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97471 Nathan Sidwell changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug gcov-profile/97461] [11 Regression] allocate_gcov_kvp() deadlocks in firefox LTO+PGO build (overridden malloc() recursion)

2020-10-19 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97461 --- Comment #10 from Martin Liška --- > Hmm, it seems to me that having some entries prealocated by default > would be way to avoid this problem in majority cases w/o having to > modify the upstream packages. I tend to the same. I'm going to pre

[Bug gcov-profile/97461] [11 Regression] allocate_gcov_kvp() deadlocks in firefox LTO+PGO build (overridden malloc() recursion)

2020-10-19 Thread hubicka at ucw dot cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97461 --- Comment #9 from Jan Hubicka --- > > They have the very same problem when I disable a statically pre-allocated > buffers with -mllvm -vp-static-alloc=0: > > Program received signal SIGILL, Illegal instruction. > 0x004014e6 in calloc

Re: [Bug gcov-profile/97461] [11 Regression] allocate_gcov_kvp() deadlocks in firefox LTO+PGO build (overridden malloc() recursion)

2020-10-19 Thread Jan Hubicka
> > They have the very same problem when I disable a statically pre-allocated > buffers with -mllvm -vp-static-alloc=0: > > Program received signal SIGILL, Illegal instruction. > 0x004014e6 in calloc (nmemb=1, size=8) at pr97461.c:103 > 103 if (malloc_depth != 0) __builtin_trap();

[Bug gcov-profile/97461] [11 Regression] allocate_gcov_kvp() deadlocks in firefox LTO+PGO build (overridden malloc() recursion)

2020-10-19 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97461 --- Comment #8 from Martin Liška --- (In reply to Jan Hubicka from comment #7) > > No. The only thing we support is a recursive malloc as seen in: > > ./gcc/testsuite/gcc.dg/tree-prof/indir-call-prof-malloc.c > > > > It was added in g:bc2b1a232b

[Bug c++/97388] By-value function parameter changes are rolled back prior to destructor call during constant evaluation

2020-10-19 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97388 Jakub Jelinek changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org

[Bug analyzer/97489] [11 Regression] ICE: Segmentation fault (in ana::supergraph::get_node_for_function_entry(function*) const) since r10-5950-g757bf1dff5e8cee3

2020-10-19 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97489 David Malcolm changed: What|Removed |Added Status|NEW |ASSIGNED --- Comment #2 from David Malco

[Bug c/97493] generate wrong code with "-Os -fno-toplevel-reorder -frename-registers"

2020-10-19 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97493 Jakub Jelinek changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED CC|

[Bug c/97493] New: generate wrong code with "-Os -fno-toplevel-reorder -frename-registers"

2020-10-19 Thread suochenyao at 163 dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97493 Bug ID: 97493 Summary: generate wrong code with "-Os -fno-toplevel-reorder -frename-registers" Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal

Re: [Bug gcov-profile/97461] [11 Regression] allocate_gcov_kvp() deadlocks in firefox LTO+PGO build (overridden malloc() recursion)

2020-10-19 Thread Jan Hubicka
> No. The only thing we support is a recursive malloc as seen in: > ./gcc/testsuite/gcc.dg/tree-prof/indir-call-prof-malloc.c > > It was added in g:bc2b1a232b1825b421a1aaa21a0865b2d1e4e08c as we use a > statically allocated buffer when we recursively entry allocate_gcov_kvp. > > However this is d

[Bug gcov-profile/97461] [11 Regression] allocate_gcov_kvp() deadlocks in firefox LTO+PGO build (overridden malloc() recursion)

2020-10-19 Thread hubicka at ucw dot cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97461 --- Comment #7 from Jan Hubicka --- > No. The only thing we support is a recursive malloc as seen in: > ./gcc/testsuite/gcc.dg/tree-prof/indir-call-prof-malloc.c > > It was added in g:bc2b1a232b1825b421a1aaa21a0865b2d1e4e08c as we use a > static

[Bug gcov-profile/97461] [11 Regression] allocate_gcov_kvp() deadlocks in firefox LTO+PGO build (overridden malloc() recursion)

2020-10-19 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97461 --- Comment #6 from Martin Liška --- (In reply to Richard Biener from comment #5) > Hmm, is the TOPN allocation strathegy configurable? I wonder whether we have > to resort to an alternate allocation scheme (mmap/sbrk), avoiding libc? No. The o

[Bug tree-optimization/97360] [11 Regression] ICE in range_on_exit

2020-10-19 Thread bergner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 --- Comment #23 from Peter Bergner --- (In reply to Richard Biener from comment #22) > OK, so the fix here is quite obviously to simply drop the > build_distinct_type_copy calls: Thanks richi, I'll put the patch through a bootstrap/regtest cycle

[Bug c++/97477] g++ doesn't accept __restrict keyword inside array function parameter

2020-10-19 Thread dwwork at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97477 --- Comment #2 from Dalon Work --- (In reply to Richard Biener from comment #1) > IIRC restrict is not official C++ but I agree it should be accepted. You are correct, it is not official c++. g++ accepts and uses the '__restrict' keyword in c++

[Bug other/97492] New: arm cortex-m0+ or constant value can use adds

2020-10-19 Thread kjetilos at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97492 Bug ID: 97492 Summary: arm cortex-m0+ or constant value can use adds Product: gcc Version: 10.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ot

[Bug c/97445] Some fonctions marked static inline in Linux kernel are not inlined

2020-10-19 Thread christophe.leroy at csgroup dot eu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97445 --- Comment #13 from Christophe Leroy --- (In reply to Christophe Leroy from comment #10) > (In reply to Jakub Jelinek from comment #9) > > What I was suggesting is build with make V=1 and copy/paste the command line > > used to compile a particu

[Bug c/97445] Some fonctions marked static inline in Linux kernel are not inlined

2020-10-19 Thread christophe.leroy at csgroup dot eu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97445 --- Comment #12 from Christophe Leroy --- Created attachment 49399 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49399&action=edit pipe.s from build of fs/pipe.o fs/pipe.o includes an instance of get_order() allthouth get_order() is decla

[Bug c/97445] Some fonctions marked static inline in Linux kernel are not inlined

2020-10-19 Thread christophe.leroy at csgroup dot eu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97445 --- Comment #11 from Christophe Leroy --- Created attachment 49398 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49398&action=edit Build of fs/pipe.o

[Bug libstdc++/97485] std::call_once crashes at runtime on glibc if not linked to libpthread: terminate called after throwing an instance of 'std::system_error': what(): Unknown error -1

2020-10-19 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97485 --- Comment #3 from Jonathan Wakely --- Looks like a dup of PR 55394

[Bug fortran/97491] New: Wrong restriction for VALUE arguments of pure procedures

2020-10-19 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97491 Bug ID: 97491 Summary: Wrong restriction for VALUE arguments of pure procedures Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priori

[Bug c/97445] Some fonctions marked static inline in Linux kernel are not inlined

2020-10-19 Thread christophe.leroy at csgroup dot eu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97445 --- Comment #10 from Christophe Leroy --- (In reply to Jakub Jelinek from comment #9) > What I was suggesting is build with make V=1 and copy/paste the command line > used to compile a particular source file and append -save-temps to those > opti

[Bug tree-optimization/80928] SLP vectorization does not handle induction in outer loop vectorization

2020-10-19 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80928 --- Comment #29 from Richard Biener --- So a testcase for missed outer loop induction SLP (and nested cycle SLP) is for example int a[1024]; void foo (unsigned n) { for (int i = 0; i < 1020; i += 4) { int suma = a[i]; int sumb

[Bug tree-optimization/97488] [11 Regression] ICE: Segmentation fault (in wi::set_bit_large)

2020-10-19 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97488 Aldy Hernandez changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug tree-optimization/97488] [11 Regression] ICE: Segmentation fault (in wi::set_bit_large)

2020-10-19 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97488 --- Comment #2 from CVS Commits --- The master branch has been updated by Aldy Hernandez : https://gcc.gnu.org/g:2d2f4ffc97a8510e72a99ee106159aeae2627a42 commit r11-4070-g2d2f4ffc97a8510e72a99ee106159aeae2627a42 Author: Aldy Hernandez Date:

  1   2   >