[gcc r15-5741] c: Fix gimplification ICE for shifts with invalid redeclarations

2024-11-27 Thread Joseph Myers via Gcc-cvs
https://gcc.gnu.org/g:24dac1eab9c3b650826bbaa84dd64310910e647c commit r15-5741-g24dac1eab9c3b650826bbaa84dd64310910e647c Author: Joseph Myers Date: Thu Nov 28 02:41:35 2024 + c: Fix gimplification ICE for shifts with invalid redeclarations As reported in bug 117757, there is a

[gcc r15-5739] c-family: offer suggestions for missing command-line options [PR82892]

2024-11-27 Thread David Malcolm via Gcc-cvs
https://gcc.gnu.org/g:5341eb669658c7c73d55021b10a4765bf4ce3078 commit r15-5739-g5341eb669658c7c73d55021b10a4765bf4ce3078 Author: David Malcolm Date: Wed Nov 27 19:21:15 2024 -0500 c-family: offer suggestions for missing command-line options [PR82892] Some builtin macros are only d

[gcc r15-5740] analyzer,timevar: avoid naked "new" in JSON-handling

2024-11-27 Thread David Malcolm via Gcc-cvs
https://gcc.gnu.org/g:066f309db6a545a7ee0a266018abac60ce7143d9 commit r15-5740-g066f309db6a545a7ee0a266018abac60ce7143d9 Author: David Malcolm Date: Wed Nov 27 19:21:16 2024 -0500 analyzer,timevar: avoid naked "new" in JSON-handling Now that is always included, use std::unique_pt

[gcc r15-5737] diagnostics: replace %<%s%> with %qs [PR104896]

2024-11-27 Thread David Malcolm via Gcc-cvs
https://gcc.gnu.org/g:9f06b910a840d8ed06e27942bc23f260a0e0ccf3 commit r15-5737-g9f06b910a840d8ed06e27942bc23f260a0e0ccf3 Author: David Malcolm Date: Wed Nov 27 19:21:15 2024 -0500 diagnostics: replace %<%s%> with %qs [PR104896] No functional change intended. gcc/analyzer/

[gcc r15-5738] C/C++: add fix-it hints for missing '&' and '*' (v5) [PR87850]

2024-11-27 Thread David Malcolm via Gcc-cvs
https://gcc.gnu.org/g:5336b63fe81029cfd790208fbc69a08c70b82b01 commit r15-5738-g5336b63fe81029cfd790208fbc69a08c70b82b01 Author: David Malcolm Date: Wed Nov 27 19:21:15 2024 -0500 C/C++: add fix-it hints for missing '&' and '*' (v5) [PR87850] This patch adds a note with a fix-it h

[gcc r15-5735] optimize basic_string

2024-11-27 Thread Jan Hubicka via Libstdc++-cvs
https://gcc.gnu.org/g:1046c32de4956c3d706a2ff8683582fd21b8f360 commit r15-5735-g1046c32de4956c3d706a2ff8683582fd21b8f360 Author: Jan Hubicka Date: Wed Nov 27 23:52:37 2024 +0100 optimize basic_string Add __builtin_unreachable conditionls to declare value ranges of basic_string

[gcc r15-5734] c: Fix ICE using function name in parameter type in old-style function definition [PR91193]

2024-11-27 Thread Joseph Myers via Gcc-cvs
https://gcc.gnu.org/g:87492fb3fd5e7510983e0275a38ba95769335018 commit r15-5734-g87492fb3fd5e7510983e0275a38ba95769335018 Author: Joseph Myers Date: Wed Nov 27 22:27:08 2024 + c: Fix ICE using function name in parameter type in old-style function definition [PR91193] As report

[gcc r15-5733] libstdc++: Remove __builtin_expect from consteval assertion

2024-11-27 Thread Jonathan Wakely via Gcc-cvs
https://gcc.gnu.org/g:73e5d2f87c257c2c12ee72fd4de9bdbb6a8e1aa9 commit r15-5733-g73e5d2f87c257c2c12ee72fd4de9bdbb6a8e1aa9 Author: Jonathan Wakely Date: Wed Nov 27 12:28:30 2024 + libstdc++: Remove __builtin_expect from consteval assertion libstdc++-v3/ChangeLog:

[gcc r15-5732] libstdc++: Add cold attribute to assertion failure functions [PR117650]

2024-11-27 Thread Jonathan Wakely via Libstdc++-cvs
https://gcc.gnu.org/g:17db5742a555d4f8fd5fa324adb6d1e5c55374be commit r15-5732-g17db5742a555d4f8fd5fa324adb6d1e5c55374be Author: Jonathan Wakely Date: Wed Nov 27 11:52:40 2024 + libstdc++: Add cold attribute to assertion failure functions [PR117650] This helps the compiler to

[gcc r15-5731] i386: x86 can use x >> y for x >> 32+y [PR36503]

