[Bug rtl-optimization/110940] New: ICE at -O3 on x86_64-linux-gnu: in apply_scale, at profile-count.h:1180

2023-08-07 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110940 Bug ID: 110940 Summary: ICE at -O3 on x86_64-linux-gnu: in apply_scale, at profile-count.h:1180 Product: gcc Version: unknown Status: UNCONFIRMED Severity:

[Bug c++/109181] requires expression type requirement rejects valid type when it is a nested member template

2023-08-07 Thread waffl3x at protonmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109181 --- Comment #6 from waffl3x --- PR 110927 presents a similar use case that originally lead me to this bug, I also posted the workarounds that I had since discovered there. If anyone coming across this bug is looking for a solution you can find

[Bug c++/110927] GCC fails to parse dependent type in concept through partial specialization

2023-08-07 Thread waffl3x at protonmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110927 waffl3x changed: What|Removed |Added CC||waffl3x at protonmail dot com --- Comment #2

[Bug rtl-optimization/110939] [14 Regression] 14.0 ICE at rtl.h:2297 while bootstrapping on loongarch64

2023-08-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110939 Andrew Pinski changed: What|Removed |Added Keywords||build, ice-on-valid-code

[Bug bootstrap/110939] New: 14.0 ICE at rtl.h:2297 while bootstrapping on loongarch64

2023-08-07 Thread panchenghui at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110939 Bug ID: 110939 Summary: 14.0 ICE at rtl.h:2297 while bootstrapping on loongarch64 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal

[Bug c++/110912] False assumption that constructors cannot alias any of their parameters

2023-08-07 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110912 Jiang An changed: What|Removed |Added CC||de34 at live dot cn --- Comment #1 from

[Bug tree-optimization/43529] G++ doesn't optimize away empty loop when index is a double

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

[Bug target/99908] SIMD: negating logical + if_else has a suboptimal codegen.

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

[Bug target/99908] SIMD: negating logical + if_else has a suboptimal codegen.

2023-08-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99908 --- Comment #9 from Andrew Pinski --- Created attachment 55704 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55704=edit testcase

[Bug tree-optimization/14483] More aggressive compare insn elimination

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

[Bug middle-end/100798] a?~t:t and (-(!!a))^t don't produce the same assembly code

2023-08-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100798 --- Comment #3 from Andrew Pinski --- Patch posted: https://gcc.gnu.org/pipermail/gcc-patches/2023-August/626580.html

[Bug modula2/110779] SysClock can not read the clock

2023-08-07 Thread gaius at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110779 --- Comment #8 from Gaius Mulley --- Created attachment 55703 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55703=edit Proposed fix (addendum) Here is a patch which tests for all the functions and structs in wrapclock.cc.

[Bug c++/109761] [11/12 Regression] Nested class destructor's noexcept specification incorrectly considered as too loose compared to the outer class

2023-08-07 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109761 --- Comment #10 from CVS Commits --- The releases/gcc-12 branch has been updated by Patrick Palka : https://gcc.gnu.org/g:ddf411e67cc15a80d635b512b812107985b361d4 commit r12-9804-gddf411e67cc15a80d635b512b812107985b361d4 Author: Patrick Palka

[Bug c++/110197] [13 Regression] Empty constexpr object constructor erronously claims out of range access

2023-08-07 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110197 --- Comment #9 from CVS Commits --- The releases/gcc-13 branch has been updated by Patrick Palka : https://gcc.gnu.org/g:61d24d3f40638326b4a24baadeb25a88610d76d8 commit r13-7693-g61d24d3f40638326b4a24baadeb25a88610d76d8 Author: Patrick Palka

[Bug c++/110566] [13 Regression] ICE when instantiating function template with template template parameter with 2 or more auto parameters with a dependent member template, ICE in tsubst, at cp/pt.cc:1

2023-08-07 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110566 --- Comment #8 from CVS Commits --- The releases/gcc-13 branch has been updated by Patrick Palka : https://gcc.gnu.org/g:2c6e76ff039782401f705cacda60c11f8dfac3b1 commit r13-7692-g2c6e76ff039782401f705cacda60c11f8dfac3b1 Author: Patrick Palka

[Bug c++/108179] [11/12 regression] ICE related to template template parameters in tsubst, at cp/pt.cc:15782

