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][libcpp] New deferred output pragma


On Apr 13, 2010, at 9:42 AM, Dave Edwards wrote:

>> Why can't you use a nested function and __COUNTER__?
> 
> We can't use nested functions as we need to apply special attributes to
> the generated function to ensure it appears in a different memory
> segment.
> This isn't possible with nested functions - they don't appear to accept
> attributes.

Adding a generally useful feature like attributes-on-nested-functions seems a lot more interesting than adding a special preprocessor extension like this.

-Chris


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