[Bug target/112935] [14 Regression] Performance regression in Coremarks crcu8 function

2023-12-08 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112935 --- Comment #9 from Xi Ruoyao --- And in fact the optimal code for int t(int x, _Bool y) { return x * y; } should be maskeqz $r4,$r4,$r5 jr $r1 like int t(int x, _Bool y) { return y ? x : 0; }

[Bug target/112935] [14 Regression] Performance regression in Coremarks crcu8 function

2023-12-08 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112935 --- Comment #8 from Xi Ruoyao --- (In reply to Andrew Pinski from comment #7) > (In reply to Xi Ruoyao from comment #5) > > > > so we still slightly penalty multiplication. To me we should code > > COSTS_N_INSNS (1) + 1 into

[Bug target/112935] [14 Regression] Performance regression in Coremarks crcu8 function

2023-12-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112935 --- Comment #7 from Andrew Pinski --- (In reply to Xi Ruoyao from comment #5) > > so we still slightly penalty multiplication. To me we should code > COSTS_N_INSNS (1) + 1 into loongarch_rtx_cost_optimize_size instead of > special casing it

[PATCH v2] -finline-stringops: check base blksize for memset [PR112778]

2023-12-08 Thread Alexandre Oliva
Scratch the previous one, the "slightly different version" I had before it was not entirely broken due to unnecessary, suboptimal and incorrect use of ctz. Here I have yet another implementation of that loop that should perform better and even work correctly ;-) This one has so far regstrapped

[Bug target/112935] [14 Regression] Performance regression in Coremarks crcu8 function

2023-12-08 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112935 --- Comment #6 from Xi Ruoyao --- On a LA664 it seems a mul.w instruction costs 4 times a "simple" instruction like add.w/sub.w/and, and div.w costs 5 times.

[Bug target/112935] [14 Regression] Performance regression in Coremarks crcu8 function

2023-12-08 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112935 --- Comment #5 from Xi Ruoyao --- (In reply to Andrew Pinski from comment #4) > /* Default RTX cost initializer. */ > ... > int_mult_si (COSTS_N_INSNS (1)), > int_mult_di (COSTS_N_INSNS (1)), > > > That seems wrong. > I suspect you

[Bug middle-end/112917] Most strub execution tests FAIL on SPARC

2023-12-08 Thread aoliva at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112917 Alexandre Oliva changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug target/112935] [14 Regression] Performance regression in Coremarks crcu8 function

2023-12-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112935 --- Comment #4 from Andrew Pinski --- /* Default RTX cost initializer. */ ... int_mult_si (COSTS_N_INSNS (1)), int_mult_di (COSTS_N_INSNS (1)), That seems wrong. I suspect you will get other improvements when you touch this. E.g.

[Bug target/112935] [14 Regression] Performance regression in Coremarks crcu8 function

2023-12-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112935 Andrew Pinski changed: What|Removed |Added Keywords|needs-bisection |missed-optimization

[Bug tree-optimization/112935] [14 Regression] Performance regression in Coremarks crcu8 function

2023-12-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112935 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |14.0

[Bug tree-optimization/112935] [14 Regression] Performance regression in Coremarks crcu8 function

2023-12-08 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112935 Xi Ruoyao changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug tree-optimization/112935] [14 Regression] Performance regression in Coremarks crcu8 function

2023-12-08 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112935 --- Comment #1 from Xi Ruoyao --- Note that for int t(int x, _Bool y) { return x * y; } even GCC 13 is generating the sub-optimal mul.w instruction. So perhaps this is just a target issue after all...

[Bug tree-optimization/112935] New: [14 Regression] Performance regression in Coremarks crcu8 function

2023-12-08 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112935 Bug ID: 112935 Summary: [14 Regression] Performance regression in Coremarks crcu8 function Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal

Re: [PATCH v2] c++: fix ICE with sizeof in a template [PR112869]

2023-12-08 Thread Jason Merrill
On 12/8/23 16:15, Marek Polacek wrote: On Fri, Dec 08, 2023 at 12:09:18PM -0500, Jason Merrill wrote: On 12/5/23 15:31, Marek Polacek wrote: Bootstrapped/regtested on x86_64-pc-linux-gnu, ok for trunk? -- >8 -- This test shows that we cannot clear *walk_subtrees in cp_fold_immediate_r when