2023-08-07 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108179 --- Comment #12 from CVS Commits --- The releases/gcc-13 branch has been updated by Patrick Palka : https://gcc.gnu.org/g:2c6e76ff039782401f705cacda60c11f8dfac3b1 commit r13-7692-g2c6e76ff039782401f705cacda60c11f8dfac3b1 Author: Patrick Palka

[Bug fortran/109684] compiling failure: complaining about a final subroutine of a type being not PURE (while it is indeed PURE)

2023-08-07 Thread sgk at troutmask dot apl.washington.edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109684 --- Comment #12 from Steve Kargl --- On Mon, Aug 07, 2023 at 10:04:54PM +, kargl at gcc dot gnu.org wrote: > > diff --git a/gcc/fortran/resolve.cc b/gcc/fortran/resolve.cc > index 3cd470ddcca..b0bb8bc1471 100644 > ---

[Bug c/108310] Some warnings that -Wtraditional-conversion causes to be emitted aren't actually controlled by it

2023-08-07 Thread egallager at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108310 --- Comment #5 from Eric Gallager --- (In reply to Jonathan Wakely from comment #4) > void f(float); > > void g() > { > f(1.0); > } > > conv.c: In function ‘g’: > conv.c:5:5: warning: passing argument 1 of ‘f’ as ‘float’ rather than >

[Bug fortran/109684] compiling failure: complaining about a final subroutine of a type being not PURE (while it is indeed PURE)

2023-08-07 Thread sgk at troutmask dot apl.washington.edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109684 --- Comment #11 from Steve Kargl --- On Mon, Aug 07, 2023 at 10:04:54PM +, kargl at gcc dot gnu.org wrote: > > Note final->attr.pure = 0 seems to contradict C1595 while constructing > the wrapper. I'm not too familiar with this portion of

[Bug fortran/109684] compiling failure: complaining about a final subroutine of a type being not PURE (while it is indeed PURE)

2023-08-07 Thread kargl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109684 kargl at gcc dot gnu.org changed: What|Removed |Added CC||kargl at gcc dot gnu.org

[Bug c++/110938] [11/12/13/14 Regression] miscompile if implicit special member is deleted and mutable

2023-08-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110938 --- Comment #2 from Andrew Pinski --- Note 4.8.5 (and before), seems to have the wrong ABI for non-mutable case too.

[Bug c++/110938] [11/12/13/14 Regression] miscompile if implicit special member is deleted and mutable

2023-08-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110938 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |11.5 Summary|miscompile if

[Bug c++/110938] miscompile if implicit special member is deleted and mutable

2023-08-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110938 Andrew Pinski changed: What|Removed |Added Summary|miscompile if implicit |miscompile if implicit

[Bug c++/110938] New: miscompile if implicit special member is deleted in a subtle way

2023-08-07 Thread richard-gccbugzilla at metafoo dot co.uk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110938 Bug ID: 110938 Summary: miscompile if implicit special member is deleted in a subtle way Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal

[Bug libstdc++/110917] std::format_to(int*, ...) fails to compile because of _S_make_span

2023-08-07 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110917 --- Comment #4 from CVS Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:c5ea5aecac323e9094e4dc967f54090cb244bc6a commit r14-3068-gc5ea5aecac323e9094e4dc967f54090cb244bc6a Author: Jonathan Wakely

[Bug libstdc++/110860] std::format("{:f}",2e304) invokes undefined behaviour

2023-08-07 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110860 --- Comment #5 from CVS Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:bb3ceeb6520c13fc5ca08af7d43fbd3f975e72b0 commit r14-3069-gbb3ceeb6520c13fc5ca08af7d43fbd3f975e72b0 Author: Jonathan Wakely

[Bug libstdc++/110862] format out of bounds read on format string "{0:{0}"

2023-08-07 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110862 --- Comment #4 from CVS Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:5d87f71bb462ccb78dd3d9d810ea08d96869cb4b commit r14-3066-g5d87f71bb462ccb78dd3d9d810ea08d96869cb4b Author: Jonathan Wakely

[Bug ipa/105990] Dead code elimination failed at -O3

2023-08-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105990 --- Comment #4 from Andrew Pinski --- (In reply to Hongtao.liu from comment #1) > foo() also can be eliminated. This one is similar to PR 105832 really. ``` _2 = (int) a.2_1; _3 = 2 >> _2; if (_3 == 2) goto ; [34.00%] else goto

