This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Replace __attribute__((visibility("protected")))


> On Fri, Mar 6, 2015 at 2:28 PM, Roland McGrath <roland@hack.frob.com> wrote:
> > It needs comments.
> 
> Did you mean duplicate my commit log to each
> __attribute__ ((visibility ("protected"))) change?
> What about existing
> 
> asm (".protected xxx");
> 
> Do they also need comments?  I don't think it is necessary
> since the commit log explains why a change is made.

What's necessary is that comments next to the actual code explain why it's
any nonobvious way it is.  In this case, you need a short comment
mentioning the GCC bug in each place that you're avoiding using the obvious
compiler feature because of a bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]