[PATCH] RISC-V: Support highest overlap for wv instructions

2023-12-08 Thread Juzhe-Zhong
According to RVV ISA, we can allow vwadd.wv v2, v2, v3 overlap. Before this patch: nop vsetivlizero,4,e8,m4,tu,ma vle16.v v8,0(a0) vmv8r.v v0,v8 vwsub.wvv0,v8,v12 nop addia4,a0,100 vle16.v v8,0(a4)

[Bug libstdc++/112934] New: excessive code for std::map::erase(key)

2023-12-08 Thread pobrn at protonmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112934 Bug ID: 112934 Summary: excessive code for std::map::erase(key) Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug target/112929] [14] RISC-V vector: Variable clobbered at runtime

2023-12-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112929 --- Comment #5 from Andrew Pinski --- Could this be a linker relaxation issue? Does -Wl,--no-relax solve the issue?

[Bug target/112929] [14] RISC-V vector: Variable clobbered at runtime

2023-12-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112929 --- Comment #4 from Andrew Pinski --- (In reply to Patrick O'Neill from comment #3) > A slightly more reduced testcase without the extra printf: > https://godbolt.org/z/1xjPzs9v5 Note add_em_up should techincally have: __builtin_va_end(ap);

[Bug target/112929] [14] RISC-V vector: Variable clobbered at runtime

2023-12-08 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112929 --- Comment #3 from Patrick O'Neill --- A slightly more reduced testcase without the extra printf: https://godbolt.org/z/1xjPzs9v5

[Bug target/112778] ICE in ppc64-linux-gnu crosscompiler in store_by_pieces since r14-5946-g1ff6d9f7428b06

2023-12-08 Thread aoliva at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112778 Alexandre Oliva changed: What|Removed |Added Status|NEW |ASSIGNED

[Bug target/112804] ICE in aarch64 crosscompiler in plus_constant, at explow.cc:102 with -mabi=ilp32 and -finline-stringops

2023-12-08 Thread aoliva at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112804 Alexandre Oliva changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug middle-end/112784] ICE in smallest_mode_for_size, at stor-layout.cc:356 | -finline-stringops -mavx512cd

2023-12-08 Thread aoliva at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112784 Alexandre Oliva changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug target/112933] New: gcc.target/aarch64/sme2/acle-asm/read_za16_vg1x2.c fails on aarch64_be

2023-12-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112933 Bug ID: 112933 Summary: gcc.target/aarch64/sme2/acle-asm/read_za16_vg1x2.c fails on aarch64_be Product: gcc Version: 14.0 Status: UNCONFIRMED Keywords:

[Bug target/112929] [14] RISC-V vector: Variable clobbered at runtime

2023-12-08 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112929 --- Comment #2 from Patrick O'Neill --- I tried messing around with it - turns out passing the 'b' variable isn't required: https://godbolt.org/z/EKa15xqYP Using a variadic function reproduces the problem: https://godbolt.org/z/n95sxY1Y8

[PATCH] multiflags: fix doc warning

2023-12-08 Thread Alexandre Oliva
Comply with dubious doc warning that after an @xref there must be a comma or a period, not a close parentheses. Build-testing on x86_64-linux-gnu now. Ok to install? for gcc/ChangeLog * doc/invoke.texi (multiflags): Add period after @xref to silence warning. ---

[PATCH] -finline-stringops: check base blksize for memset [PR112778]

2023-12-08 Thread Alexandre Oliva
The recently-added logic for -finline-stringops=memset introduced an assumption that doesn't necessarily hold, namely, that can_store_by_pieces of a larger size implies can_store_by_pieces by smaller sizes. Checks for all sizes the by-multiple-pieces machinery might use before committing to an

[PATCH] -finline-stringops: don't assume ptr_mode ptr in memset [PR112804]

2023-12-08 Thread Alexandre Oliva
On aarch64 -milp32, and presumably on other such targets, ptr can be in a different mode than ptr_mode in the testcase. Cope with it. Regstrapped on x86_64-linux-gnu, also tested the new test on aarch64-elf. Ok to install? for gcc/ChangeLog PR target/112804 * builtins.cc

[PATCH] -finline-stringops: avoid too-wide smallest_int_mode_for_size [PR112784]

