[Bug tree-optimization/106164] (a > b) & (a >= b) does not get optimized until reassoc1

2023-07-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106164 --- Comment #9 from Andrew Pinski --- Created attachment 55658 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55658=edit Secondary patch to add the thing I mentioned Note this does not handle the constant case since we change `a >= 2`

[Bug tree-optimization/106164] (a > b) & (a >= b) does not get optimized until reassoc1

2023-07-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106164 --- Comment #8 from Andrew Pinski --- (In reply to Andrew Pinski from comment #7) > Created attachment 55657 [details] > Patch which just needs some testcases > > This simple patch implements what I Mentioned about extending those other >

[Bug tree-optimization/106164] (a > b) & (a >= b) does not get optimized until reassoc1

2023-07-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106164 --- Comment #7 from Andrew Pinski --- Created attachment 55657 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55657=edit Patch which just needs some testcases This simple patch implements what I Mentioned about extending those other

[Bug modula2/110125] Variables are reported as uninitialized when only set inside WITH statement

2023-07-29 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110125 --- Comment #7 from CVS Commits --- The releases/gcc-13 branch has been updated by Gaius Mulley : https://gcc.gnu.org/g:3fd979bf568d91016b797818e6c9c940b6f389bd commit r13-7650-g3fd979bf568d91016b797818e6c9c940b6f389bd Author: Gaius Mulley

[Bug tree-optimization/106164] (a > b) & (a >= b) does not get optimized until reassoc1

2023-07-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106164 --- Comment #6 from Andrew Pinski --- I think I have a better patch. There are patterns for: Convert (X OP1 CST1) || (X OP2 CST2). externding them easily to support: Convert (X OP1 Y) || (X OP2 Y). is a few lines. Don't even need to call

[Bug fortran/110360] ABI issue with character,value dummy argument

2023-07-29 Thread dje at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110360 --- Comment #36 from David Edelsohn --- I don't know enough FORTRAN90 to instruct the compiler to use an external function as if it were native. EXTERNAL :: MYFUNC changes the calling convention. But if I manually change the assembly code so

[Bug fortran/110360] ABI issue with character,value dummy argument

2023-07-29 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110360 --- Comment #35 from anlauf at gcc dot gnu.org --- (In reply to David Edelsohn from comment #34) > AIX POWER BE output: > > $ ./a.out > val(fortran): 65 A > val(fortran):0 > val(fortran):0 > val_c:

[Bug modula2/110189] Using an unknown TYPE as argument to VAL gives ICE

2023-07-29 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110189 --- Comment #6 from CVS Commits --- The releases/gcc-13 branch has been updated by Gaius Mulley : https://gcc.gnu.org/g:8b0bd9ae4e2927f770da352ac64261411e6d652e commit r13-7647-g8b0bd9ae4e2927f770da352ac64261411e6d652e Author: Gaius Mulley

[Bug fortran/110360] ABI issue with character,value dummy argument

2023-07-29 Thread dje at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110360 --- Comment #34 from David Edelsohn --- AIX POWER BE output: $ ./a.out val(fortran): 65 A val(fortran):0 val(fortran):0 val_c: char(65)='A' val_c: char(65)='A' val_c: char(804399656)='('

[Bug fortran/108961] Segfault when associating to pointer from C_F_POINTER

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

[Bug modula2/110126] Variables are reported as unused when only referenced by ASM statements

2023-07-29 Thread gaius at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110126 Gaius Mulley changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution|---

[Bug fortran/110360] ABI issue with character,value dummy argument

2023-07-29 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110360 --- Comment #33 from anlauf at gcc dot gnu.org --- (In reply to David Edelsohn from comment #32) > I'm leaning back to big-endian vs little-endian, and not a struct issue. A > little-endian STRING will start at the lowest address and a

[Bug modula2/110126] Variables are reported as unused when only referenced by ASM statements

2023-07-29 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110126 --- Comment #16 from CVS Commits --- The releases/gcc-13 branch has been updated by Gaius Mulley : https://gcc.gnu.org/g:4fa9afdc9b52cfa9ea16443418de29e0e31b293b commit r13-7646-g4fa9afdc9b52cfa9ea16443418de29e0e31b293b Author: Gaius Mulley

[Bug tree-optimization/100864] (a&!b) | b is not opimized to a | b for comparisons

2023-07-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100864 Andrew Pinski changed: What|Removed |Added URL|https://gcc.gnu.org/piperma |https://gcc.gnu.org/piperma

[Bug fortran/110360] ABI issue with character,value dummy argument

2023-07-29 Thread dje at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110360 --- Comment #32 from David Edelsohn --- i think that I see part of the difference. The 005t.original dump shows (intermingled with sources) ! call val ("B","B") val (&"B"[1]{lb: 1 sz: 1}, "B", 1, 1); ! call val ("A",char(65)) val

[Bug c++/91415] Invalid warning for C++17 sequencing of shift operator E1<

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

