[Bug tree-optimization/57511] [4.8 Regression] Missing SCEV final value replacement

2021-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57511 Andrew Pinski changed: What|Removed |Added CC||olegendo at gcc dot gnu.org --- Comment

[Bug tree-optimization/58122] loops are not evaluated at compile time if loop count > 17

2021-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58122 Andrew Pinski changed: What|Removed |Added Resolution|--- |DUPLICATE Known to work|

Re: [PATCH v3 06/12] LoongArch Port: Builtin macros.

2021-12-16 Thread Paul Hua via Gcc-patches
Hi Joseph, Thanks for your suggestion, Those macros can be removed, we will send the v4 version soon. Are there any problems in this series of patches? In other words, What conditions are required for LoongArch back-end merged? By the way, We are preparing the LoongArch machine to send to

[Bug libfortran/98507] timezone is incorrect on last day of year for "TZ" hours

2021-12-16 Thread jb at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98507 Janne Blomqvist changed: What|Removed |Added CC||jb at gcc dot gnu.org --- Comment #5

[Bug tree-optimization/26854] Inordinate compile times on large routines

2021-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=26854 --- Comment #139 from Andrew Pinski --- Does anyone have recent #s on this testcase?

[Bug tree-optimization/98254] Failure to optimize simple pattern for __builtin_convertvector

2021-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98254 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement --- Comment #8 from Andrew

[PATCH] libstdc++, v2: Add %j, %U, %w, %W time_get support, fix %y, %Y, %C, %p [PR77760]

2021-12-16 Thread Jakub Jelinek via Gcc-patches
On Thu, Dec 16, 2021 at 03:46:47PM +0100, Jakub Jelinek via Gcc-patches wrote: > glibc strptime passes around some state, what fields in struct tm have been > set and what needs to be finalized through possibly recursive calls, and > at the end performs various finalizations, like applying %p so

[Bug tree-optimization/93447] Value range propagation not working at -Os

2021-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93447 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Severity|normal

[Bug tree-optimization/81834] loop with increment conditional on IV is not optimized out

2021-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81834 Andrew Pinski changed: What|Removed |Added Known to fail||10.3.0, 9.1.0 Severity|normal

[Bug tree-optimization/60320] Redundant static initialization check

2021-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60320 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Severity|normal

[Bug target/103750] [i386] GCC schedules KMOV instructions that destroys performance in loop

2021-12-16 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103750 --- Comment #4 from Hongtao.liu --- (In reply to Hongtao.liu from comment #3) > (In reply to Hongtao.liu from comment #2) > > Failed here > > > > /* Allow propagations into a loop only for reg-to-reg copies, since > > replacing one

[Bug tree-optimization/71271] SLP loop vectorized twice

2021-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71271 Andrew Pinski changed: What|Removed |Added Known to work||8.1.0, 9.1.0 Keywords|

[Bug target/103750] [i386] GCC schedules KMOV instructions that destroys performance in loop

2021-12-16 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103750 --- Comment #3 from Hongtao.liu --- (In reply to Hongtao.liu from comment #2) > Failed here > > /* Allow propagations into a loop only for reg-to-reg copies, since > replacing one register by another shouldn't increase the cost. */ >

[Bug c++/96115] string literal, decays to a pointer when passed to function pointer

2021-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96115 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

Re: gm2 development status (tracking gcc-12 20211209)

2021-12-16 Thread Richard Biener via Gcc
On December 16, 2021 9:43:56 PM GMT+01:00, Gaius Mulley wrote: > > >I've been testing the gm2 development branch (based on gcc-12) >against lto and non lto builds. > > git clone git://gcc.gnu.org/git/gcc.git gcc-git > cd gcc-git > git checkout devel/modula-2 > >I'm using the configure

[Bug c++/96765] Base class constructor cast to derived should cause a warning

2021-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96765 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement Last

