[RFC PATCH v1] c: Do not warn about external declaration following inline definition

2023-10-28 Thread Barnabás Pőcze
An external declaration following an inline definition is not redundant because it forces the compiler to emit an external definition for the function. That is, inline void f(void) { } [extern] void f(void); should not trigger the redundant redeclaration of ... warning. gcc/c/ChangeLog:

Re: [RFC PATCH v1] c: Do not warn about external declaration following inline definition

2023-10-30 Thread Barnabás Pőcze
Hi 2023. október 30., hétfő 19:01 keltezéssel, Joseph Myers írta: > On Sat, 28 Oct 2023, Barnabás Pőcze wrote: > > > An external declaration following an inline definition is not redundant > > because it forces the compiler to emit an external definition for the > &g

[PATCH v1] libstdc++: Optimize removal from unique assoc containers [PR112934]

2024-03-11 Thread Barnabás Pőcze
Previously, calling erase(key) on both std::map and std::set would execute that same code that std::multi{map,set} would. However, doing that is unnecessary because std::{map,set} guarantee that all elements are unique. It is reasonable to expect that erase(key) is equivalent or better than: au

Re: [PATCH v1] libstdc++: Optimize removal from unique assoc containers [PR112934]

2024-03-14 Thread Barnabás Pőcze
Hi 2024. március 13., szerda 12:43 keltezéssel, Jonathan Wakely írta: > On Mon, 11 Mar 2024 at 23:36, Barnabás Pőcze wrote: > > > > Previously, calling erase(key) on both std::map and std::set > > would execute that same code that std::multi{map,set} would. >

Re: [PATCH v1] libstdc++: Optimize removal from unique assoc containers [PR112934]

2024-05-17 Thread Barnabás Pőcze
Hi 2024. március 13., szerda 12:43 keltezéssel, Jonathan Wakely írta: > On Mon, 11 Mar 2024 at 23:36, Barnabás Pőcze wrote: > > > > Previously, calling erase(key) on both std::map and std::set > > would execute that same code that std::multi{map,set} would. >

Re: [PATCH v1] libstdc++: Optimize removal from unique assoc containers [PR112934]

2024-06-14 Thread Barnabás Pőcze
2024. május 18., szombat 3:01 keltezéssel, Barnabás Pőcze írta: > Hi > > > 2024. március 13., szerda 12:43 keltezéssel, Jonathan Wakely > írta: > > > On Mon, 11 Mar 2024 at 23:36, Barnabás Pőcze wrote: > > > > > > Previously, calling erase(key)

Re: [PATCH v1] libstdc++: Optimize removal from unique assoc containers [PR112934]

2024-09-22 Thread Barnabás Pőcze
Hi Jonathan It seems this patch got stuck, is there any chance it could be ultimately accepted or rejected some time in the future? Regards, Barnabás Pőcze 2024. március 13., szerda 12:43 keltezéssel, Jonathan Wakely írta: > On Mon, 11 Mar 2024 at 23:36, Barnabás Pőcze wr