Re: Nested-Functions

2018-01-04 Thread Alexsandr Yvarov
Thanks Jonathan! Hm... why would don't add it for portability? Of course, i don't see codes with Nested-Functions so much, but... I think that better would delete it, or add full support? And, it's contradicts to standart of C, nope?:) ~~~ About lambda: Yeah is very

Re: Nested-Functions

2018-01-04 Thread Nathan Sidwell
On 01/03/2018 07:52 PM, Austin T wrote: By nested functions, I'm assuming that means raw function definitions that are valid inside a temporary scope of a function. If I'm not mistaken, they're equivalent to C++ lambda expressions but just written in a syntactic sugar syntax.

Re: Nested-Functions

2018-01-04 Thread Jonathan Wakely
On 4 January 2018 at 00:54, nick wrote: > > > On 2018-01-03 07:52 PM, Austin T wrote: >> By nested functions, I'm assuming that means raw function definitions that >> are valid inside a temporary scope of a function. If I'm not mistaken, >> they're equ

Re: Nested-Functions

2018-01-04 Thread Jonathan Wakely
; > > It depends actually, lambdas are consider the C++ standard of this. I am > wondering what > you mean Alexsandir and what is your use case as lambdas tryto solve this for > most use > cases of antonymous and nested functions. What are the requirements if any > that la

Re: Nested-Functions

2018-01-03 Thread nick
On 2018-01-03 07:52 PM, Austin T wrote: >  By nested functions, I'm assuming that means raw function definitions that > are valid inside a temporary scope of a function. If I'm not mistaken, > they're equivalent to C++ lambda expressions but just written in a s

Re: Nested-Functions

2018-01-03 Thread Austin T
By nested functions, I'm assuming that means raw function definitions that are valid inside a temporary scope of a function. If I'm not mistaken, they're equivalent to C++ lambda expressions but just written in a syntactic sugar syntax. Austin On Jan 3, 2018 2:44 PM, "nick

Re: Nested-Functions

2018-01-03 Thread nick
s. I am wondering what you mean Alexsandir and what is your use case as lambdas tryto solve this for most use cases of antonymous and nested functions. What are the requirements if any that lambdas don't meant and have you looked at the C++14/17 standard for them if your compiler suppo

Re: Nested-Functions

2018-01-03 Thread Jonathan Wakely
On 3 January 2018 at 21:13, Alexsandr Yvarov wrote: > Why would dont add it at GNU G++? Aren't C++ lambda expressions more powerful and flexible?

Nested-Functions

2018-01-03 Thread Alexsandr Yvarov
Why would dont add it at GNU G++?

Re: Profiling+nested functions+dynamic linking on IA-64/Linux

2005-10-24 Thread Eric Botcazou
> Yes. Instead of a direct call, load the fptr for _mcount and do an > indirect call. That'll avoid the dynamic linker. You can conditionalize > this on cfun->static_chain_decl to avoid the extra work when nested > functions aren't involved. Ah! yes, of course, writin

Re: Profiling+nested functions+dynamic linking on IA-64/Linux

2005-10-24 Thread Richard Henderson
on cfun->static_chain_decl to avoid the extra work when nested functions aren't involved. Also, technically fptrs (and thus dynamic linking) isn't used when either TARGET_NO_PIC or TARGET_AUTO_PIC are set. Of course, I wouldn't expect nested functions to be used here either, but... r~

Profiling+nested functions+dynamic linking on IA-64/Linux

2005-10-24 Thread Eric Botcazou
itten in glibc (in particular the 'alloc' line) is quite annoying. Or is that a lost cause and should profiling require static linking in presence of nested functions? Thanks in advance. -- Eric Botcazou

Profiling & nested functions

2005-02-14 Thread Laurent GUERBY
Hi, Is GCC + gprof supposed to handle nested functions? It looks like they are not properly reported. The original problem was on Ada code with nested functions. This is with HEAD and GNU gprof 2.15.91.0.2 on a SuSE 9.2 system. Thanks in advance, Laurent $ cat cn.c #define N 1000 static