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] Remove nested function in elf/dl-lookup.c.


On Wed, Feb 12, 2014 at 06:18:45PM -0500, Carlos O'Donell wrote:
> On 02/12/2014 06:05 PM, Roland McGrath wrote:
> > I completely disagree that this improves readability or maintainability in
> > any way.  But I won't object.
> 
> Bug 8300 - no local symbol information within nested or nesting procedures
> https://sourceware.org/bugzilla/show_bug.cgi?id=8300
> 
> Bug 53927 - wrong value for DW_AT_static_link 
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53927
> 
> If the above two bugs get fixed I'll consider having another discussion
> about nested functions.

I completely agree that removing nested functions improves
readability. The first time I saw this code it was a pain to make
sense of it. I do not think most people are familiar with GCC nested
functions, and they are unsafe to use unless you can be sure that they
will be inlined (if not, they require executable stack) which is a
very good reason for nobody to even bother learning that they exist.

Rich


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