[Bug fortran/109684] compiling failure: complaining about a final subroutine of a type being not PURE (while it is indeed PURE)

2023-08-07 Thread neil.n.carlson at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109684 --- Comment #9 from Neil Carlson --- Bug is still present in 13.2.0.

[Bug libstdc++/67791] [10 Regression] Crash using std::thread and iostream with dynamic loading of a shared library

2023-08-07 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67791 --- Comment #17 from Jonathan Wakely --- GCC 9 hasn't changed, so it must be something in your Ubuntu environment or your code. I don't think the RTLD_xxx approach was ever robust, the libpthread.so library needs to be loaded before the first

[Bug middle-end/100798] a?~t:t and (-(!!a))^t don't produce the same assembly code

2023-08-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100798 Andrew Pinski changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |pinskia at gcc dot gnu.org

[Bug tree-optimization/110937] (bool0 ? bool1^1 : bool1) is not optimized to bool0 ^ bool1

2023-08-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110937 --- Comment #2 from Andrew Pinski --- (In reply to Andrew Pinski from comment #1) > Created attachment 55702 [details] > Patch which I am testing Actually I am going to fix this with PR 100798.

[Bug tree-optimization/110937] (bool0 ? bool1^1 : bool1) is not optimized to bool0 ^ bool1

2023-08-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110937 --- Comment #1 from Andrew Pinski --- Created attachment 55702 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55702=edit Patch which I am testing

[Bug tree-optimization/110937] (bool0 ? bool1^1 : bool1) is not optimized to bool0 ^ bool1

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

[Bug target/110908] [aarch64] Internal compiler error when using -ffixed-x30

2023-08-07 Thread zach-gcc at cs dot stanford.edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110908 --- Comment #5 from zach-gcc at cs dot stanford.edu --- I am implementing software fault isolation on top of GCC and would like for GCC to only ever store addresses in x30. Use of x30 in its link register role is desired (saving/restoring etc.

[Bug ipa/110378] IPA-SRA for destructors

2023-08-07 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110378 --- Comment #6 from CVS Commits --- The master branch has been updated by Martin Jambor : https://gcc.gnu.org/g:da1a888b524d620c7a17f368b69c46934b69495c commit r14-3038-gda1a888b524d620c7a17f368b69c46934b69495c Author: Martin Jambor Date:

[Bug modula2/110779] SysClock can not read the clock

2023-08-07 Thread ro at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110779 Rainer Orth changed: What|Removed |Added CC||ro at gcc dot gnu.org

[Bug tree-optimization/110937] New: (bool0 ? bool1^1 : bool1) is not optimized to bool0 ^ bool1

2023-08-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110937 Bug ID: 110937 Summary: (bool0 ? bool1^1 : bool1) is not optimized to bool0 ^ bool1 Product: gcc Version: 14.0 Status: UNCONFIRMED Keywords:

[Bug libstdc++/67791] [10 Regression] Crash using std::thread and iostream with dynamic loading of a shared library

2023-08-07 Thread colin.davidson at codeplay dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67791 colin.davidson at codeplay dot com changed: What|Removed |Added CC||colin.davidson at

[Bug target/110934] m68k: ICE with -fzero-call-used-regs=all compiling openssh 9.3p2

2023-08-07 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110934 Mikael Pettersson changed: What|Removed |Added CC||mikpelinux at gmail dot com ---

[Bug target/110899] RFE: Attributes preserve_most and preserve_all

2023-08-07 Thread matz at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110899 --- Comment #9 from Michael Matz --- (In reply to Florian Weimer from comment #8) > (In reply to Michael Matz from comment #7) > > > > Does the clang implementation take into account the various problematic > > > > cases that arise when calling

[Bug target/110899] RFE: Attributes preserve_most and preserve_all

2023-08-07 Thread fw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110899 --- Comment #8 from Florian Weimer --- (In reply to Michael Matz from comment #7) > > > Does the clang implementation take into account the various problematic > > > cases that arise when calling a normal function from a (say) preserve_all > >

[Bug tree-optimization/110931] [14 Regression] Dead Code Elimination Regression since r14-2890-gcc2003cd875

