[Bug c++/60924] __attribute__((no_sanitize_address)) and friends should (only?) be allowed at function definitions
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Apr 22 19:58:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60924
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
>I think we should disallow __attribute__((no_sanitize_address)) at declarations because:
> 1) it's more consistent
More consistent with what, it would be very inconsistent with the rest of GCC's
attributes.
>2) it's much more readable, there's no "implicit attribute applied somewhere else"
> when looking at the code of a function/method.
This is just like where is the comment which describes what the arguments do.
Is there is only one coding style in this world?
>4) applying/removing the attribute would usually result in fewer recompilations (2000+ TUs in my case)
This is a C++ problem rather than a GCC issue :). Modules for the win.
More information about the Gcc-bugs
mailing list