2024-11-27 Thread Uros Bizjak via Gcc-cvs
https://gcc.gnu.org/g:093584abb854559393e36cd4cdcf9dc4862dd046 commit r15-5731-g093584abb854559393e36cd4cdcf9dc4862dd046 Author: Uros Bizjak Date: Wed Nov 27 20:45:25 2024 +0100 i386: x86 can use x >> y for x >> 32+y [PR36503] x86 targets mask 32-bit shifts with a 5-bit mask (and

[gcc r15-5730] match: Improve handling of double convert [PR117776]

2024-11-27 Thread Andrew Pinski via Gcc-cvs
https://gcc.gnu.org/g:bca515ff1893fe4ca1a9042364af3c43f93a397c commit r15-5730-gbca515ff1893fe4ca1a9042364af3c43f93a397c Author: Andrew Pinski Date: Mon Nov 25 16:04:21 2024 -0800 match: Improve handling of double convert [PR117776] For a double conversion, we will simplify it int

[gcc r15-5729] libstdc++/ranges: make _RangeAdaptorClosure befriend operator|

2024-11-27 Thread Patrick Palka via Libstdc++-cvs
https://gcc.gnu.org/g:56029c91dcadcfd1800614b7484d3dc82ca16dde commit r15-5729-g56029c91dcadcfd1800614b7484d3dc82ca16dde Author: Patrick Palka Date: Wed Nov 27 11:59:38 2024 -0500 libstdc++/ranges: make _RangeAdaptorClosure befriend operator| This declares the range adaptor pipe o

[gcc r15-5728] c: Fix sizeof error recovery [PR117745]

2024-11-27 Thread Jakub Jelinek via Gcc-cvs
https://gcc.gnu.org/g:958f0025f41d8bd9812e4da91a72b1ad79496e5b commit r15-5728-g958f0025f41d8bd9812e4da91a72b1ad79496e5b Author: Jakub Jelinek Date: Wed Nov 27 17:29:28 2024 +0100 c: Fix sizeof error recovery [PR117745] Compilation of the following testcase hangs forever after emi

[gcc r12-10836] tree-sra: Avoid SRAing arguments to a function returning_twice (PR 117142)

2024-11-27 Thread Martin Jambor via Gcc-cvs
https://gcc.gnu.org/g:dc0e962ea18667bc3cdabcafef85b241a4f2c678 commit r12-10836-gdc0e962ea18667bc3cdabcafef85b241a4f2c678 Author: Martin Jambor Date: Fri Nov 15 14:37:06 2024 +0100 tree-sra: Avoid SRAing arguments to a function returning_twice (PR 117142) This is a manual bacport

[gcc r15-5727] I386: Add more testcases for unsigned SAT_ADD vector pattern

2024-11-27 Thread Pan Li via Gcc-cvs
https://gcc.gnu.org/g:4a8685911697c237ff8c0589827eb8649f8440f1 commit r15-5727-g4a8685911697c237ff8c0589827eb8649f8440f1 Author: Pan Li Date: Fri Nov 22 11:48:26 2024 +0800 I386: Add more testcases for unsigned SAT_ADD vector pattern Some forms like below failed to be recognized a

[gcc r15-5726] Match: Refactor the unsigned SAT_ADD match ADD_OVERFLOW pattern [NFC]

2024-11-27 Thread Pan Li via Gcc-cvs
https://gcc.gnu.org/g:83f200fa7a8ad905e47b2344065406f32730646b commit r15-5726-g83f200fa7a8ad905e47b2344065406f32730646b Author: Pan Li Date: Mon Nov 25 09:21:24 2024 +0800 Match: Refactor the unsigned SAT_ADD match ADD_OVERFLOW pattern [NFC] This patch would like to refactor the

[gcc r15-5725] c: Do not remove _Atomic from array element type for typeof_unqual [PR117781]

2024-11-27 Thread Joseph Myers via Gcc-cvs
https://gcc.gnu.org/g:eaa675ad3f0a033537440f93172a7b122c04cab5 commit r15-5725-geaa675ad3f0a033537440f93172a7b122c04cab5 Author: Joseph Myers Date: Wed Nov 27 14:10:37 2024 + c: Do not remove _Atomic from array element type for typeof_unqual [PR117781] As reported in bug 1177

[gcc r15-5724] builtins: Emit __sync_lock_release_{8, 16} call as last resort instead of doing nothing [PR117642]

2024-11-27 Thread Jakub Jelinek via Gcc-cvs
https://gcc.gnu.org/g:96ccb208e43a7cb7a1b15e28c94d57661bf9caae commit r15-5724-g96ccb208e43a7cb7a1b15e28c94d57661bf9caae Author: Jakub Jelinek Date: Wed Nov 27 14:33:16 2024 +0100 builtins: Emit __sync_lock_release_{8,16} call as last resort instead of doing nothing [PR117642] As