2023-08-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110931 --- Comment #3 from Andrew Pinski --- Here is one that has always failed due to a similar issue where the inner cast was removed: ``` void foo(void); int l=1000; int main(void) { short t = l; int t1 = t; if (t1 == 0) { signed char b

[Bug sanitizer/110936] New: if constexpr: member function pointers cannot be checked with ubsan

2023-08-07 Thread jeanmichael.celerier at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110936 Bug ID: 110936 Summary: if constexpr: member function pointers cannot be checked with ubsan Product: gcc Version: 13.2.1 Status: UNCONFIRMED Severity: normal

[Bug analyzer/110933] Add warnings to detect wrapping happening inside a loop (an infinite loop)

2023-08-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110933 Andrew Pinski changed: What|Removed |Added Summary|Add warning flags to check |Add warnings to detect

[Bug c++/110930] Fix-it hints suggest wrong header for names in the global namespace

2023-08-07 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110930 --- Comment #5 from Jonathan Wakely --- Ah yes, this is a dup of the second half of that one, but maybe worth keeping it separate.

[Bug c++/110930] Fix-it hints suggest wrong header for names in the global namespace

2023-08-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110930 --- Comment #4 from Andrew Pinski --- I see Jonathan had mentioned this issue in bug 85690 comment #1 too.

[Bug target/110899] RFE: Attributes preserve_most and preserve_all

2023-08-07 Thread matz at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110899 --- Comment #7 from Michael Matz --- (In reply to Florian Weimer from comment #5) > > It also makes argument registers be callee-saved, which is very > > unconventional. > > Isn't this done for the this pointer in some C++ ABIs? There are

[Bug c++/110930] Fix-it hints suggest wrong header for names in the global namespace

2023-08-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110930 Andrew Pinski changed: What|Removed |Added CC||pinskia at gcc dot gnu.org --- Comment

[Bug target/110926] [14 regression] Bootstrap failure (matmul_i1.c:1781:1: internal compiler error: RTL check: expected elt 0 type 'i' or 'n', have 'w' (rtx const_int) in vpternlog_redundant_operand_m

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

[Bug tree-optimization/110931] [14 Regression] Dead Code Elimination Regression since r14-2890-gcc2003cd875

2023-08-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110931 --- Comment #2 from Andrew Pinski --- Basically there is a missing VRP happening here: l.0_1 [irange] int [-INF, -65536][0, 0][65536, +INF] Partial equiv (b_6 pe8 l.0_1) : b_6 = (char) l.0_1; ... Obvious that b_6 will have the range

[Bug tree-optimization/110931] [14 Regression] Dead Code Elimination Regression since r14-2890-gcc2003cd875

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

[Bug tree-optimization/110931] [14 Regression] Dead Code Elimination Regression since r14-2890-gcc2003cd875

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

[Bug target/110934] m68k: ICE with -fzero-call-used-regs=all compiling openssh 9.3p2

2023-08-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110934 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug tree-optimization/109959] `(a > 1) ? 0 : (a == 1)` is not optimized when spelled out at -O2+

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

[Bug tree-optimization/109959] `(a > 1) ? 0 : (a == 1)` is not optimized when spelled out at -O2+

2023-08-07 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109959 --- Comment #12 from CVS Commits --- The trunk branch has been updated by Andrew Pinski : https://gcc.gnu.org/g:b57bd27cb68fdbe5d9dcd571b1cb66f72b841290 commit r14-3036-gb57bd27cb68fdbe5d9dcd571b1cb66f72b841290 Author: Andrew Pinski Date:

[Bug libstdc++/110917] std::format_to(int*, ...) fails to compile because of _S_make_span

2023-08-07 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110917 --- Comment #3 from Jonathan Wakely --- It fails for non-contrived cases like this too: char8_t buf[32]; std::format_to(buf, "");

[Bug c/24542] potential unwanted truncation of operation overflow should be warned on assignment to wider variable

2023-08-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24542 --- Comment #16 from Andrew Pinski --- (In reply to Niklas Hambüchen from comment #15) > Another common integer overflow bug type is the "for (u32 i = 0; i < u64; > ++i)" pattern, as well as general widening comparisons. > > I filed bug 110933

[Bug libstdc++/110917] std::format_to(int*, ...) fails to compile because of _S_make_span

