Bug 21946 – importC: Support parsing __extension__ keyword

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-05-21T09:26:57Z
Last change time
2021-12-14T10:37:06Z
Keywords
ImportC, pull
Assigned to
No Owner
Creator
Iain Buclaw
See also
https://issues.dlang.org/show_bug.cgi?id=22598

Comments

Comment #0 by ibuclaw — 2021-05-21T09:26:57Z
This keyword is used to suppress -pedantic warnings for many C extensions. __extension__ has no effect aside from this. In CParser, it should simply be ignored. --- __extension__ typedef long long __time64_t; __extension__ typedef long long int64_t; __extension__ typedef unsigned long long uint64_t; __extension__ typedef long long int_least64_t; __extension__ typedef unsigned long long uint_least64_t; __extension__ typedef long long int_fast64_t; __extension__ typedef unsigned long long uint_fast64_t;
Comment #1 by dlang-bot — 2021-05-21T16:17:12Z
@ibuclaw updated dlang/dmd pull request #12552 "fix Issue 21946, 21942: Remove __asm and __asm__ tokens" fixing this issue: - fix Issue 21946, 21942: Remove __asm and __asm__ tokens, add note about using macro to remove or replace alternate keywords https://github.com/dlang/dmd/pull/12552
Comment #2 by dlang-bot — 2021-05-23T09:20:25Z
dlang/dmd pull request #12552 "fix Issue 21946, 21942: Remove __asm and __asm__ tokens" was merged into master: - bd4045f45d6126b9da4e5d254acc73f6093f6398 by Iain Buclaw: fix Issue 21946, 21942: Remove __asm and __asm__ tokens, add note about using macro to remove or replace alternate keywords https://github.com/dlang/dmd/pull/12552