[Bug c/94389] __attribute__((warn_unused_result)) will warn if the result is discarded as an optimisation

segher at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Mar 30 23:25:05 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94389

--- Comment #7 from Segher Boessenkool <segher at gcc dot gnu.org> ---
(In reply to felix from comment #6)
> I don’t mind the transformation being applied.

That is not what I said.  I said the **language frontend** should not
do this.  A language frontend should give an as faithful as possible
description of the source code to the rest of the compiler.


More information about the Gcc-bugs mailing list