[Bug middle-end/100738] Gimple failed to simplify ((v4si) ~a) < 0 ? c : d to ((v4si)a) >= 0 ? c : d

2021-12-16 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100738 --- Comment #7 from CVS Commits --- The master branch has been updated by hongtao Liu : https://gcc.gnu.org/g:456b53654a3e3cc550c24f2cb0e37e7fdfadf68e commit r12-6032-g456b53654a3e3cc550c24f2cb0e37e7fdfadf68e Author: Haochen Jiang Date:

[Bug c++/95700] read-md.c: "missing sentinel in function call" when building gcc with musl

2021-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95700 --- Comment #21 from Andrew Pinski --- (In reply to vvinayag from comment #20) > The patch did not fix the issue for me, unfortunately, because CXX_FOR_BUILD > is still set to 'g++'. > But to make it work, I added the line: CXX="$CXX

Re: [PATCH] [i386][avx512]Add combine splitter to transform vpternlogd/vpcmpeqd/vpxor/vblendvps to vblendvps for ~op0

2021-12-16 Thread Hongtao Liu via Gcc-patches
On Wed, Dec 15, 2021 at 9:26 AM Haochen Jiang via Gcc-patches wrote: > > Hi all, > > This patch fix the regression previously reported on the combine splitter > under '-m32 -march=cascadelake' options. > > Regtested on x86_64-pc-linux-gnu. Ok. > > BRs, > Haochen > > gcc/ChangeLog: > > PR

[Bug c++/95723] GCC get confused while parsing a code

2021-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95723 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2021-12-17 Ever confirmed|0

[Bug middle-end/95383] Poor codegen when constructing a trivial Optional

2021-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95383 Andrew Pinski changed: What|Removed |Added Component|c++ |middle-end See Also|

[Bug c++/94742] [8/9 Regression] Incorrect "no return statement" warning with [[noreturn]] and __FUNCTION__

2021-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94742 Andrew Pinski changed: What|Removed |Added CC||gcc at sjor dot sg --- Comment #7 from

[Bug c++/81692] Bogus noreturn warning

2021-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81692 Andrew Pinski changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/81692] Bogus noreturn warning

2021-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81692 Andrew Pinski changed: What|Removed |Added Keywords||needs-bisection --- Comment #3 from

[Bug c++/93699] Invalid operator== (returning non-bool type) candidate

2021-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93699 Andrew Pinski changed: What|Removed |Added Keywords||diagnostic --- Comment #5 from Andrew

[Bug target/103750] [i386] GCC schedules KMOV instructions that destroys performance in loop

2021-12-16 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103750 --- Comment #2 from Hongtao.liu --- Failed here /* Allow propagations into a loop only for reg-to-reg copies, since replacing one register by another shouldn't increase the cost. */ struct loop *def_loop = def_insn->bb ()->cfg_bb

[Bug c++/93534] Overload is probably ambiguous, but not ambiguous

2021-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93534 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2021-12-17

[Bug sanitizer/84250] Symbol collision when using both Address and Undefined Behavior sanitizers (-fsanitize=address,undefined)

2021-12-16 Thread chefmax at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84250 --- Comment #10 from chefmax at gcc dot gnu.org --- Hi Marek, sorry, I'm not really tracking this anymore :(. I don't remember exactly why option 1) from https://github.com/google/sanitizers/issues/912#issuecomment-363525012 doesn't work for GCC

[Bug c++/91780] Discrepancy between gcc 7.4, through 9.2, compared to clang.

2021-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91780 Andrew Pinski changed: What|Removed |Added Keywords||needs-bisection, |

[Bug c++/53637] NRVO not applied where there are two different variables involved

2021-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53637 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement Last

[Bug tree-optimization/87543] Inconsistency in noticing a constant result rather than emitting code for a loop

2021-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87543 --- Comment #6 from Andrew Pinski --- As I mentioned in PR 87987: So I think LLVM's unrolling notices the load will become constant and the whole induction variable basically goes away for sum. I also said something similar in