[Bug target/110790] [14 Regression] gcc -m32 generates invalid bit test code on gmp-6.2.1

2023-07-29 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110790 --- Comment #7 from Sergei Trofimovich --- The new change did not break `grep`, `gmp` and `mpfr` on x86_64-linux and i686-linux. Success!

[Bug modula2/109952] Inconsistent HIGH values with 'ARRAY OF CHAR'

2023-07-29 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109952 --- Comment #6 from CVS Commits --- The releases/gcc-13 branch has been updated by Gaius Mulley : https://gcc.gnu.org/g:b555f824d6b6f2ab759f57098a7b4b3b47470c64 commit r13-7645-gb555f824d6b6f2ab759f57098a7b4b3b47470c64 Author: Gaius Mulley

[Bug modula2/110126] Variables are reported as unused when only referenced by ASM statements

2023-07-29 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110126 --- Comment #15 from CVS Commits --- The releases/gcc-13 branch has been updated by Gaius Mulley : https://gcc.gnu.org/g:3ad40f65a7c89af2f3cb71c06e327ee33a996bd4 commit r13-7644-g3ad40f65a7c89af2f3cb71c06e327ee33a996bd4 Author: Gaius Mulley

[Bug target/110787] [14 regression] ICE building SYSTEM.def

2023-07-29 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110787 --- Comment #6 from CVS Commits --- The master branch has been updated by Roger Sayle : https://gcc.gnu.org/g:e68a31549d9827030391d837951be96a5f95f291 commit r14-2866-ge68a31549d9827030391d837951be96a5f95f291 Author: Roger Sayle Date: Sat

[Bug target/110790] [14 Regression] gcc -m32 generates invalid bit test code on gmp-6.2.1

2023-07-29 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110790 --- Comment #6 from CVS Commits --- The master branch has been updated by Roger Sayle : https://gcc.gnu.org/g:e68a31549d9827030391d837951be96a5f95f291 commit r14-2866-ge68a31549d9827030391d837951be96a5f95f291 Author: Roger Sayle Date: Sat

[Bug modula2/110019] Reported line numbers ar off-by-1 when preprocessing source files

2023-07-29 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110019 --- Comment #5 from CVS Commits --- The releases/gcc-13 branch has been updated by Gaius Mulley : https://gcc.gnu.org/g:07c1033f003a858f4bfc6bb9e6b7ce67670db974 commit r13-7643-g07c1033f003a858f4bfc6bb9e6b7ce67670db974 Author: Gaius Mulley

[Bug c++/110845] Function call when it should inline?

2023-07-29 Thread deco33000 at yandex dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110845 --- Comment #4 from KL --- My mistake indeed, You are right everything is OK :+1

[Bug modula2/110003] Wrong source line listed for unused parameters

2023-07-29 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110003 --- Comment #5 from CVS Commits --- The releases/gcc-13 branch has been updated by Gaius Mulley : https://gcc.gnu.org/g:6ace58a7241d500a9f57521a581d59f7a2f8b9fd commit r13-7641-g6ace58a7241d500a9f57521a581d59f7a2f8b9fd Author: Gaius Mulley

[Bug c++/110850] New: Evaluation order of assignment operands

2023-07-29 Thread bugreport0 at proton dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110850 Bug ID: 110850 Summary: Evaluation order of assignment operands Product: gcc Version: 13.2.0 URL: https://godbolt.org/z/89TPG4eaK Status: UNCONFIRMED Keywords:

[Bug c++/110848] Consider enabling -Wvla by default in C++ modes

2023-07-29 Thread aaron at aaronballman dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110848 --- Comment #6 from Aaron Ballman --- (In reply to Andrew Pinski from comment #4) > Maybe my issue is this has been a documented extension for 20 years now. Which is totally fair -- we don't usually enable congratulatory diagnostics by

[Bug ipa/93385] [11 Regression] wrong code with u128 modulo at -O2 -fno-dce -fno-ipa-cp -fno-tree-dce

2023-07-29 Thread rguenther at suse dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93385 --- Comment #54 from rguenther at suse dot de --- > Am 29.07.2023 um 11:16 schrieb xry111 at gcc dot gnu.org > : > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93385 > > Xi Ruoyao changed: > > What|Removed

[Bug ipa/93385] [11 Regression] wrong code with u128 modulo at -O2 -fno-dce -fno-ipa-cp -fno-tree-dce

2023-07-29 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93385 Xi Ruoyao changed: What|Removed |Added CC||xry111 at gcc dot gnu.org --- Comment #53

[Bug ipa/93385] [11 Regression] wrong code with u128 modulo at -O2 -fno-dce -fno-ipa-cp -fno-tree-dce

2023-07-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93385 --- Comment #52 from Andrew Pinski --- *** Bug 110818 has been marked as a duplicate of this bug. ***

[Bug ipa/110818] [11 Regression] Segmentation fault with '-O3 -fno-dce -fno-ipa-cp -fno-tree-dce -fno-tree-sink'

2023-07-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110818 Andrew Pinski changed: What|Removed |Added Resolution|--- |DUPLICATE

