This is the mail archive of the gcc-patches@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: [PATCH] testsuite: Add new effective target keywords


Am Montag, 18. April 2005 03:18 schrieb Paul Brook:
> On Sunday 17 April 2005 23:28, Björn Haase wrote:
> > Hi,
> >
> > when preparing to prepare the testsuite to be better adapted also for
> > small targets, I have made use of the approach that you had suggested.
> > You will find attached a patch that defines three new effective-target
> > keywords:
> >
> > nested_functions
> > trampolines
>
> Why do you need to check for these two separately? Isn't the "trampolines"
> test sufficient to cover all the problematic uses of nested functions?
>
...  I agree that it's possibly rather a technical issue: I meant 
"nested_functions" to be more restrictive than "trampolines": In the case of 
Harvard-Architectures with read-only program memory space (like AVR), it will 
*allways* be impossible to implement trampolines. Limited nested function 
support, however, possibly could be implemented without trampolines.? E.g, it 
seems that avr-ada already realizes limited nested function support that is 
functional as long as the address of the nested function is not passed to the 
world outside the wrapper-function. I do not expect that this subtle 
distinction will be of importance for AVR in the near future but I never the 
less thought two keywords to be the more appropriate way.

Yours,

Björn


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