[Bug tree-optimization/103744] [12 Regression] ICE in operator[], at vec.h:889 since r12-5612-g10833849b55401a52f2334eb032a70beb688e9fc

2021-12-16 Thread asolokha at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103744 --- Comment #4 from Arseny Solokha --- The apparently related case: short int *s; int foo (int r, int z) { int *a; while (z < 1) { int i; i = *s; s += 2; r += a[i]; r += a[i]; z += 1; }

[Bug tree-optimization/87543] Inconsistency in noticing a constant result rather than emitting code for a loop

2021-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87543 Andrew Pinski changed: What|Removed |Added CC||lh_mouse at 126 dot com --- Comment #5

[Bug tree-optimization/87987] Missed optimization with ranged-for loop on a constexpr array

2021-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87987 Andrew Pinski changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug tree-optimization/87987] Missed optimization with ranged-for loop on a constexpr array

2021-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87987 --- Comment #1 from Andrew Pinski --- So I think LLVM's unrolling notices the load will become constant and the whole induction variable basically goes away for sum. Even for this C code LLVM does the optimization: static const int table[] = {

[Bug tree-optimization/87987] Missed optimization with ranged-for loop on a constexpr array

2021-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87987 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement Component|c++

[Bug c++/86692] Too lenient parsing of noptr-new-declarator

2021-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86692 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug c++/86018] Incorrect unused warning for int passed by reference to lambda

2021-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86018 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c++/92367] spurious -Wunused-but-set-parameter warning with constexpr if in a template function

2021-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92367 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |10.0 See Also|

[Bug c++/84488] Incorrect "set but not used" warning for static_cast(double)

2021-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84488 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |8.0

[Bug c++/85444] asm specifier on typedef silently ignored

2021-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85444 Andrew Pinski changed: What|Removed |Added Last reconfirmed|2018-04-18 00:00:00 |2021-12-16 --- Comment #11 from Andrew

[Bug c++/82611] Incorrect warning for redundant capture in lambda

2021-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82611 Andrew Pinski changed: What|Removed |Added Resolution|--- |INVALID Status|UNCONFIRMED

[Bug libstdc++/103755] New: {has,use}_facet() and iostream constructor performance

2021-12-16 Thread dprokoptsev at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103755 Bug ID: 103755 Summary: {has,use}_facet() and iostream constructor performance Product: gcc Version: 11.2.1 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug c++/84621] bogus -Wreturn-type on a template instantiated on a function

2021-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84621 --- Comment #2 from Andrew Pinski --- We get the warning during the definition of ff and not after instantiating the function.

[Bug c++/84573] missing warning on an uninstantiated function template returning T with no return statement

2021-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84573 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |WAITING Ever confirmed|0

[Bug c++/84573] missing warning on an uninstantiated function template returning T with no return statement

2021-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84573 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement --- Comment #1 from Andrew

[Bug tree-optimization/90556] [meta-bug] bogus/missing -Wreturn-local-addr

2021-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90556 Bug 90556 depends on bug 90647, which changed state. Bug 90647 Summary: Warn on returning a lambda with captured local variables https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90647 What|Removed |Added

[Bug c++/54367] [meta-bug] lambda expressions

2021-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54367 Bug 54367 depends on bug 90647, which changed state. Bug 90647 Summary: Warn on returning a lambda with captured local variables https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90647 What|Removed |Added

[Bug c++/84544] Missing warning when returning a reference to internal variable inside a lambda

2021-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84544 Andrew Pinski changed: What|Removed |Added CC||antoshkka at gmail dot com --- Comment

[Bug c++/90647] Warn on returning a lambda with captured local variables

2021-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90647 Andrew Pinski changed: What|Removed |Added Resolution|--- |DUPLICATE Status|NEW

