July 26

Hi GDC

Over at: https://gcc.gnu.org/onlinedocs/gdc/Missing-Features.html I read that GDC doesn't invoke the preprocessor automatically:

ImportC Limitations

    GNU D does not run the preprocessor automatically for any ImportC sources. Instead all C files are expected to be manually preprocessed before they are imported into the compilation.

Is that a feature that is likely, or unlikely, to be added to a future version of GDC?

Thanks,

July 27

On Wednesday, 26 July 2023 at 04:35:43 UTC, Chris Piker wrote:

>

Is that a feature that is likely, or unlikely, to be added to a future version of GDC?

I expect it to be incremental. There's a POC implementation that uses the built-in preprocessor that already exists in gdc (libcpp), initially none of the C-specific target macros would be exposed though - this is one arcane part of gcc/g++ that needs rewriting because at the moment using it just opens a pandora's box (even in other front-end languages).