2023-12-08 Thread Alexandre Oliva
smallest_int_mode_for_size may abort when the requested mode is not available. Call int_mode_for_size instead, that signals the unsatisfiable request in a more graceful way. Regstrapped on x86_64-linux-gnu. Ok to install? for gcc/ChangeLog PR middle-end/112784 * expr.cc

Re: [PATCH 1/2] c-family: -Waddress-of-packed-member and casts

2023-12-08 Thread Alexandre Oliva
On Nov 22, 2023, Jason Merrill wrote: > Tested x86_64-pc-linux-gnu, OK for trunk? FYI, Linaro's regression tester let me know that my patch reversal, that expected this patch to go in instead, caused two "regressions". https://linaro.atlassian.net/browse/GNU-1067 -- Alexandre Oliva, happy

[PATCH] strub: disable on rl78

2023-12-08 Thread Alexandre Oliva via Gcc
Hello, Jeff, DJ, Thanks for the info. On Dec 7, 2023, Jeff Law wrote: > On 12/6/23 15:03, DJ Delorie wrote: >> Alexandre Oliva writes: >>> This looks like a latent bug in the port. >> I'm not surprised, that port was weird. >> >>> This was just a plain asm insn in strub.c: >>> >>> /* Make

[Bug target/112932] New: [14] RISC-V rv64gcv_zvl256b vector: Incorrect behavior with nested loop array writing

2023-12-08 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112932 Bug ID: 112932 Summary: [14] RISC-V rv64gcv_zvl256b vector: Incorrect behavior with nested loop array writing Product: gcc Version: 14.0 Status: UNCONFIRMED

[Bug target/112931] gcc.target/aarch64/sme2/acle-asm/write_za16_vg1x2.c ICEs on aarch64_be

2023-12-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112931 --- Comment #1 from Andrew Pinski --- There are many of these same ICE on a few testcases.

[Bug target/112931] New: gcc.target/aarch64/sme2/acle-asm/write_za16_vg1x2.c ICEs on aarch64_be

2023-12-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112931 Bug ID: 112931 Summary: gcc.target/aarch64/sme2/acle-asm/write_za16_vg1x2.c ICEs on aarch64_be Product: gcc Version: 14.0 Status: UNCONFIRMED Keywords:

[Bug target/112930] gcc.target/aarch64/sme/call_sm_switch_7.c ICEs on aarch64_be

2023-12-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112930 --- Comment #1 from Andrew Pinski --- gcc.target/aarch64/sme/locally_streaming_3.c fails the same way.

[Bug target/112930] New: gcc.target/aarch64/sme/call_sm_switch_7.c ICEs on aarch64_be

2023-12-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112930 Bug ID: 112930 Summary: gcc.target/aarch64/sme/call_sm_switch_7.c ICEs on aarch64_be Product: gcc Version: 14.0 Status: UNCONFIRMED Keywords:

[PATCH] strub: add note on attribute access

2023-12-08 Thread Alexandre Oliva
On Dec 7, 2023, Alexandre Oliva wrote: > Thanks for raising the issue. Maybe there should be at least a comment > there, and perhaps some asserts to check that pointer and reference > types don't make to indirect_parms. Document why attribute access doesn't need the same treatment as fn spec,

[Bug target/112929] [14] RISC-V vector: Variable clobbered at runtime

2023-12-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112929 --- Comment #1 from Andrew Pinski --- I am not seeing anything wrong with the difference even. What if you change printf for a different function which still takes a variable arguments but does nothing (in a different TU)? Does it still fail?

Re: Re: [PATCH] RISC-V: Add vectorized strcmp.

2023-12-08 Thread 钟居哲
FAIL: gcc.target/riscv/rvv/autovec/builtin/strcmp-run.c execution test FAIL: gcc.target/riscv/rvv/autovec/builtin/strcmp-run.c execution test FAIL: gcc.target/riscv/rvv/autovec/builtin/strcmp-run.c execution test FAIL: gcc.target/riscv/rvv/autovec/builtin/strcmp-run.c execution test FAIL:

[Bug target/112929] New: [14] RISC-V vector: Variable clobbered at runtime

2023-12-08 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112929 Bug ID: 112929 Summary: [14] RISC-V vector: Variable clobbered at runtime Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug fortran/112873] F2023 degree trig functions

2023-12-08 Thread kargl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112873 --- Comment #9 from kargl at gcc dot gnu.org --- I have updated the diff. I don't know have ChangeLog works under git. Here's what I have written. * gcc/fortran/gfortran.texi: Remove the "Extended math intrinsics" node. It documented the

