[Bug driver/111605] Cross compilation doesn't work with `-fuse-ld=mold`

2023-09-26 Thread rui314 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111605 --- Comment #8 from Rui Ueyama --- Sure, I agree with that. But would there be any problem if gcc, after failing to find `-mold` and `mold` in the embedded toolchain's directory, looks for `ld.mold` in the $PATH?"

[Bug driver/111605] Cross compilation doesn't work with `-fuse-ld=mold`

2023-09-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111605 --- Comment #7 from Andrew Pinski --- (In reply to Rui Ueyama from comment #6) > Since mold supports all targets by a single executable, it doesn't make much > sense to install one mold executable for each embedded toolchain. You are wrong

[Bug driver/111605] Cross compilation doesn't work with `-fuse-ld=mold`

2023-09-26 Thread rui314 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111605 --- Comment #6 from Rui Ueyama --- Since mold supports all targets by a single executable, it doesn't make much sense to install one mold executable for each embedded toolchain. So if we want to keep the current gcc's lookup mechanism for `ld`

[Bug driver/111605] Cross compilation doesn't work with `-fuse-ld=mold`

2023-09-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111605 --- Comment #5 from Andrew Pinski --- (In reply to Rui Ueyama from comment #4) > > More likely the scripts which build the full toolchains directories should > > be creating the symbolic links instead of mold itself. > > So the package

[Bug driver/111605] Cross compilation doesn't work with `-fuse-ld=mold`

2023-09-26 Thread rui314 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111605 --- Comment #4 from Rui Ueyama --- > More likely the scripts which build the full toolchains directories should be > creating the symbolic links instead of mold itself. So the package manager create a `-ld.mold` as a symlink to `mold` if mold

[Bug driver/111605] Cross compilation doesn't work with `-fuse-ld=mold`

2023-09-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111605 --- Comment #3 from Andrew Pinski --- (In reply to Rui Ueyama from comment #2) > I can make a change to the `make install` rule of the mold linker to install > bunch of symbolic links, but can we enumerate all possible triples? For > example, I

[Bug target/111343] [SH] Including in C++23 causes an ICE with -m4-single-only

2023-09-26 Thread olegendo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111343 Oleg Endo changed: What|Removed |Added Target|SH4 |sh*-*-* CC|

[Bug driver/111605] Cross compilation doesn't work with `-fuse-ld=mold`

2023-09-26 Thread rui314 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111605 --- Comment #2 from Rui Ueyama --- I can make a change to the `make install` rule of the mold linker to install bunch of symbolic links, but can we enumerate all possible triples? For example, I wasn't aware that `arm-none-eabi` was a valid

[Bug driver/111605] Cross compilation doesn't work with `-fuse-ld=mold`

2023-09-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111605 --- Comment #1 from Andrew Pinski --- I think this is by design. You can always just add a symbolic link in the right location for ld.mold and it will work.

[Bug c++/111605] New: Cross compilation doesn't work with `-fuse-ld=mold`

2023-09-26 Thread rui314 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111605 Bug ID: 111605 Summary: Cross compilation doesn't work with `-fuse-ld=mold` Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3

[Bug tree-optimization/109088] GCC does not always vectorize conditional reduction

2023-09-26 Thread juzhe.zhong at rivai dot ai via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109088 --- Comment #8 from JuzheZhong --- It's because the order of the operations we are doing: For code as follows: result += mask ? a[i] + x : 0; GCC: result_ssa_1 = PHI ... STMT 1. tmp = a[i] + x; STMT 2. tmp2 = tmp + result_ssa_1; STMT 3.

[Bug c++/109963] ABI: unexpected layout ordering of `this` pointer in lambda capture

2023-09-26 Thread justin.lebar+bug at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109963 Justin Lebar changed: What|Removed |Added CC||justin.lebar+bug at gmail dot com ---

[Bug tree-optimization/109088] GCC does not always vectorize conditional reduction

2023-09-26 Thread juzhe.zhong at rivai dot ai via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109088 --- Comment #7 from JuzheZhong --- Update the analysis: We failed to recognize it as reduction because, the PHI result has 2 uses: # result_20 = PHI ... _11 = result_20 + 10; > first use result_17 = _4 + _11; _23 = _4 > _7;

[Bug libstdc++/111351] constexpr std::string objects permitted to escape constant evaluation when SSO