[Bug c++/103681] [9/10/11/12 Regression] Unusual behavior for tail padding with different c++ standards and NSDMI

2021-12-16 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103681 --- Comment #3 from CVS Commits --- The master branch has been updated by Jason Merrill : https://gcc.gnu.org/g:a37e8ce3b66325f0c6de55c80d50ac1664c3d0eb commit r12-6028-ga37e8ce3b66325f0c6de55c80d50ac1664c3d0eb Author: Jason Merrill Date:

[Bug c++/84544] Missing warning when returning a reference to internal variable inside a lambda

2021-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84544 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Severity|normal

[pushed] c++: layout of aggregate base with DMI [PR103681]

2021-12-16 Thread Jason Merrill via Gcc-patches
C++14 changed the definition of 'aggregate' to allow default member initializers, but such classes still need to be considered "non-POD for the purpose of layout" for ABI compatibility with C++11 code. It seems rare to derive from such a class, as evidenced by how long this bug has survived

[Bug target/103750] [i386] GCC schedules KMOV instructions that destroys performance in loop

2021-12-16 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103750 --- Comment #1 from Hongtao.liu --- kmovw here is zero_extend, and at gimple level it's not redundant in loop. _31 = MEM[(const __m256i_u * {ref-all})n_5]; _30 = MEM[(const __m256i_u * {ref-all})n_5 + 32B]; _28 =

[Bug c++/84414] miscompile due to assuming that object returned by value cannot alias its own member pointer values

2021-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84414 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug c++/84414] miscompile due to assuming that object returned by value cannot alias its own member pointer values

2021-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84414 Andrew Pinski changed: What|Removed |Added Known to fail||4.6.4, 4.8.5, 6.1.0 --- Comment #4 from

[Bug c++/83876] [feature request] flag to force vague linkage for typeinfo and/or disable vtable anchoring

2021-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83876 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement

[Bug c++/82526] Confusing error for constructor of member

2021-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82526 --- Comment #2 from Andrew Pinski --- Note clang is the only one compiler (I Have access to quickly) which references the field mTopLeft.

[Bug c++/82526] Confusing error for constructor of member

2021-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82526 Andrew Pinski changed: What|Removed |Added Severity|normal |minor Status|UNCONFIRMED

[Bug c++/103754] [11,12][ice][modules] import bits/stdc++.h and map

2021-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103754 --- Comment #4 from Andrew Pinski --- (In reply to Egor Pugin from comment #1) > on g++-12 from master it gives > /usr/include/c++/11/x86_64-redhat-linux/bits/stdc++.h: internal compiler > error: tree check: expected var_decl or function_decl

[Bug c++/103754] [11,12][ice][modules] import bits/stdc++.h and map

2021-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103754 Andrew Pinski changed: What|Removed |Added Keywords||ice-on-valid-code Blocks|

[PATCH, rs6000] Implement mffscrni pattern

2021-12-16 Thread HAO CHEN GUI via Gcc-patches
Hi, This patch defines a pattern for mffscrni. If the RN is a constant, it can call gen_rs6000_mffscrni directly. The "rs6000-builtin-new.def" defines prototype for builtin arguments. The pattern "rs6000_set_fpscr_rn" is then broken as the mode of its argument is DI while its corresponding

Re: [RFC] Overflow check in simplifying exit cond comparing two IVs.

2021-12-16 Thread Jiufu Guo via Gcc-patches
Jiufu Guo writes: > Jiufu Guo writes: > >> Richard Biener writes: >> >>> On Mon, 18 Oct 2021, Jiufu Guo wrote: >>> With reference the discussions in: https://gcc.gnu.org/pipermail/gcc-patches/2021-July/574334.html https://gcc.gnu.org/pipermail/gcc-patches/2021-June/572006.html

[PATCH, rs6000] new split pattern for TI to V1TI move [PR103124]