[Bug fortran/112873] F2023 degree trig functions

2023-12-08 Thread kargl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112873 kargl at gcc dot gnu.org changed: What|Removed |Added Attachment #56810|0 |1 is obsolete|

[Bug testsuite/112786] [14 Regression] gcc.dg/tree-ssa/scev-3.c scev-4.c and scev-5.c XPASSing on most ilp32 targets

2023-12-08 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112786 --- Comment #4 from GCC Commits --- The master branch has been updated by Hans-Peter Nilsson : https://gcc.gnu.org/g:0f3bac474e8f6563a59f814ccf7609ced48b1157 commit r14-6353-g0f3bac474e8f6563a59f814ccf7609ced48b1157 Author: Hans-Peter Nilsson

[gcc-wwwdocs COMMITTED] Disallow /cgit for web robots

2023-12-08 Thread Mark Wielaard
Although cgit is more efficient than gitweb it still is not great for bots to go through it. --- htdocs/robots.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/htdocs/robots.txt b/htdocs/robots.txt index c650057b..b9fc830d 100644 --- a/htdocs/robots.txt +++ b/htdocs/robots.txt @@ -6,6 +6,7

[PATCH V2] RISC-V: XFAIL scan dump fails for autovec PR111311

2023-12-08 Thread Edwin Lu
Clean up scan dump failures on linux rv64 vector targets Juzhe mentioned could be ignored for now. This will help reduce noise and make it more obvious if a bug or regression is introduced. The failures that are still reported are either execution failures or failures that are also present on

Re: [PATCH 0/4] v2 of Option handling: add documentation URLs

2023-12-08 Thread David Malcolm
On Tue, 2023-11-21 at 23:43 +, Joseph Myers wrote: > On Tue, 21 Nov 2023, Tobias Burnus wrote: > > > On 21.11.23 14:57, David Malcolm wrote: > > > On Tue, 2023-11-21 at 02:09 +0100, Hans-Peter Nilsson wrote: > > > > Sorry for barging in though I did try finding the relevant > > > >

[Bug middle-end/44300] Spurious array subscript warning, [0] == [1] is not folded

2023-12-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44300 Andrew Pinski changed: What|Removed |Added CC||goon.pri.low at gmail dot com ---

[Bug middle-end/112928] missed-optimization: automatic storage address comparisons

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

[Bug tree-optimization/112928] missed-optimization: automatic storage address comparisons

2023-12-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112928 --- Comment #3 from Andrew Pinski --- Does this show up in real code? If so the code is undefined and should be fixed. Note we could even replace the comparison directly with `__builtin_unreachable ()` and it would be valid transformation due

[Bug tree-optimization/112928] missed-optimization: automatic storage address comparisons

2023-12-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112928 --- Comment #2 from Andrew Pinski --- No compiler I tested changes this to a constant ... I almost want to say this should be closed as won't fix ...

[Bug tree-optimization/112928] missed-optimization: automatic storage address comparisons

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

[Bug tree-optimization/112928] New: missed-optimization: automatic storage address comparisons

2023-12-08 Thread goon.pri.low at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112928 Bug ID: 112928 Summary: missed-optimization: automatic storage address comparisons Product: gcc Version: 13.2.1 Status: UNCONFIRMED Severity: normal

gcc-12-20231208 is now available

2023-12-08 Thread GCC Administrator via Gcc
Snapshot gcc-12-20231208 is now available on https://gcc.gnu.org/pub/gcc/snapshots/12-20231208/ and on various mirrors, see https://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 12 git branch with the following options: git://gcc.gnu.org/git/gcc.git branch

[Bug analyzer/112927] New: -Wanalyzer-tainted-size false positive seen in Linux kernel's drivers/char/ipmi/ipmi_devintf.c

2023-12-08 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112927 Bug ID: 112927 Summary: -Wanalyzer-tainted-size false positive seen in Linux kernel's drivers/char/ipmi/ipmi_devintf.c Product: gcc Version: unknown Status: UNCONFIRMED

GCC 12.3 ICE: format(printf...) failing in C++ with virtual inheritance

