Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
libc/spec/spec.td | ||
---|---|---|
110 | would it be reasonable to make the gnu extensions depend on the posix extensions instead of moving this to the global types? |
libc/spec/spec.td | ||
---|---|---|
110 | I suppose you mean that we should include posix.td in gnu.td? I think that is a fair concern in this particular case as this particular GNU extension is actually an extension of the POSIX standard. But, that is not the case in general. Also, the .td files are like the header files. So, say posix.td includes stdc.td and gnu_ext.td also includes stdc.td, then a config including posix,td, gnu_ext.td and stdc.td will get duplicate/triplicate definitions. Even if we have something like a header-guard to avoid such duplicates, what will happen is that a config wanting, say only the GNU extensions, will also see the POSIX extensions. |
would it be reasonable to make the gnu extensions depend on the posix extensions instead of moving this to the global types?