2021-12-16 Thread HAO CHEN GUI via Gcc-patches
Hi, This patch defines a new split pattern for TI to V1TI move. The pattern concatenates two subreg:DI of a TI to a V2DI. With the pattern, the subreg pass can do register split for TI when there is a TI to V1TI move. The patch optimizes one unnecessary "mr" out on P9. The new test case

Re: [PATCH 1/3] loop-invariant: Don't move cold bb instructions to preheader in RTL

2021-12-16 Thread Xionghu Luo via Gcc-patches
On 2021/12/16 19:20, Jan Hubicka wrote: >> >> OK. Comments like? >> >> /* Don't move insn of cold BB out of loop to preheader to reduce calculations >>and register live range in hot loop with cold BB. */ > > Looks good. >> >> >> And maybe some dump log will help tracking in

[Bug testsuite/102944] Many gcc.dg/Wstringop-overflow-*.c failures

2021-12-16 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102944 --- Comment #6 from Hongtao.liu --- (In reply to Martin Sebor from comment #5) > I don't see any of the FAILs or XFAILs listed in comment #0 with cross > compilers for any of the Targets. Can this report be resolved? I thinks so, now we only

Re: [PATCH] c++: Improve diagnostic for class tmpl/class redecl [PR103749]

2021-12-16 Thread Jason Merrill via Gcc-patches
On 12/16/21 17:36, Marek Polacek wrote: For code like template struct bar; struct bar { int baz; }; bar var; we emit a fairly misleading and unwieldy diagnostic: ~ $ g++ -c u.cc u.cc:6:8: error: template argument

[Bug c++/103754] [11,12][ice][modules] import bits/stdc++.h and map

2021-12-16 Thread egor.pugin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103754 --- Comment #2 from Egor Pugin --- Created attachment 52020 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52020=edit more ice on g++-12 master Adding more ICE logs without filing new tickets in case if need to check more error places.

[Bug c++/103754] [11,12][ice][modules] import bits/stdc++.h and map

2021-12-16 Thread egor.pugin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103754 Egor Pugin changed: What|Removed |Added Summary|[11][ice][modules] import |[11,12][ice][modules]

[Bug c++/103754] New: [11][ice][modules] import bits/stdc++.h and map

2021-12-16 Thread egor.pugin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103754 Bug ID: 103754 Summary: [11][ice][modules] import bits/stdc++.h and map Product: gcc Version: 11.2.1 Status: UNCONFIRMED Severity: normal Priority: P3