[gcc r15-5723] match.pd: Avoid introducing UB in the ((X /[ex] C1) +- C2) * (C1 * C3) simplification [PR117692]

2024-11-27 Thread Jakub Jelinek via Gcc-cvs
https://gcc.gnu.org/g:a2370cc4f47fa7f1b2c72135ee1685551c2e25f4 commit r15-5723-ga2370cc4f47fa7f1b2c72135ee1685551c2e25f4 Author: Jakub Jelinek Date: Wed Nov 27 14:32:07 2024 +0100 match.pd: Avoid introducing UB in the ((X /[ex] C1) +- C2) * (C1 * C3) simplification [PR117692] As

[gcc r15-5722] libstdc++: module std fixes

2024-11-27 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:21954a58ce408519b03e314f56204b49c5b310ba commit r15-5722-g21954a58ce408519b03e314f56204b49c5b310ba Author: Jason Merrill Date: Wed Nov 20 00:21:00 2024 +0100 libstdc++: module std fixes Some tests were failing due to the exported using declaration of iter_mov

[gcc r15-5721] libstdc++: Add debug assertions to std::list and std::forward_list

2024-11-27 Thread Jonathan Wakely via Libstdc++-cvs
https://gcc.gnu.org/g:e7aa614d7372b5d3cbcd2400838c80ef905ba381 commit r15-5721-ge7aa614d7372b5d3cbcd2400838c80ef905ba381 Author: Jonathan Wakely Date: Fri Nov 15 22:03:20 2024 + libstdc++: Add debug assertions to std::list and std::forward_list While working on fancy pointer s

[gcc r15-5719] libstdc++: Simplify std::list assignment using 'if constexpr'

2024-11-27 Thread Jonathan Wakely via Libstdc++-cvs
https://gcc.gnu.org/g:281ac0ef1001aac1b4f4223c5dbba725a5cffb43 commit r15-5719-g281ac0ef1001aac1b4f4223c5dbba725a5cffb43 Author: Jonathan Wakely Date: Mon Nov 25 21:57:57 2024 + libstdc++: Simplify std::list assignment using 'if constexpr' Use diagnostic pragmas to allow using

[gcc r15-5720] libstdc++: Simplify std::forward_list assignment using 'if constexpr'

2024-11-27 Thread Jonathan Wakely via Libstdc++-cvs
https://gcc.gnu.org/g:751f91be72d8b73a9dc71456f475268397330100 commit r15-5720-g751f91be72d8b73a9dc71456f475268397330100 Author: Jonathan Wakely Date: Mon Nov 25 21:57:57 2024 + libstdc++: Simplify std::forward_list assignment using 'if constexpr' Use diagnostic pragmas to all

[gcc r15-5718] libstdc++: Fix unsigned wraparound in codecvt::do_length [PR105857]

2024-11-27 Thread Jonathan Wakely via Libstdc++-cvs
https://gcc.gnu.org/g:498f9aefbf36b0e3f119d634c41d86699ce6fed2 commit r15-5718-g498f9aefbf36b0e3f119d634c41d86699ce6fed2 Author: Jonathan Wakely Date: Tue Nov 26 20:07:33 2024 + libstdc++: Fix unsigned wraparound in codecvt::do_length [PR105857] When the max argument to std::c

[gcc r15-5717] ifcombine: skip fallback conjunction on noncontiguous blocks

2024-11-27 Thread Alexandre Oliva via Gcc-cvs
https://gcc.gnu.org/g:32f6485849c8268f5c7bd8454702bfec369768b1 commit r15-5717-g32f6485849c8268f5c7bd8454702bfec369768b1 Author: Alexandre Oliva Date: Wed Nov 27 06:27:12 2024 -0300 ifcombine: skip fallback conjunction on noncontiguous blocks When everything else fails, if enabled

[gcc r15-5716] Fortran: Fix non_overridable typebound proc problems [PR84674/117768].

2024-11-27 Thread Paul Thomas via Gcc-cvs
https://gcc.gnu.org/g:fed871f93c235da8ccba29d7beb715abc1482e59 commit r15-5716-gfed871f93c235da8ccba29d7beb715abc1482e59 Author: Paul Thomas Date: Wed Nov 27 09:20:23 2024 + Fortran: Fix non_overridable typebound proc problems [PR84674/117768]. 2024-11-27 Paul Thomas

[gcc r15-5715] c: Introduce -Wfree-labels

2024-11-27 Thread Florian Weimer via Gcc-cvs
https://gcc.gnu.org/g:631cd92b3b3d187860df004d212c4d7f6db517b7 commit r15-5715-g631cd92b3b3d187860df004d212c4d7f6db517b7 Author: Florian Weimer Date: Wed Nov 27 09:32:31 2024 +0100 c: Introduce -Wfree-labels This is another recent GCC extension whose use is apparently difficul