This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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: Is this a bug in libffi testsuite on solaris2.8?


dewar@gnat.com (Robert Dewar) writes:

>> No we don't.  It's up to the caller to provide the memory.
>
> I don't understand, we are talking about the code generated to build a
> trampoline. That call to build the trampoline is generated by the compiler,
> it does not result from direct user code. The user knows nothing about
> the trampoline (or the need for it).

I think there's confusion of different kinds of trampolines.

The trampolines that GCC generates when the address of a nested
function is taken, are built by the compiler and invisible to the
programmer.

The trampolines that libffi uses -- presumably for similar purposes --
are explicitly allocated by the programmer.

zw


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