On Wed, 14 Apr 2021, pawel k. via Gcc wrote: > My best guess is if we could hookify all target code everything callable > either from frontends or midend, we could try to severly cut this estimate.
That's a 700-patch series (there are about 700 target macros). For every target macro, it's necessary to work out the corresponding target hook interface, which shouldn't always correspond one-to-one to the macro interface (and hooks have well-defined argument types, which macros don't always), and deal with the conversion, covering all the irregular ways in which different targets define the macros (including e.g. cases where some architectures define a target macro differently for different target OSes). -- Joseph S. Myers [email protected]
