[PATCH, gdc] - Merging gdc (GNU D Compiler) into gcc
Joseph S. Myers
joseph@codesourcery.com
Fri Oct 5 16:43:00 GMT 2012
On Fri, 5 Oct 2012, Iain Buclaw wrote:
> Would the best approach be to move all handle_* functions and any
> helper functions into a new source file that can be shared between
> frontends, and define two new frontend hooks,
> LANG_HOOK_ATTRIBUTE_TABLE and LANG_HOOK_FORMAT_ATTRIBUTE_TABLE ?
I don't know what the best approach would be. It's up to you to work out
a clean design (that is, a design that makes logical sense as a way to
implement the relevant features - starting from the features, not the
existing code, as a justification for the design) and justify in your
patch posting why you think it's the right way to refactor this code so it
can be shared.
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Gcc-patches
mailing list