On Wed, 15 Nov 2023, David Malcolm wrote:

> As mentioned, I'm currently investigating capturing per-language option
> URLs (to address Iain's and Marc's comments about D and Ada); if I get
> that working, I may need to add a similar note for adding a new
> frontend.
> 
> Hope the overall approach seems reasonable.

Yes, the approach seems reasonable.

I suppose a difficulty with per-language URLs is that a given option has a 
single OPT_* enumeration value; the diagnostic calls don't say whether 
it's being used from a front end or the middle end (though maybe there's 
not much overlap between the two) - though some option handling already 
distinguishes based on what language is being compiled (e.g. 
LangEnabledBy).  For per-architecture URLs you don't have this issue 
because only one architecture is built into GCC at a time.

-- 
Joseph S. Myers
jos...@codesourcery.com

Reply via email to