[Bug tree-optimization/81679] use attribute unused on function arguments as an optimization hint
msebor at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Feb 4 01:03:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81679
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |UNCONFIRMED
Ever confirmed|1 |0
--- Comment #7 from Martin Sebor <msebor at gcc dot gnu.org> ---
It's the feature that I think would be useful. The name of the new attribute
itself or its placement are secondary, although being able to repurpose the
intuitive name "unused" would be nice. If applying attribute unused to
parameters wouldn't work then making unused a function attribute might be an
alternative, like so:
__attribute__ ((unused (1))) void f (void*);
meaning the first parameter isn't used by the function definition.
More information about the Gcc-bugs
mailing list