https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115825
--- Comment #28 from rguenther at suse dot de <rguenther at suse dot de> --- On Thu, 16 Jan 2025, segher at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115825 > > --- Comment #27 from Segher Boessenkool <segher at gcc dot gnu.org> --- > > This is a GIMPLE pass which has no idea what the backend will expand > > __builtin_darn() to. > > So you are saying >90% of builtins now need to say they are pure and const > (which > makes totally no sense for things not touching memory)? It never was like > this, > only things that do touch memory at all ever looked at those attributes :-( All builtins you expect GCC should CSE need to be marked pure or const (and that was always the case). I think DARN shouldn't be CSEd though.