2023-09-26 Thread foom at fuhm dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111351 --- Comment #7 from James Y Knight --- On the libc++ side, a suggestion was given that instead of making this an _error_, we could instead emit a warning if "a constexpr or constinit object is a basic_string or contains a basic_string

[Bug target/107567] __atomic_test_and_set generates non-atomic code on armv6-m

2023-09-26 Thread chris.n.copeland at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107567 --- Comment #3 from Chris Copeland --- Fantastic! Thank you for looking into it.

[Bug c/111604] bogus warning: '#' flag used with ‘%m’ gnu_printf format

2023-09-26 Thread egallager at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111604 Eric Gallager changed: What|Removed |Added CC||egallager at gcc dot gnu.org

[Bug c++/111512] GCC's __builtin_memcpy can trigger ADL

2023-09-26 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111512 --- Comment #5 from CVS Commits --- The releases/gcc-12 branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:685a8c45d8e2c8c10171e672888484ea2c50662e commit r12-9894-g685a8c45d8e2c8c10171e672888484ea2c50662e Author: Jonathan

[Bug libstdc++/111511] Incorrect ADL in std::to_array in GCC 11/12/13

2023-09-26 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111511 --- Comment #8 from CVS Commits --- The releases/gcc-12 branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:685a8c45d8e2c8c10171e672888484ea2c50662e commit r12-9894-g685a8c45d8e2c8c10171e672888484ea2c50662e Author: Jonathan

[Bug target/107567] __atomic_test_and_set generates non-atomic code on armv6-m

2023-09-26 Thread hp at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107567 Hans-Peter Nilsson changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Target Milestone|---

[Bug c/111604] bogus warning: '#' flag used with ‘%m’ gnu_printf format

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

[Bug c/111604] New: bogus warning: '#' flag used with ‘%m’ gnu_printf format

2023-09-26 Thread crrodriguez at opensuse dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111604 Bug ID: 111604 Summary: bogus warning: '#' flag used with ‘%m’ gnu_printf format Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal

[Bug testsuite/111603] new test case gcc.dg/tree-ssa/pr111456-1.c in r14-4280-gc3c6f30496d945 fails

2023-09-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111603 Andrew Pinski changed: What|Removed |Added Keywords|missed-optimization |testsuite-fail Target Milestone|---

[Bug testsuite/111603] new test case gcc.dg/tree-ssa/pr111456-1.c in r14-4280-gc3c6f30496d945 fails

2023-09-26 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111603 --- Comment #3 from CVS Commits --- The trunk branch has been updated by Andrew Pinski : https://gcc.gnu.org/g:12039c9f40a81605e59951f80007827bc0413573 commit r14-4287-g12039c9f40a81605e59951f80007827bc0413573 Author: Andrew Pinski Date:

[Bug testsuite/111603] new test case gcc.dg/tree-ssa/pr111456-1.c in r14-4280-gc3c6f30496d945 fails

2023-09-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111603 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2023-09-26

[Bug testsuite/111603] new test case gcc.dg/tree-ssa/pr111456-1.c in r14-4280-gc3c6f30496d945 fails

2023-09-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111603 Andrew Pinski changed: What|Removed |Added Summary|[14 regression] new test|new test case |case

[Bug gcov-profile/111603] New: [14 regression] new test case gcc.dg/tree-ssa/pr111456-1.c in r14-4280-gc3c6f30496d945 fails

2023-09-26 Thread seurer at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111603 Bug ID: 111603 Summary: [14 regression] new test case gcc.dg/tree-ssa/pr111456-1.c in r14-4280-gc3c6f30496d945 fails Product: gcc Version: 14.0

[Bug target/109166] Built-in __atomic_test_and_set does not seem to be atomic on ARMv4T

2023-09-26 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109166 --- Comment #10 from CVS Commits --- The master branch has been updated by Hans-Peter Nilsson : https://gcc.gnu.org/g:8e6757b30d0f3f13d47d0f842801a751ba6293c2 commit r14-4286-g8e6757b30d0f3f13d47d0f842801a751ba6293c2 Author: Hans-Peter

[Bug target/107567] __atomic_test_and_set generates non-atomic code on armv6-m