[Bug ipa/110818] [11 Regression] Segmentation fault with '-O3 -fno-dce -fno-ipa-cp -fno-tree-dce -fno-tree-sink'

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

[Bug ipa/110818] [11 Regression] Segmentation fault with '-O3 -fno-dce -fno-ipa-cp -fno-tree-dce -fno-tree-sink'

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

[Bug ipa/110818] [11 Regression] Segmentation fault with '-O3 -fno-dce -fno-ipa-cp -fno-tree-dce -fno-tree-sink'

2023-07-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110818 --- Comment #16 from Andrew Pinski --- (In reply to Andrew Pinski from comment #15) > _4 = *i_3(D); > > That is the problem. > cmpl%edx, 0 > is a comparing %edx to the memory location 0 ... == IPA-SRA decisions ==

[Bug ipa/110818] [11 Regression] Segmentation fault with '-O3 -fno-dce -fno-ipa-cp -fno-tree-dce -fno-tree-sink'

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

[Bug middle-end/110818] [11 Regression] Segmentation fault with '-O3 -fno-dce -fno-ipa-cp -fno-tree-dce -fno-tree-sink'

2023-07-29 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110818 --- Comment #14 from Xi Ruoyao --- (In reply to Andrew Pinski from comment #12) > Created attachment 55656 [details] > Assembly code > > The only difference between GCC 9 and GCC 10 is: > #cmpl%edx, 0 > > GCC 10 has this line uncommented.

[Bug middle-end/110818] [11 Regression] Segmentation fault with '-O3 -fno-dce -fno-ipa-cp -fno-tree-dce -fno-tree-sink'

2023-07-29 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110818 --- Comment #13 from Xi Ruoyao --- (In reply to Andrew Pinski from comment #11) > (In reply to Xi Ruoyao from comment #9) > > https://godbolt.org/z/5vr1oPExb > > > > Looks like .LC0 is not aligned but GCC 11 attempts to use movdqa to load it.

[Bug middle-end/110818] [11 Regression] Segmentation fault with '-O3 -fno-dce -fno-ipa-cp -fno-tree-dce -fno-tree-sink'

2023-07-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110818 --- Comment #12 from Andrew Pinski --- Created attachment 55656 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55656=edit Assembly code The only difference between GCC 9 and GCC 10 is: #cmpl%edx, 0 GCC 10 has this line uncommented.

[Bug c++/110845] Function call when it should inline?

2023-07-29 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110845 Xi Ruoyao changed: What|Removed |Added CC||xry111 at gcc dot gnu.org

[Bug middle-end/110818] [11 Regression] Segmentation fault with '-O3 -fno-dce -fno-ipa-cp -fno-tree-dce -fno-tree-sink'

2023-07-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110818 --- Comment #11 from Andrew Pinski --- (In reply to Xi Ruoyao from comment #9) > https://godbolt.org/z/5vr1oPExb > > Looks like .LC0 is not aligned but GCC 11 attempts to use movdqa to load it. But it is aligned ... Maybe there is a binutils

[Bug middle-end/110818] [11 Regression] Segmentation fault with '-O3 -fno-dce -fno-ipa-cp -fno-tree-dce -fno-tree-sink'

2023-07-29 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110818 Xi Ruoyao changed: What|Removed |Added Summary|Segmentation fault with |[11 Regression] |'-O3

[Bug middle-end/110818] Segmentation fault with '-O3 -fno-dce -fno-ipa-cp -fno-tree-dce -fno-tree-sink'

2023-07-29 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110818 --- Comment #9 from Xi Ruoyao --- (In reply to Andrew Pinski from comment #8) > (In reply to CTC from comment #7) > > No errors or warnings raised and 0 alarms generated by the analysis when > > analyzed by frama-c. > > Still undefined reduced

[Bug tree-optimization/110819] Missed optimization: when vector's size is 0 but vector::reserve has been called.

2023-07-29 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110819 Xi Ruoyao changed: What|Removed |Added CC||xry111 at gcc dot gnu.org --- Comment #3

[Bug middle-end/110818] Segmentation fault with '-O3 -fno-dce -fno-ipa-cp -fno-tree-dce -fno-tree-sink'

2023-07-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110818 --- Comment #8 from Andrew Pinski --- (In reply to CTC from comment #7) > No errors or warnings raised and 0 alarms generated by the analysis when > analyzed by frama-c. Still undefined reduced testcase (with `-Wextra -Wall`): : At top level:

[Bug tree-optimization/110315] [13 Regression] g++ crashes with a segmentation fault while compiling a large const std::vector of std::string since r13-6566-ge0324e2629e25a90

2023-07-29 Thread glebfm at altlinux dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110315 --- Comment #9 from Gleb Fotengauer-Malinovskiy --- (In reply to Andrew Macleod from comment #7) > Created attachment 55591 [details] > potental patch > > I've attached Aldy's patch for PR109695 which he had backported to GCC13 > back in May.