This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH][libcpp] New deferred output pragma
>>>>> "Basile" == Basile Starynkevitch <firstname.lastname@example.org> writes:
Basile> However, I could imagine cases where it might be useful, assuming
Basile> special plugins & possibly other extensions. Let pretend that plugin
Basile> could install their own magic macros (like e.g. __COUNTER__ or
Basile> __TIME__, e.g. some macro which expands to some "magical" stuff,
Basile> implemented by a plugin).
Basile> Then, we might imagine a plugin which produce extra serialization
Basile> routines (old people like me remember RPCXDR). It could process every
Basile> structure having an extra plugin attribute (like
Basile> __attribute__((serialize)) for instance), and for each such structure,
Basile> generate the appropriate serializing routine, and the #pragma GCC
Basile> deferred_output could handle or produce these.
If you are already positing a plugin, then the plugin could just
generate the functions directly, and not rely on cpp extensions.