2023-09-26 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107567 --- Comment #1 from CVS Commits --- The master branch has been updated by Hans-Peter Nilsson : https://gcc.gnu.org/g:8e6757b30d0f3f13d47d0f842801a751ba6293c2 commit r14-4286-g8e6757b30d0f3f13d47d0f842801a751ba6293c2 Author: Hans-Peter Nilsson

[Bug fortran/67740] Wrong association status of allocatable character pointer in derived types

2023-09-26 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67740 anlauf at gcc dot gnu.org changed: What|Removed |Added Keywords||wrong-code --- Comment #6

[Bug libstdc++/111511] Incorrect ADL in std::to_array in GCC 11/12/13

2023-09-26 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111511 --- Comment #7 from CVS Commits --- The releases/gcc-13 branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:161a477f0ce93de1d083d379247d0770d4ef96af commit r13-7844-g161a477f0ce93de1d083d379247d0770d4ef96af Author: Jonathan

[Bug c++/111512] GCC's __builtin_memcpy can trigger ADL

2023-09-26 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111512 --- Comment #4 from CVS Commits --- The releases/gcc-13 branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:161a477f0ce93de1d083d379247d0770d4ef96af commit r13-7844-g161a477f0ce93de1d083d379247d0770d4ef96af Author: Jonathan

[Bug fortran/67740] Wrong association status of allocatable character pointer in derived types

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

[Bug c++/111602] [11/12/13/14 Regression] "Error: symbol is already defined" for variable template dependent on default argument lambda of class dependent on local type used in sfinae and non-sfinae c

2023-09-26 Thread ed at catmur dot uk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111602 --- Comment #2 from Ed Catmur --- (In reply to Andrew Pinski from comment #1) > The local type of f() is not needed. Thanks! I was confused since the local type is required in this similar example: template struct P { static constexpr

[Bug modula2/111510] Modula-2 runtime ICE on arm-linux-gnueabihf: iso/RTentity.mod:245:in findChildAndParent has caused internal runtime error, RTentity is either corrupt or the module storage has no

2023-09-26 Thread gaius at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111510 Gaius Mulley changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug modula2/111510] Modula-2 runtime ICE on arm-linux-gnueabihf: iso/RTentity.mod:245:in findChildAndParent has caused internal runtime error, RTentity is either corrupt or the module storage has no

2023-09-26 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111510 --- Comment #4 from CVS Commits --- The releases/gcc-13 branch has been updated by Gaius Mulley : https://gcc.gnu.org/g:b92cddb94874df4b9451d9cea3efa88f0654981b commit r13-7842-gb92cddb94874df4b9451d9cea3efa88f0654981b Author: Gaius Mulley

[Bug tree-optimization/111599] [14 Regression] ICE: Segmentation fault in VRP

2023-09-26 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111599 Andrew Macleod changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug tree-optimization/111599] [14 Regression] ICE: Segmentation fault in VRP

2023-09-26 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111599 --- Comment #4 from CVS Commits --- The master branch has been updated by Andrew Macleod : https://gcc.gnu.org/g:c9dbace008e60255b10891f0c966b44a0225d7ab commit r14-4283-gc9dbace008e60255b10891f0c966b44a0225d7ab Author: Andrew MacLeod Date:

[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-09-26 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110315 Andrew Macleod changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[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-09-26 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110315 --- Comment #12 from CVS Commits --- The releases/gcc-13 branch has been updated by Andrew Macleod : https://gcc.gnu.org/g:70639014a69cf50fe11dc1adbfe1db4c7760ce69 commit r13-7841-g70639014a69cf50fe11dc1adbfe1db4c7760ce69 Author: Andrew

[Bug target/111600] [14.0 regression] RISC-V bootstrap time regression

2023-09-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111600 --- Comment #1 from Andrew Pinski --- The new (target) builtins could cause increased compile time ...

[Bug c/77817] -Wimplicit-fallthrough: cpp directive renders FALLTHRU comment ineffective

2023-09-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817 Andrew Pinski changed: What|Removed |Added CC||Hi-Angel at yandex dot ru --- Comment

[Bug c/111598] Wimplicit-fallthrough print for a code that is not compiled in

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

[Bug c++/111602] [11/12/13/14 Regression] "Error: symbol is already defined" for variable template dependent on default argument lambda of class dependent on local type used in sfinae and non-sfinae c

2023-09-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111602 Andrew Pinski changed: What|Removed |Added Summary|"Error: symbol is already |[11/12/13/14 Regression]

[Bug c++/111602] "Error: symbol is already defined" for variable template dependent on default argument lambda of class dependent on local type used in sfinae and non-sfinae contexts

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

[Bug bootstrap/111601] [14 Regression] bootstrap fails in stagestrain in libcody on x86_64-linux-gnu and powerpc64le-linux-gnu

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

[Bug c++/111602] New: "Error: symbol is already defined" for variable template dependent on default argument lambda used in sfinae and non-sfinae

2023-09-26 Thread ed at catmur dot uk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111602 Bug ID: 111602 Summary: "Error: symbol is already defined" for variable template dependent on default argument lambda used in sfinae and non-sfinae Product: gcc

[Bug c++/111596] ICE on iostream as argument

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

[Bug c++/108245] ICE with invalid variable auto arguments and supplying an extra type

2023-09-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108245 Andrew Pinski changed: What|Removed |Added CC||stevenxia990430 at gmail dot com ---

[Bug modula2/111510] Modula-2 runtime ICE on arm-linux-gnueabihf: iso/RTentity.mod:245:in findChildAndParent has caused internal runtime error, RTentity is either corrupt or the module storage has no

2023-09-26 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111510 --- Comment #3 from CVS Commits --- The master branch has been updated by Gaius Mulley : https://gcc.gnu.org/g:53daf67fd55e005e37cb3ab33ac0783a71761de9 commit r14-4282-g53daf67fd55e005e37cb3ab33ac0783a71761de9 Author: Gaius Mulley Date:

[Bug tree-optimization/111599] [14 Regression] ICE: Segmentation fault in VRP

2023-09-26 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111599 --- Comment #3 from Andrew Macleod --- patch in testing

[Bug tree-optimization/111599] [14 Regression] ICE: Segmentation fault in VRP

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

[Bug tree-optimization/111599] ICE: Segmentation fault

2023-09-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111599 --- Comment #2 from Andrew Pinski --- Created attachment 55997 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55997=edit Reduced testcase Still need: `-O3 -fno-inline-functions-called-once -fno-inline-small-functions -fno-tree-dce

[Bug ada/110488] [13/14 regression] deferred constant wrongly rejected

2023-09-26 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110488 Eric Botcazou changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug ada/110488] [13/14 regression] deferred constant wrongly rejected

2023-09-26 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110488 --- Comment #4 from CVS Commits --- The releases/gcc-13 branch has been updated by Eric Botcazou : https://gcc.gnu.org/g:35787c3093fa611ba46008e94f329000d6042be4 commit r13-7840-g35787c3093fa611ba46008e94f329000d6042be4 Author: Eric Botcazou

[Bug bootstrap/111601] New: [14 Regression] bootstrap fails in stagestrain in libcody on x86_64-linux-gnu and powerpc64le-linux-gnu

2023-09-26 Thread doko at gcc dot gnu.org via Gcc-bugs
: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: doko at gcc dot gnu.org Target Milestone: --- seen with trunk 20230917 and 20230926 on both x86_64-linux-gnu and powerpc64le-linux-gnu

[Bug middle-end/110148] [14 Regression] TSVC s242 regression between g:c0df96b3cda5738afbba3a65bb054183c5cd5530 and g:e4c986fde56a6248f8fbe6cf0704e1da34b055d8

2023-09-26 Thread jamborm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110148 Martin Jambor changed: What|Removed |Added CC||jamborm at gcc dot gnu.org

[Bug tree-optimization/111456] [14 Regression] Dead Code Elimination Regression since r14-3719-gb34f3736356

2023-09-26 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111456 --- Comment #7 from CVS Commits --- The trunk branch has been updated by Andrew Pinski : https://gcc.gnu.org/g:c3c6f30496d945b77dcb7f4ad8c3f8094f5a64a4 commit r14-4280-gc3c6f30496d945b77dcb7f4ad8c3f8094f5a64a4 Author: Andrew Pinski Date:

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

2023-09-26 Thread jamborm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53947 Bug 53947 depends on bug 110148, which changed state. Bug 110148 Summary: [14 Regression] TSVC s242 regression between g:c0df96b3cda5738afbba3a65bb054183c5cd5530 and g:e4c986fde56a6248f8fbe6cf0704e1da34b055d8

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

2023-09-26 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106164 --- Comment #22 from CVS Commits --- The trunk branch has been updated by Andrew Pinski : https://gcc.gnu.org/g:c3c6f30496d945b77dcb7f4ad8c3f8094f5a64a4 commit r14-4280-gc3c6f30496d945b77dcb7f4ad8c3f8094f5a64a4 Author: Andrew Pinski Date:

[Bug tree-optimization/111456] [14 Regression] Dead Code Elimination Regression since r14-3719-gb34f3736356

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

[Bug tree-optimization/111469] [14 Regression] Wrong code at -Os on x86_64-linux-gnu since r14-573-g69f1a8af45

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

[Bug tree-optimization/111469] [14 Regression] Wrong code at -Os on x86_64-linux-gnu since r14-573-g69f1a8af45

2023-09-26 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111469 --- Comment #8 from CVS Commits --- The trunk branch has been updated by Andrew Pinski : https://gcc.gnu.org/g:68fa82e2d8f868a233103102dff2449a416bc566 commit r14-4279-g68fa82e2d8f868a233103102dff2449a416bc566 Author: Andrew Pinski Date:

[Bug gcov-profile/110827] C++20 coroutines aren't being measured by gcov

2023-09-26 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110827 --- Comment #11 from Iain Sandoe --- (In reply to Michael Duggan from comment #9) > More data: > The coroutine actor is marked as artificial in > coro_build_actor_or_destroy_function. As a result, it is completely ignored > by gcov. In gcov's

[Bug modula2/111510] Modula-2 runtime ICE on arm-linux-gnueabihf: iso/RTentity.mod:245:in findChildAndParent has caused internal runtime error, RTentity is either corrupt or the module storage has no

2023-09-26 Thread gaius at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111510 --- Comment #2 from Gaius Mulley --- Created attachment 55996 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55996=edit Proposed fix Here is a proposed fix - the bug was the lack of a nul terminated string - resulting in garbled init

[Bug target/111600] New: [14.0 regression] RISC-V bootstrap time regression

2023-09-26 Thread schwab--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111600 Bug ID: 111600 Summary: [14.0 regression] RISC-V bootstrap time regression Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug rtl-optimization/111558] RISCV: shrink-wrapper optimization question

