[PATCH] D136712: Define _GNU_SOURCE for arm baremetal in C++ mode.
Tom Hughes via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 28 14:39:00 PDT 2022
tomhughes added a comment.
More context: https://issuetracker.google.com/254916723
I take back my earlier comment about it applying for both C and C++. Checking locally I see the behavior @MaskRay describes:
`_GNU_SOURCE` not defined:
gcc -E -dD -o empty empty.c
`_GNU_SOURCE` defined:
g++ -E -dD -o empty empty.c
I'm just looking for compatibility with `gcc`/`g++` behavior.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D136712/new/
https://reviews.llvm.org/D136712
More information about the cfe-commits
mailing list