2023-12-08 Thread Paul Smith via Gcc
I've tried this with both older versions as well as GCC 12.3 (latest I have access to). This is on GNU/Linux on x86_64. I have the following code: #include class Exception : public std::exception { public: Exception(const char* text, ...) __attribute__((format(printf,

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

2023-12-08 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54367 Bug 54367 depends on bug 83167, which changed state. Bug 83167 Summary: decltype((x)) inside lambda is considered odr-use if x is not a reference https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83167 What|Removed

[Bug c++/83167] decltype((x)) inside lambda is considered odr-use if x is not a reference

2023-12-08 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83167 Patrick Palka changed: What|Removed |Added Target Milestone|--- |14.0 CC|

[Bug c++/83167] decltype((x)) inside lambda is considered odr-use if x is not a reference

2023-12-08 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83167 --- Comment #3 from GCC Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:d9965fef40794d548021d2e34844e5fafeca4ce5 commit r14-6350-gd9965fef40794d548021d2e34844e5fafeca4ce5 Author: Patrick Palka Date:

[PATCH v2] c++: fix ICE with sizeof in a template [PR112869]

2023-12-08 Thread Marek Polacek
On Fri, Dec 08, 2023 at 12:09:18PM -0500, Jason Merrill wrote: > On 12/5/23 15:31, Marek Polacek wrote: > > Bootstrapped/regtested on x86_64-pc-linux-gnu, ok for trunk? > > > > -- >8 -- > > This test shows that we cannot clear *walk_subtrees in > > cp_fold_immediate_r when we're

[pushed] analyzer: avoid taint for (TAINTED % NON_TAINTED)

2023-12-08 Thread David Malcolm
Successfully bootstrapped & regrtested on x86_64-pc-linux-gnu. Pushed to trunk as r14-6349-g0bef72539e585d. gcc/analyzer/ChangeLog: * sm-taint.cc (taint_state_machine::alt_get_inherited_state): Fix handling of TRUNC_MOD_EXPR. gcc/testsuite/ChangeLog: *

[pushed] analyzer: fix ICE on infoleak with poisoned size

2023-12-08 Thread David Malcolm
Successfully bootstrapped & regrtested on x86_64-pc-linux-gnu. Pushed to trunk as r14-6348-g08262e78209ed4. gcc/analyzer/ChangeLog: * region-model.cc (contains_uninit_p): Only check for svalues that the infoleak warning can handle. gcc/testsuite/ChangeLog: *

[pushed][PR112875][LRA]: Fix an assert in lra elimination code

2023-12-08 Thread Vladimir Makarov
The following patch fixes https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112875 The patch was successfully tested and bootstrapped on x86-64 and ppc64le. commit 48cb51827c9eb991b92014a3f59d31eb237ce03f Author: Vladimir N. Makarov Date: Fri Dec 8 15:37:42 2023 -0500 [PR112875][LRA]: Fix

[Bug libstdc++/111052] std::format_to(std::back_inserter(str), "") should write directly to the string

2023-12-08 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111052 --- Comment #2 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #1) > We should also make ranges::copy implement the std::copy optimization for > copying to ostreambuf_iterator, which is an important performance > enhancement.

[Bug rtl-optimization/112875] [14 Regression] ICE: in lra_eliminate_regs_1, at lra-eliminations.cc:670 with -Oz -frounding-math -fno-dce -fno-trapping-math -fno-tree-dce -fno-tree-dse -g

2023-12-08 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112875 --- Comment #4 from GCC Commits --- The master branch has been updated by Vladimir Makarov : https://gcc.gnu.org/g:48cb51827c9eb991b92014a3f59d31eb237ce03f commit r14-6347-g48cb51827c9eb991b92014a3f59d31eb237ce03f Author: Vladimir N. Makarov

[Bug c++/112926] issues with nested lambdas and decltype of uncaptured local variable

2023-12-08 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112926 Patrick Palka changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug c++/112926] New: issues with nested lambdas and decltype of uncaptured local variable

2023-12-08 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112926 Bug ID: 112926 Summary: issues with nested lambdas and decltype of uncaptured local variable Product: gcc Version: unknown Status: UNCONFIRMED Severity:

[Bug c++/63378] decltype and access control issues

2023-12-08 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63378 Patrick Palka changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug sanitizer/112727] [11/12/13 Regression] UBSAN creates GIMPLE path with uninitialized variable

