Re: [PATCH] tree-optimization/104475 - bogus -Wstringop-overflow

2023-01-19 Thread Jason Merrill via Gcc-patches
On 1/18/23 03:06, Richard Biener wrote: On Tue, 17 Jan 2023, Jason Merrill wrote: On 12/7/22 06:25, Richard Biener wrote: The following avoids a bogus -Wstringop-overflow diagnostic by properly recognizing that >m_mutex cannot be nullptr in C++ even if m_mutex is at offset zero. The frontend

Re: [PATCH] tree-optimization/104475 - bogus -Wstringop-overflow

2023-01-18 Thread Richard Biener via Gcc-patches
On Tue, 17 Jan 2023, Jason Merrill wrote: > On 12/7/22 06:25, Richard Biener wrote: > > The following avoids a bogus -Wstringop-overflow diagnostic by > > properly recognizing that >m_mutex cannot be nullptr in C++ > > even if m_mutex is at offset zero. The frontend already diagnoses > > a

Re: [PATCH] tree-optimization/104475 - bogus -Wstringop-overflow

2023-01-17 Thread Jason Merrill via Gcc-patches
On 12/7/22 06:25, Richard Biener wrote: The following avoids a bogus -Wstringop-overflow diagnostic by properly recognizing that >m_mutex cannot be nullptr in C++ even if m_mutex is at offset zero. The frontend already diagnoses a >m_mutex != nullptr comparison and the following transfers this

[PATCH] tree-optimization/104475 - bogus -Wstringop-overflow

2022-12-07 Thread Richard Biener via Gcc-patches
The following avoids a bogus -Wstringop-overflow diagnostic by properly recognizing that >m_mutex cannot be nullptr in C++ even if m_mutex is at offset zero. The frontend already diagnoses a >m_mutex != nullptr comparison and the following transfers this knowledge to the middle-end which sees