2023-09-26 Thread mxlol233 at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111558 --- Comment #3 from Xiao Ma --- (In reply to Xiao Ma from comment #2) > For this piece of code, LLVM seems to be a bit concise: during the pass of > Prologue/Epilogue Insertion & Frame Finalization, it only inserts sd/ld > blocks in the entry

[Bug rtl-optimization/111558] RISCV: shrink-wrapper optimization question

2023-09-26 Thread mxlol233 at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111558 Xiao Ma changed: What|Removed |Added CC||mxlol233 at outlook dot com --- Comment #2

[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-09-26 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110315 --- Comment #11 from Andrew Macleod --- (In reply to Richard Biener from comment #10) > (In reply to Andrew Macleod from comment #7) > > Created attachment 55591 [details] > > potental patch > > > > I've attached Aldy's patch for PR109695

[Bug middle-end/111594] RISC-V: Failed to fold VEC_COND_EXPR and COND_LEN_ADD

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

[Bug middle-end/110660] conditional length reduction optimization

2023-09-26 Thread juzhe.zhong at rivai dot ai via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110660 JuzheZhong changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRMED

[Bug middle-end/111594] RISC-V: Failed to fold VEC_COND_EXPR and COND_LEN_ADD

2023-09-26 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111594 --- Comment #5 from CVS Commits --- The master branch has been updated by Pan Li : https://gcc.gnu.org/g:dd0197fb4cdee8cd5f78fea9a965c96d7ca47229 commit r14-4277-gdd0197fb4cdee8cd5f78fea9a965c96d7ca47229 Author: Juzhe-Zhong Date: Tue Sep

[Bug middle-end/110660] conditional length reduction optimization

2023-09-26 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110660 --- Comment #4 from CVS Commits --- The master branch has been updated by Pan Li : https://gcc.gnu.org/g:dd0197fb4cdee8cd5f78fea9a965c96d7ca47229 commit r14-4277-gdd0197fb4cdee8cd5f78fea9a965c96d7ca47229 Author: Juzhe-Zhong Date: Tue Sep

[Bug tree-optimization/109088] GCC does not always vectorize conditional reduction

2023-09-26 Thread juzhe.zhong at rivai dot ai via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109088 --- Comment #6 from JuzheZhong --- After investigations: GCC failed to vectorize reduction with multiple conditional operations: ifcvt dump: # result_20 = PHI ... _11 = result_20 + 10; result_17 = _4 + _11; _23 = _4 > _7; result_9 = _23 ?

[Bug tree-optimization/109175] error: 'void* __builtin_memset(void*, int, long unsigned int)' writing 4 or more bytes into a region of size 0 overflows the destination [-Werror=stringop-overflow=]

2023-09-26 Thread malat at debian dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109175 --- Comment #8 from Mathieu Malaterre --- (In reply to Andrew Pinski from comment #6) > Notice how there is no check for null on aq. Do you want to keep this one open or should we close it as invalid ?

[Bug ada/110488] [13/14 regression] deferred constant wrongly rejected

2023-09-26 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110488 --- Comment #3 from CVS Commits --- The master branch has been updated by Marc Poulhi?s : https://gcc.gnu.org/g:f6367fc211e52b3f7f8d0f2c481e20cb69839071 commit r14-4275-gf6367fc211e52b3f7f8d0f2c481e20cb69839071 Author: Eric Botcazou Date:

[Bug c/111599] ICE: Segmentation fault

2023-09-26 Thread 19373742 at buaa dot edu.cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111599 --- Comment #1 from CTC <19373742 at buaa dot edu.cn> --- Created attachment 55995 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55995=edit The compiler output

[Bug c/111599] New: ICE: Segmentation fault

2023-09-26 Thread 19373742 at buaa dot edu.cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111599 Bug ID: 111599 Summary: ICE: Segmentation fault Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee:

[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-09-26 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110315 --- Comment #10 from Richard Biener --- (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. > This does

[Bug target/111591] ppc64be: miscompilation with -mstrict-align / -O3

2023-09-26 Thread malat at debian dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111591 --- Comment #12 from Mathieu Malaterre --- For reference malat@perotto ~/pr2 % g++-11 --version g++-11 (Debian 11.4.0-4) 11.4.0 malat@perotto ~/pr2 % g++-12 --version g++-12 (Debian 12.3.0-9) 12.3.0

[Bug target/111591] ppc64be: miscompilation with -mstrict-align / -O3

2023-09-26 Thread malat at debian dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111591 --- Comment #11 from Mathieu Malaterre --- (In reply to Kewen Lin from comment #6) > Confirmed, thanks for reporting. > > I noticed that the reduced test case in #c1 can make gcc-13 complain with: > > test.cc:67:16: error: expected

[Bug target/111591] ppc64be: miscompilation with -mstrict-align / -O3

2023-09-26 Thread malat at debian dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111591 --- Comment #10 from Mathieu Malaterre --- Created attachment 55993 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55993=edit widen_mul_test.cc

[Bug target/111591] ppc64be: miscompilation with -mstrict-align / -O3

2023-09-26 Thread malat at debian dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111591 --- Comment #9 from Mathieu Malaterre --- Created attachment 55992 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55992=edit foo.cc

[Bug target/111231] armhf: Miscompilation with -O2/-fno-exceptions level (-O2 is working)

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

[Bug c/111598] New: Wimplicit-fallthrough print for a code that is not compiled in

2023-09-26 Thread Hi-Angel at yandex dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111598 Bug ID: 111598 Summary: Wimplicit-fallthrough print for a code that is not compiled in Product: gcc Version: 13.2.1 Status: UNCONFIRMED Severity: normal

[Bug target/111597] pattern "(T)(A)+cst -->(T)(A+cst)" cause suboptimal for ppc64

2023-09-26 Thread guojiufu at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111597 --- Comment #3 from Jiu Fu Guo --- (In reply to Jiu Fu Guo from comment #0) > In match.pd there is a pattern: > /* ((T)(A)) + CST -> (T)(A + CST) */ > #if GIMPLE > (simplify >(plus (convert:s SSA_NAME@0) INTEGER_CST@1) > (if

[Bug target/111591] ppc64be: miscompilation with -mstrict-align / -O3

2023-09-26 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111591 --- Comment #8 from Kewen Lin --- (In reply to Richard Biener from comment #7) > I suppose it works with -fno-tree-vectorize ontop of the flags? Appending -fno-tree-vectorize at the end of the given flags in #c1 (-mstrict-align version), it

[Bug middle-end/111547] [OpenMP] -fopenmp omp::decl update missing

2023-09-26 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111547 Tobias Burnus changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug middle-end/111547] [OpenMP] -fopenmp omp::decl update missing

2023-09-26 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111547 --- Comment #1 from CVS Commits --- The master branch has been updated by Tobias Burnus : https://gcc.gnu.org/g:1fab441d6cce836e08db516c0fdac407872c6990 commit r14-4261-g1fab441d6cce836e08db516c0fdac407872c6990 Author: Tobias Burnus Date:

[Bug target/111597] pattern "(T)(A)+cst -->(T)(A+cst)" cause suboptimal for ppc64

2023-09-26 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111597 Richard Biener changed: What|Removed |Added Keywords||missed-optimization

[Bug target/111597] pattern "(T)(A)+cst -->(T)(A+cst)" cause suboptimal for ppc64

2023-09-26 Thread guojiufu at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111597 --- Comment #1 from Jiu Fu Guo --- While, even without this pattern in match.pd, the generated the sign extend(extsw) is still there. So, just wondering if this sub-optimal asm code would be fixed in another way.

[Bug target/111591] ppc64be: miscompilation with -mstrict-align / -O3

2023-09-26 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111591 Richard Biener changed: What|Removed |Added CC||rguenth at gcc dot gnu.org ---

[Bug target/111597] New: pattern "(T)(A)+cst -->(T)(A+cst)" cause suboptimal for ppc64

2023-09-26 Thread guojiufu at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111597 Bug ID: 111597 Summary: pattern "(T)(A)+cst -->(T)(A+cst)" cause suboptimal for ppc64 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal

[Bug middle-end/94267] Missed folding of _MEM_REF

2023-09-26 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94267 --- Comment #5 from Richard Biener --- Well, yes .. _MEM_REF is a LEA with a specific addressing mode. Folding *_MEM_REF would require us to verify the target can handle it (and avoid PR110702 where it's fix was really the only sensible thing I

[Bug target/111591] ppc64be: miscompilation with -mstrict-align / -O3

2023-09-26 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111591 Kewen Lin changed: What|Removed |Added CC||bergner at gcc dot gnu.org,

[Bug c++/111596] New: ICE on iostream as argument

2023-09-26 Thread stevenxia990430 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111596 Bug ID: 111596 Summary: ICE on iostream as argument Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug target/111231] armhf: Miscompilation with -O2/-fno-exceptions level (-O2 is working)

