On Thu, 17 Oct 2024, Florian Weimer wrote:

> > I'm not sure such a warning particularly helps, however; any ABI 
> > incompatibility occurs at the point where someone changes their code to 
> > stop defining bool and to use the standard bool instead.  (And any problem 
> > code would already have been ABI-incompatible with C++.)
> 
> The warning might encourage developers to plan for the transition and
> think about the ABI impact.  I think we should try to bring across the
> message that this isn't just about fixing build failures.

Certainly there should be porting instructions much like those in 
gcc-14/porting_to.html (and those could discuss ABI considerations around 
changing bool definitions where a library is involved, in more detail than 
could go in a warning).  And it's possible that mass builds with 
comparison of configure test results would help detect any cases where 
those get perturbed by a change to -std=gnu23 as default, similar to the 
previous C modernization changes.

-- 
Joseph S. Myers
josmy...@redhat.com

Reply via email to