[r12-6022 Regression] FAIL: g++.dg/modules/xtreme-header_a.H -std=c++2b (internal compiler error: tree check: expected none of template_decl, have template_decl in add_specializations, at cp/module.cc

2021-12-16 Thread sunil.k.pandey via Gcc-patches
On Linux/x86_64, bb2a7f80a98de3febefbb32b1e4898062bdb6af8 is the first bad commit commit bb2a7f80a98de3febefbb32b1e4898062bdb6af8 Author: Patrick Palka Date: Thu Dec 16 13:40:42 2021 -0500 c++: two-stage name lookup for overloaded operators [PR51577] caused FAIL:

[Bug middle-end/96988] Bad/missing warnings when returning a temporary from an inlined function

2021-12-16 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96988 Martin Sebor changed: What|Removed |Added Component|c++ |middle-end CC|

[Bug libstdc++/61582] C++11 regex memory corruption

2021-12-16 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61582 Jonathan Wakely changed: What|Removed |Added Last reconfirmed|2014-06-25 00:00:00 |2021-12-16 Assignee|timshen

[Bug c/63272] GCC should warn when using pointer to dead scoped variable within the same function

2021-12-16 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63272 Martin Sebor changed: What|Removed |Added CC||oleg.pekar.2017 at gmail dot com ---

[Bug middle-end/98901] missing warning passing a dangling pointer to a function

2021-12-16 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98901 Martin Sebor changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot gnu.org

[committed] Testsuite: Tweak gcc.dg/20021029-1.c for nios2.

2021-12-16 Thread Sandra Loosemore
I've checked in the attached patch to fix a testcase that's been failing on nios2 for a while. -Sandra commit 840a22e0fee9e7369a2eb1c9e3c70dcae24a20e4 Author: Sandra Loosemore Date: Thu Dec 16 15:17:14 2021 -0800 Testsuite: Tweak gcc.dg/20021029-1.c for nios2. This test needs

[Bug c/103104] missing warning about superfluous forward declaration -Wsuperfluous-forward-declaration

2021-12-16 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103104 Martin Sebor changed: What|Removed |Added Last reconfirmed||2021-12-16 CC|

[Bug libfortran/98076] Increase speed of integer I/O

2021-12-16 Thread fxcoudert at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98076 --- Comment #6 from Francois-Xavier Coudert --- Integrating this quick patch into libgfortran, here are the timings to make a formatted write of 10 million integers into a string. - very small value (1), negligible speedup (2.273s to 2.248s) -

[PATCH] config: Add check whether D compiler works (PR103528)

2021-12-16 Thread Iain Buclaw via Gcc-patches
Hi, This patch extends AC_PROG_GDC so that as well as checking for the existence of a GDC compiler, also validate that it has also been built with libphobos, otherwise warn or fail with the message that GDC is required to build d. Tested on a system running powerpcle-linux both without a D

[Bug c++/79466] strange varargs warnings on superflous paranthesises

2021-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79466 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |6.3 See Also|

[Bug c++/43113] too long diagnostics in some cases of recursive template instantiation

2021-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43113 --- Comment #7 from Andrew Pinski --- For the original case in comment #0 we get in GCC 5+: : In instantiation of 'struct A::S>::S>::S>::S>': :5:11: recursively required from 'struct A::S>' :5:11: required from 'struct A' :8:12: required

[Bug middle-end/101751] asan_test.C fails with excess error with glibc-2.34

2021-12-16 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101751 Martin Sebor changed: What|Removed |Added Component|testsuite |middle-end Status|ASSIGNED

[Bug c++/77573] bogus wide string literals in diagnostics

2021-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77573 --- Comment #3 from Andrew Pinski --- GCC 11+ gives now: :1:23: error: conversion from pointer type 'const wchar_t*' to arithmetic type 'wchar_t' in a constant expression I think this is fixed.

[Bug testsuite/101751] asan_test.C fails with excess error with glibc-2.34

2021-12-16 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101751 --- Comment #6 from CVS Commits --- The releases/gcc-11 branch has been updated by Martin Sebor : https://gcc.gnu.org/g:5635c975576604afda35543f672c2cad79cb0046 commit r11-9397-g5635c975576604afda35543f672c2cad79cb0046 Author: Martin Sebor

Re: [PATCH] attribs: Fix wrong error with -Wno-attribute=A::b [PR103649]

2021-12-16 Thread Jakub Jelinek via Gcc-patches
On Thu, Dec 16, 2021 at 05:35:55PM -0500, Marek Polacek wrote: > My patch to implement -Wno-attribute=A::b caused a bogus error when > parsing > > [[foo::bar(1, 2)]]; > > when -Wno-attributes=foo::bar was specified on the command line, because > when we create a fake foo::bar attribute and

[Bug c++/77297] parenthesis suppress/silences all warnings

2021-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77297 Andrew Pinski changed: What|Removed |Added Last reconfirmed|2016-08-19 00:00:00 |2021-12-16 --- Comment #3 from Andrew

[Bug c/101604] [meta-bug] bogus/missing -Wvla-parameter

2021-12-16 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101604 Bug 101604 depends on bug 101289, which changed state. Bug 101289 Summary: [11 Regression] bogus -Wvla-paramater warning when using const for vla param https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101289 What|Removed

[Bug c/101289] [11 Regression] bogus -Wvla-paramater warning when using const for vla param

2021-12-16 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101289 Martin Sebor changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c/101289] [11 Regression] bogus -Wvla-paramater warning when using const for vla param

