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.