2023-12-08 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112727 Jakub Jelinek changed: What|Removed |Added Summary|[11/12/13/14 Regression]|[11/12/13 Regression] UBSAN

[Bug sanitizer/112727] [11/12/13/14 Regression] UBSAN creates GIMPLE path with uninitialized variable

2023-12-08 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112727 --- Comment #8 from GCC Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:6ddaf06e375e1c15dcda338697ab6ea457e6f497 commit r14-6345-g6ddaf06e375e1c15dcda338697ab6ea457e6f497 Author: Jakub Jelinek Date:

Re: [PATCH] c++, v2: Fix parsing [[]][[]];

2023-12-08 Thread Jason Merrill
On 12/5/23 12:17, Marek Polacek wrote: On Tue, Dec 05, 2023 at 06:00:31PM +0100, Jakub Jelinek wrote: On Tue, Dec 05, 2023 at 09:45:32AM -0500, Marek Polacek wrote: When working on the previous patch I put [[]] [[]] asm (""); into a testcase, but was surprised it wasn't parsed. By wasn't

Re: [PATCH] c++, v2: Don't diagnose ignoring of attributes if all ignored attributes are attribute_ignored_p

2023-12-08 Thread Jason Merrill
On 12/8/23 12:53, Jakub Jelinek wrote: On Fri, Dec 08, 2023 at 12:06:01PM -0500, Jason Merrill wrote: @@ -2,7 +21116,7 @@ cp_parser_elaborated_type_specifier (cp_ } else if (is_declaration && cp_parser_declares_only_class_p (parser)) cplus_decl_attributes (,

Re: [PATCH] c++: Unshare folded SAVE_EXPR arguments during cp_fold [PR112727]

2023-12-08 Thread Jason Merrill
On 12/8/23 12:35, Jakub Jelinek wrote: On Fri, Dec 08, 2023 at 11:51:19AM -0500, Jason Merrill wrote: Do we want to do the same for TARGET_EXPR, since those are handled like SAVE_EXPR in mostly_copy_tree_r? In mostly_copy_tree_r yes, but I don't see cp_fold doing anything for TARGET_EXPRs

[Bug target/112918] [m68k] [LRA] ICE: maximum number of generated reload insns per insn achieved (90)

2023-12-08 Thread schwab--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112918 --- Comment #7 from Andreas Schwab --- spawn -ignore SIGHUP /daten/aranym/gcc/gcc-20231208/Build/gcc/xgcc -B/daten/aranym/gcc/gcc-20231208/Build/gcc/ /daten/aranym/gcc/gcc-20231208/gcc/testsuite/gcc.dg/torture/vshuf-v16qi.c -fdiagnostics-plain

[Bug rtl-optimization/112758] [13/14 Regression] Inconsistent Bitwise AND Operation Result between int and long long int

2023-12-08 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112758 --- Comment #6 from Jakub Jelinek --- I must say I have no idea what WORD_REGISTER_OPERATION says about the upper bits of a paradoxical SUBREG if it is a MEM and load_extend_op (inner_mode) is ZERO_EXTEND (zeros then? Then this optimization is

[Bug target/112918] [m68k] [LRA] ICE: maximum number of generated reload insns per insn achieved (90)

2023-12-08 Thread schwab--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112918 --- Comment #6 from Andreas Schwab --- spawn -ignore SIGHUP /daten/aranym/gcc/gcc-20231208/Build/gcc/xgcc -B/daten/aranym/gcc/gcc-20231208/Build/gcc/ -fdiagnostics-plain-output -mcpu=5235 -Os -c -o pr64461.o /daten/aranym/gcc/gcc-20231208/gcc

[Bug rtl-optimization/112758] [13/14 Regression] Inconsistent Bitwise AND Operation Result between int and long long int

2023-12-08 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112758 --- Comment #5 from Jakub Jelinek --- Oh, and the reason why given the above (and:DI (subreg:DI (mem/c:SI (lo_sum:DI (reg/f:DI 144) (symbol_ref:DI ("globalVar") [flags 0x86] )) [1 globalVar+0 S4 A32]) 0) (const_int

[Bug rtl-optimization/112875] [14 Regression] ICE: in lra_eliminate_regs_1, at lra-eliminations.cc:670 with -Oz -frounding-math -fno-dce -fno-trapping-math -fno-tree-dce -fno-tree-dse -g

2023-12-08 Thread vmakarov at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112875 --- Comment #3 from Vladimir Makarov --- (In reply to Jakub Jelinek from comment #2) > Started with r14-53-g675b1a7f113adb1d737adaf78b4fd90be7a0ed1a I reproduced it and hope to fix it today.

[Bug target/112922] [14 Regression] 465.tonto from SPECFP 2006 fails train run on Aarch64-linux with -O2 and -flto

2023-12-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112922 Andrew Pinski changed: What|Removed |Added Keywords||wrong-code

Re: [PATCH v7 1/1] c++: Initial support for P0847R7 (Deducing This) [PR102609]

2023-12-08 Thread Jason Merrill
On 12/6/23 02:33, waffl3x wrote: Here is the next version, it feels very close to finished. As before, I haven't ran a bootstrap or the full testsuite yet but I did run the explicit-obj tests which completed as expected. There's a few test cases that still need to be written but more tests can

[Bug tree-optimization/112924] [14 regression] ICE when building util-linux (error: gimple_bb (stmt) is set to a wrong basic block)

2023-12-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112924 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |WAITING Keywords|

[Bug tree-optimization/112924] [14 regression] ICE when building util-linux (error: gimple_bb (stmt) is set to a wrong basic block)

2023-12-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112924 Andrew Pinski changed: What|Removed |Added Component|c |tree-optimization Keywords|

[Bug c++/88848] member ambiguous in multiple inheritance lattice

2023-12-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88848 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |12.0

[Bug c++/88848] member ambiguous in multiple inheritance lattice

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

[pushed] c++: Add fixed test [PR88848]

2023-12-08 Thread Marek Polacek
Tested x86_64-pc-linux-gnu, applying to trunk. -- >8 -- This one was fixed by r12-7714-g47da5198766256. PR c++/88848 gcc/testsuite/ChangeLog: * g++.dg/inherit/multiple2.C: New test. --- gcc/testsuite/g++.dg/inherit/multiple2.C | 35 1 file changed, 35

[Bug c++/88848] member ambiguous in multiple inheritance lattice

2023-12-08 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88848 --- Comment #4 from GCC Commits --- The trunk branch has been updated by Marek Polacek : https://gcc.gnu.org/g:2a5a5d5e7d32b21205562a35b307ff69e389b996 commit r14-6344-g2a5a5d5e7d32b21205562a35b307ff69e389b996 Author: Marek Polacek Date:

[Bug c++/88848] member ambiguous in multiple inheritance lattice

2023-12-08 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88848 Marek Polacek changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org

[Bug c++/112658] [12/13 Regression] ICE: finish_expr_stmt with casting an temp array to pointer and constructor call

2023-12-08 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112658 --- Comment #7 from GCC Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:5764825aed613f201a8bc47e5b239027a39691f0 commit r14-6342-g5764825aed613f201a8bc47e5b239027a39691f0 Author: Patrick Palka Date:

[Bug c++/112658] [12/13 Regression] ICE: finish_expr_stmt with casting an temp array to pointer and constructor call

2023-12-08 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112658 --- Comment #8 from GCC Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:0c018a74eb1affe2a1fa385cdddaa93979683420 commit r14-6343-g0c018a74eb1affe2a1fa385cdddaa93979683420 Author: Patrick Palka Date:

[Bug c++/94264] Array-to-pointer conversion not performed on array prvalues

2023-12-08 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94264 --- Comment #9 from GCC Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:5764825aed613f201a8bc47e5b239027a39691f0 commit r14-6342-g5764825aed613f201a8bc47e5b239027a39691f0 Author: Patrick Palka Date:

Re: [PATCH v3 2/2] libphobos: Update build scripts for LoongArch64.

2023-12-08 Thread Iain Buclaw
Excerpts from Yang Yujie's message of Dezember 8, 2023 11:09 am: > libphobos/ChangeLog: > > * m4/druntime/cpu.m4: Support loongarch* targets. > * libdruntime/Makefile.am: Same. > * libdruntime/Makefile.in: Regenerate. > * configure: Regenerate. > --- > libphobos/configure

[PATCH] c++, v2: Don't diagnose ignoring of attributes if all ignored attributes are attribute_ignored_p

2023-12-08 Thread Jakub Jelinek
On Fri, Dec 08, 2023 at 12:06:01PM -0500, Jason Merrill wrote: > > @@ -2,7 +21116,7 @@ cp_parser_elaborated_type_specifier (cp_ > > } > > else if (is_declaration && cp_parser_declares_only_class_p (parser)) > > cplus_decl_attributes (, attributes, (int) > >

Re: [PATCH] v2: Add IntegerRange for -param=min-nondebug-insn-uid= and fix vector growing in LRA and vec [PR112411]

2023-12-08 Thread Vladimir Makarov
On 12/7/23 03:39, Jakub Jelinek wrote: On Thu, Dec 07, 2023 at 09:36:22AM +0100, Jakub Jelinek wrote: So, one way to fix the LRA issue would be just to use lra_insn_recog_data_len = index * 3U / 2; if (lra_insn_recog_data_len <= index) lra_insn_recog_data_len = index + 1; basically

[Bug rtl-optimization/112758] [13/14 Regression] Inconsistent Bitwise AND Operation Result between int and long long int

2023-12-08 Thread segher at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112758 --- Comment #4 from Segher Boessenkool --- WORD_REGISTER_OPERATIONS is extremely ill-defined. Or, it is used for other things than what it stands for, whichever way you want to look at it. A backend that defines the macro to non-zero promises

Re: [PATCH] c++: Unshare folded SAVE_EXPR arguments during cp_fold [PR112727]

2023-12-08 Thread Jakub Jelinek
On Fri, Dec 08, 2023 at 11:51:19AM -0500, Jason Merrill wrote: > Do we want to do the same for TARGET_EXPR, since those are handled like > SAVE_EXPR in mostly_copy_tree_r? In mostly_copy_tree_r yes, but I don't see cp_fold doing anything for TARGET_EXPRs (like it does for SAVE_EXPRs), so I think

[Bug c/112488] [14 Regression] ICE in make_ssa_name_fn with VLA inside type and inlining since r14-1142

2023-12-08 Thread muecker at gwdg dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112488 --- Comment #10 from Martin Uecker --- PATCH: https://gcc.gnu.org/pipermail/gcc-patches/2023-December/639961.html

[Bug c++/112869] [14 Regression] ICE at gimplify_expr, at gimplify.cc:17531 on libopenmpt-0.7.3

2023-12-08 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112869 David Binderman changed: What|Removed |Added CC||dcb314 at hotmail dot com ---

Re: [PATCH] c++: fix ICE with sizeof in a template [PR112869]

2023-12-08 Thread Jason Merrill
On 12/5/23 15:31, Marek Polacek wrote: Bootstrapped/regtested on x86_64-pc-linux-gnu, ok for trunk? -- >8 -- This test shows that we cannot clear *walk_subtrees in cp_fold_immediate_r when we're in_immediate_context, because that, as the comment says, affects cp_fold_r as well. Here we had an

[Bug target/112109] Missing riscv vectorized strcmp (and other) expanders

2023-12-08 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112109 --- Comment #3 from GCC Commits --- The master branch has been updated by Robin Dapp : https://gcc.gnu.org/g:d468718c9a097aeb8794fb1a2df6db2c1064d7f7 commit r14-6341-gd468718c9a097aeb8794fb1a2df6db2c1064d7f7 Author: Robin Dapp Date: Fri

[Bug target/112109] Missing riscv vectorized strcmp (and other) expanders

2023-12-08 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112109 --- Comment #2 from GCC Commits --- The master branch has been updated by Robin Dapp : https://gcc.gnu.org/g:2664964b2f695e947faea4c29dbddd3615cc4b0b commit r14-6340-g2664964b2f695e947faea4c29dbddd3615cc4b0b Author: Robin Dapp Date: Fri

Re: [PATCH] c++: Don't diagnose ignoring of attributes if all ignored attributes are attribute_ignored_p

2023-12-08 Thread Jason Merrill
On 12/6/23 09:10, Jakub Jelinek wrote: On Tue, Dec 05, 2023 at 11:01:20AM -0500, Jason Merrill wrote: And there is another thing I wonder about: with -Wno-attributes= we are supposed to ignore the attributes altogether, but we are actually still warning about them when we emit these generic

[Bug libstdc++/112925] Optimize std::string construction from std::istreambuf_iterator

2023-12-08 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112925 --- Comment #1 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #0) > +#if __cplusplus >= 201103L && 0 Oops, without the && 0 obviously. I was testing performance with and without it.

  1   2   3   >