2021-12-16 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101289 --- Comment #7 from CVS Commits --- The releases/gcc-11 branch has been updated by Martin Sebor : https://gcc.gnu.org/g:7d3f53c595e1766ca0494e5f56f33b0ce49b3bb4 commit r11-9396-g7d3f53c595e1766ca0494e5f56f33b0ce49b3bb4 Author: Martin Sebor

[Bug c/97548] [11 Regression] bogus -Wvla-parameter on a bound expression involving a parameter

2021-12-16 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97548 --- Comment #8 from CVS Commits --- The releases/gcc-11 branch has been updated by Martin Sebor : https://gcc.gnu.org/g:7d3f53c595e1766ca0494e5f56f33b0ce49b3bb4 commit r11-9396-g7d3f53c595e1766ca0494e5f56f33b0ce49b3bb4 Author: Martin Sebor

[Bug c++/99980] Delayed parsing of noexcept doesn't work in member function template

2021-12-16 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99980 Marek Polacek changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/99980] Delayed parsing of noexcept doesn't work in member function template

2021-12-16 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99980 --- Comment #2 from CVS Commits --- The trunk branch has been updated by Marek Polacek : https://gcc.gnu.org/g:06041b2c67a5d4d0941c53990f0438a309703ed0 commit r12-6025-g06041b2c67a5d4d0941c53990f0438a309703ed0 Author: Marek Polacek Date:

[Bug fortran/103606] [9/10/11/12 Regression] ICE in resolve_fl_procedure, at fortran/resolve.c:13297 since r9-3324-g2b03b800d866d345

2021-12-16 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103606 anlauf at gcc dot gnu.org changed: What|Removed |Added Status|ASSIGNED|RESOLVED

[Bug c++/20906] [C++98/C++11/c++14 only] excessive diagnostic messages for missing template arguments

2021-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=20906 Andrew Pinski changed: What|Removed |Added Summary|excessive diagnostic|[C++98/C++11/c++14 only]

[Bug fortran/103606] [9/10/11/12 Regression] ICE in resolve_fl_procedure, at fortran/resolve.c:13297 since r9-3324-g2b03b800d866d345

2021-12-16 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103606 --- Comment #8 from CVS Commits --- The releases/gcc-9 branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:12d811d06f2ea178ac9b40c5399ba41eb5f374df commit r9-9873-g12d811d06f2ea178ac9b40c5399ba41eb5f374df Author: Harald Anlauf

[Bug c++/103703] ICE with -Wmismatched-tags with friends and templates

2021-12-16 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103703 Martin Sebor changed: What|Removed |Added Target Milestone|--- |11.3

[Bug c++/103703] ICE with -Wmismatched-tags with friends and templates

2021-12-16 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103703 Martin Sebor changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/103703] ICE with -Wmismatched-tags with friends and templates

2021-12-16 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103703 --- Comment #5 from CVS Commits --- The releases/gcc-11 branch has been updated by Martin Sebor : https://gcc.gnu.org/g:4f556312da96bf2db67b014612de86594d4ad003 commit r11-9395-g4f556312da96bf2db67b014612de86594d4ad003 Author: Martin Sebor

[Bug c++/20906] excessive diagnostic messages for missing template arguments

2021-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=20906 Andrew Pinski changed: What|Removed |Added Keywords||diagnostic Status|REOPENED

[PATCH] c++: Improve diagnostic for class tmpl/class redecl [PR103749]

2021-12-16 Thread Marek Polacek via Gcc-patches
For code like template struct bar; struct bar { int baz; }; bar var; we emit a fairly misleading and unwieldy diagnostic: ~ $ g++ -c u.cc u.cc:6:8: error: template argument required for 'struct bar' 6 | struct bar { |

  1   2   3   >