On Fri, Sep 30, 2022 at 6:35 PM Olivier Hainque via Gcc-patches
<gcc-patches@gcc.gnu.org> wrote:
>
> Hello,
>
> The attached patch is a proposal to #undef offsetof before
> the #define we do in ginclude/stddef.h, which prevents redefinition
> warnings from dg tests passing -Wsystem-headers on systems which
> provide a definition in system headers, such as VxWorks.
>
> We have been using this for a while with gcc-11 based toolchains
> for a wide range of configurations (linux and windows hosts, native
> and cross, bare board or VxWorks for a range of CPUs).
>
> This also passes build + sanity test with gcc-12 for
> powerpc64-vxworks7r2, then full bootstrap + regression testing
> for mainline on x86_64-linux.
>
> Ok to commit?

OK.

> Thanks in advance!
>
> With Kind Regards,
>
> Olivier
>
> 2022-09-30  Olivier Hainque  <hain...@adacore.com>
>
> gcc/
>        * ginclude/stddef.h: #undef offsetof before #define.
>
>
>
>

Reply via email to