2023-08-07 Thread arthur.j.odwyer at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110917 --- Comment #2 from Arthur O'Dwyer --- > Alternatively, we could replace the contiguous_iterator<_OutIter> constraint > with constructible_from, _OutIter, iter_difference_t<_OutIter>>. I think `is_same` is preferable to

[Bug c++/110933] Add warning flags to check against integer overflow

2023-08-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110933 --- Comment #3 from Andrew Pinski --- Try -Wconversion. Also there is no overflow here as unsigned is always defined as wrapping.

[Bug modula2/110779] SysClock can not read the clock

2023-08-07 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110779 --- Comment #6 from CVS Commits --- The releases/gcc-13 branch has been updated by Gaius Mulley : https://gcc.gnu.org/g:4f8d84955dd5c9d2882d09e9c249240efe3a02aa commit r13-7691-g4f8d84955dd5c9d2882d09e9c249240efe3a02aa Author: Gaius Mulley

[Bug libstdc++/110853] [c++-concepts] Bad interaction between deduction guide with decay and constraints

2023-08-07 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110853 Patrick Palka changed: What|Removed |Added CC||ppalka at gcc dot gnu.org --- Comment

[Bug target/110899] RFE: Attributes preserve_most and preserve_all

2023-08-07 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110899 Jan Hubicka changed: What|Removed |Added CC||hubicka at gcc dot gnu.org --- Comment

[Bug target/110899] RFE: Attributes preserve_most and preserve_all

2023-08-07 Thread fw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110899 --- Comment #5 from Florian Weimer --- (In reply to Michael Matz from comment #3) > For ABIs you generally want a good mix between caller- and callee-saved > registers. The x86-64 psABI didn't do that on the SSE regs for conscious, but >

[Bug middle-end/110869] [14 regression] ICE in decompose, at rtl.h:2297

2023-08-07 Thread stefansf at linux dot ibm.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110869 --- Comment #18 from Stefan Schulze Frielinghaus --- Thanks again for testing. Very much appreciated! I like the idea of a comment and posted a patch: https://gcc.gnu.org/pipermail/gcc-patches/2023-August/626514.html

[Bug target/110908] [aarch64] Internal compiler error when using -ffixed-x30

2023-08-07 Thread rearnsha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110908 Richard Earnshaw changed: What|Removed |Added Last reconfirmed||2023-08-07

[Bug tree-optimization/110935] Missed BB reduction vectorization because of missed eliding of a permute

2023-08-07 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110935 Richard Biener changed: What|Removed |Added Target||x86_64-*-* Known to fail|

[Bug tree-optimization/110935] New: Missed BB reduction vectorization because of missed eliding of a permute

2023-08-07 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110935 Bug ID: 110935 Summary: Missed BB reduction vectorization because of missed eliding of a permute Product: gcc Version: 13.1.0 Status: UNCONFIRMED Severity:

[Bug target/110901] -march does not override -mcpu (big.little on aarch64

2023-08-07 Thread rearnsha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110901 Richard Earnshaw changed: What|Removed |Added Last reconfirmed||2023-08-07 Ever confirmed|0

[Bug target/110926] [14 regression] Bootstrap failure (matmul_i1.c:1781:1: internal compiler error: RTL check: expected elt 0 type 'i' or 'n', have 'w' (rtx const_int) in vpternlog_redundant_operand_m

2023-08-07 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110926 --- Comment #10 from Hongtao.liu --- Fixed in GCC14.

[Bug target/110926] [14 regression] Bootstrap failure (matmul_i1.c:1781:1: internal compiler error: RTL check: expected elt 0 type 'i' or 'n', have 'w' (rtx const_int) in vpternlog_redundant_operand_m

2023-08-07 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110926 --- Comment #9 from CVS Commits --- The master branch has been updated by hongtao Liu : https://gcc.gnu.org/g:af6cfd7b663909688c6ca55b6e9f859cdde4310f commit r14-3034-gaf6cfd7b663909688c6ca55b6e9f859cdde4310f Author: liuhongt Date: Mon Aug

[Bug libstdc++/110432] macOS: Segmentation fault when using stdlibc++ from gcc 13.1 in combination with clang-16

2023-08-07 Thread sascha.scandella at dentsplysirona dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110432 --- Comment #19 from Sascha Scandella --- (In reply to Jonathan Wakely from comment #17) > The fix has been backported to gcc-13 now. There should be a release > candidate for 13.2 in the next day or so, please try it out on macOS to make >

[Bug target/110899] RFE: Attributes preserve_most and preserve_all

2023-08-07 Thread matz at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110899 --- Comment #4 from Michael Matz --- (In reply to Florian Weimer from comment #2) > I tried to write up something for the x86-64 psABI: > > Document the ABI for __preserve_most__ function calls >

[Bug target/110921] Relax _tzcnt_u32 support x86, all x86 arch support for this instrunction

2023-08-07 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110921 --- Comment #11 from Hongtao.liu --- (In reply to 罗勇刚(Yonggang Luo) from comment #10) > (In reply to Hongtao.liu from comment #9) > > > > Without `-mbmi` option, gcc can not compile and all other three compiler > > > can compile. > > > > As

[Bug target/110899] RFE: Attributes preserve_most and preserve_all

2023-08-07 Thread matz at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110899 --- Comment #3 from Michael Matz --- Huh, since when does clang implement this? See also https://gcc.gnu.org/pipermail/gcc-patches/2023-July/624004.html where I asked for comments about a similar, but not same, mechanism. I came from the

[Bug target/110921] Relax _tzcnt_u32 support x86, all x86 arch support for this instrunction

2023-08-07 Thread luoyonggang at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110921 --- Comment #10 from 罗勇刚(Yonggang Luo) --- (In reply to Hongtao.liu from comment #9) > > Without `-mbmi` option, gcc can not compile and all other three compiler > > can compile. > > As long as it keeps semantics(respect zero input), I think

[Bug middle-end/110869] [14 regression] ICE in decompose, at rtl.h:2297

2023-08-07 Thread ro at CeBiTec dot Uni-Bielefeld.DE via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110869 --- Comment #17 from ro at CeBiTec dot Uni-Bielefeld.DE --- > --- Comment #16 from Stefan Schulze Frielinghaus ibm.com> --- > Turns out that my dejagnu foo is weak ;-) I came up with a wrong target > selector. Should be fixed in the new

[Bug target/110899] RFE: Attributes preserve_most and preserve_all

2023-08-07 Thread fw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110899 Florian Weimer changed: What|Removed |Added CC||fw at gcc dot gnu.org --- Comment #2

[Bug c++/110930] Fix-it hints suggest wrong header for names in the global namespace

2023-08-07 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110930 --- Comment #2 from Jonathan Wakely --- Yeah, that using-directive complicates things.

[Bug c++/110930] Fix-it hints suggest wrong header for names in the global namespace

2023-08-07 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110930 Richard Biener changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug tree-optimization/110932] [14 Regression] Dead Code Elimination Regression since r14-2230-g7e904d6c7f2

2023-08-07 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110932 Richard Biener changed: What|Removed |Added Target Milestone|--- |14.0 CC|

[Bug rtl-optimization/110934] m68k: ICE with -fzero-call-used-regs=all compiling openssh 9.3p2

2023-08-07 Thread wbx at openadk dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110934 --- Comment #2 from Waldemar Brodkorb --- Created attachment 55701 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55701=edit bsd-closefrom preprocessed

[Bug c++/110933] Add warning flags to check against integer overflow

2023-08-07 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110933 --- Comment #2 from Richard Biener --- I think there should be specific warnings for the specific cases, not one that tries to be general. The example you give might be -Wiv-bound-conversion?

[Bug rtl-optimization/110934] m68k: ICE with -fzero-call-used-regs=all compiling openssh 9.3p2

2023-08-07 Thread wbx at openadk dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110934 --- Comment #3 from Waldemar Brodkorb --- Is this correct to use -E to generate the file?

[Bug rtl-optimization/110934] m68k: ICE with -fzero-call-used-regs=all compiling openssh 9.3p2

2023-08-07 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110934 Richard Biener changed: What|Removed |Added Target||m68k Component|c

[Bug target/110762] [11/12/13 Regression] inappropriate use of SSE (or AVX) insns for v2sf mode operations

2023-08-07 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110762 --- Comment #24 from CVS Commits --- The master branch has been updated by hongtao Liu : https://gcc.gnu.org/g:831017d5e72173f2c58e5475b7fcd35ee07a601f commit r14-3032-g831017d5e72173f2c58e5475b7fcd35ee07a601f Author: liuhongt Date: Fri

[Bug target/110921] Relax _tzcnt_u32 support x86, all x86 arch support for this instrunction

2023-08-07 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110921 --- Comment #9 from Hongtao.liu --- > There is a redundant xor instrunction, There's false dependence issue on some specific processors. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62011 > Without `-mbmi` option, gcc can not compile and all

[Bug c/110934] New: m68k: ICE with -fzero-call-used-regs=all compiling openssh 9.3p2

2023-08-07 Thread wbx at openadk dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110934 Bug ID: 110934 Summary: m68k: ICE with -fzero-call-used-regs=all compiling openssh 9.3p2 Product: gcc Version: 13.2.0 Status: UNCONFIRMED Severity: normal

[Bug ipa/106116] Missed optimization: in no_reorder-attributed functions, tail calls to the subsequent function could just be function-to-function fallthrough

2023-08-07 Thread pskocik at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106116 --- Comment #4 from Petr Skocik --- It would be interesting to do this at the assembler level, effectively completely turning what's equivalent to `jmp 1f; 1:` to nothing. This would also be in line with the GNU assembler's apparent philosophy

[Bug c/24542] potential unwanted truncation of operation overflow should be warned on assignment to wider variable

2023-08-07 Thread mail+gcc at nh2 dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24542 --- Comment #15 from Niklas Hambüchen --- Another common integer overflow bug type is the "for (u32 i = 0; i < u64; ++i)" pattern, as well as general widening comparisons. I filed bug 110933 for those; just linking it here for people interested

[Bug c++/110933] Add warning flags to check against integer overflow

2023-08-07 Thread mail+gcc at nh2 dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110933 --- Comment #1 from Niklas Hambüchen --- A tangentially related issue is bug 24542 which is about another common overflow bug, the pattern "u64 = u32 * u32". Just linking it here because people interested in solving integer overflow issues may

[Bug c++/110933] New: Add warning flags to check against integer overflow

2023-08-07 Thread mail+gcc at nh2 dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110933 Bug ID: 110933 Summary: Add warning flags to check against integer overflow Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3

[Bug tree-optimization/110932] New: [14 Regression] Dead Code Elimination Regression since r14-2230-g7e904d6c7f2

2023-08-07 Thread theodort at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110932 Bug ID: 110932 Summary: [14 Regression] Dead Code Elimination Regression since r14-2230-g7e904d6c7f2 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity:

[Bug target/110921] Relax _tzcnt_u32 support x86, all x86 arch support for this instrunction

2023-08-07 Thread luoyonggang at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110921 --- Comment #8 from 罗勇刚(Yonggang Luo) --- (In reply to Hongtao.liu from comment #7) > No, I think what clang does is correct, Thanks, yeap, according to https://github.com/llvm/llvm-project/issues/64477 I think clang did it well. GCC also

[Bug tree-optimization/110931] New: [14 Regression] Dead Code Elimination Regression since r14-2890-gcc2003cd875

2023-08-07 Thread theodort at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110931 Bug ID: 110931 Summary: [14 Regression] Dead Code Elimination Regression since r14-2890-gcc2003cd875 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity:

[Bug target/110696] RISC-V: -march doesn't imply correctly

2023-08-07 Thread juzhe.zhong at rivai dot ai via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110696 JuzheZhong changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug tree-optimization/53947] [meta-bug] vectorizer missed-optimizations

2023-08-07 Thread juzhe.zhong at rivai dot ai via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53947 Bug 53947 depends on bug 110897, which changed state. Bug 110897 Summary: RISC-V: Fail to vectorize shift https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110897 What|Removed |Added

[Bug tree-optimization/110897] RISC-V: Fail to vectorize shift

2023-08-07 Thread juzhe.zhong at rivai dot ai via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110897 JuzheZhong changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/110930] New: Fix-it hints suggest wrong header for names in the global namespace

2023-08-07 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110930 Bug ID: 110930 Summary: Fix-it hints suggest wrong header for names in the global namespace Product: gcc Version: 13.1.1 Status: UNCONFIRMED Keywords:

[Bug c++/99404] Diagnostics for undeclared members of a namespace don't say "namespace"

2023-08-07 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99404 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

  1   2   >