GNU bug report logs -
#76559
31.0.50; [-O3 + PGTK] Crash when 'copying as kill'/'killing word'
Previous Next
Full log
View this message in rfc822 format
> Date: Thu, 27 Feb 2025 10:50:18 -0800
> Cc: Po Lu <luangruo <at> yahoo.com>, marian.iurie <at> gmail.com,
> michael.albinus <at> gmx.de, iura.mail <at> gmail.com, 76559 <at> debbugs.gnu.org,
> Stefan Kangas <stefankangas <at> gmail.com>, Eli Zaretskii <eliz <at> gnu.org>
> From: Paul Eggert <eggert <at> cs.ucla.edu>
>
> >> I believe we should recommend against using -O3. Too many bad bugs
> >
> > If we do that, can we include link time optimization in that?
>
> I've found real bugs with -flto, an option that is not supposed to
> introduce bugs though it may trigger latent bugs. Although I'm not a fan
> of -flto for typical use (for one thing, it's too expensive) I don't
> think we should discourage it at least when debugging.
>
> Similarly for -O3.
The problem with -O3 that too many recent GCC versions had bugs in it,
especially in the first version of a major release. By "recommend
against" I meant to advise users and distros (as opposed to Emacs
developers) not to use it. I didn't mean to reject it, so if you or
someone else wants to use it as a means for finding bugs, you can.
People nowadays are likely to upgrade to the latest GCC version as
soon as it's out, and immediately start using it for production, and
are also too eager to use -O3 without checking whether it gives them
any gains. The recommendation I have in mind aims at making the lives
of those users safer and less complicated.
This bug report was last modified 149 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.