[cfe-commits] PATCH: Improve ability to parse builtin headers in freestanding mode

Rafael EspĂ­ndola rafael.espindola at gmail.com
Mon Nov 15 14:04:26 PST 2010


On 13 November 2010 18:38, Chandler Carruth <chandlerc at google.com> wrote:
> I'm trying to get all of Clang's builtin headers to parse with
> -ffreestanding, and I think these are the two biggest issues. I'm not
> confident that the limits.h change is the exact correct pattern, but I
> copied the one used in stdint.h.

I would assume that just __STDC_HOSTED__ should be sufficient, but if
there is precedent elsewhere, use it.

> The mm_malloc.h change makes it completely
> free of system headers except for Windows.

Adding dependencies on a "egregious workaround" is bad, but we will
need it for a long time, so OK.

Cheers,
Rafael



More information about the cfe-commits mailing list