Hello
The TI compiler supports a number of GCC extensions to the C and C++ languages. Now if my understanding is correct you can either enable all of them, or none. I wonder if it wouldn't make sense to support a more fine-grained selection. In my opinion, the extensions can be grouped into
- those that are essentially back-ports of now standardized language constructs, such as typeof, alignof, long long types, designated initializers.
- those that are somewhat awkward and will make your code less portable (even if using newer language standards), such as zero-length arrays, multi-line strings, dollar signs in names, or case ranges.
- those that are outright dangerous as they have the potential to hide bugs in standard code, although I can only think of the abbreviation " x ?: y " for " x ? x : y " right now.
Now I think it would be great if I could simply enable the extensions in group 1, so that I could use features of e.g. C++11 (decltype (although named typeof), alignof), while avoiding the possibility to litter my code with non-standard constructs of group 2 and 3. Is this already possible somehow?
Regards
Markus