2023-09-26 Thread malat at debian dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111231 --- Comment #11 from Mathieu Malaterre --- For reference: Using built-in specs. COLLECT_GCC=g++ COLLECT_LTO_WRAPPER=/usr/libexec/gcc/arm-linux-gnueabihf/13/lto-wrapper Target: arm-linux-gnueabihf Configured with: ../src/configure -v

[Bug target/111231] armhf: Miscompilation with -O2/-fno-exceptions level (-O2 is working)

2023-09-26 Thread malat at debian dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111231 --- Comment #10 from Mathieu Malaterre --- I could not reduce to a single *.cc file. The function needs to be in an alt file 'foo.cc'. So could someone please compare: g++ -std=c++11 -o works -O2 -g -Wfatal-errors -Werror -Wall -Wextra

[Bug target/111231] armhf: Miscompilation with -O2/-fno-exceptions level (-O2 is working)

2023-09-26 Thread malat at debian dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111231 --- Comment #9 from Mathieu Malaterre --- Created attachment 55991 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55991=edit widen_mul_test.cc

[Bug target/111231] armhf: Miscompilation with -O2/-fno-exceptions level (-O2 is working)

2023-09-26 Thread malat at debian dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111231 --- Comment #8 from Mathieu Malaterre --- Created attachment 55990 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55990=edit foo.cc

[Bug middle-end/111427] [14 regression] gfortran.dg/vect/pr60510.f fails after r14-3999-g3c834d85f2ec42

2023-09-26 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111427 Kewen Lin changed: What|Removed |Added Last reconfirmed||2023-09-26 Keywords|ra,

  1   2   >