CodeWarrior allows certain language options and some compiler options that can be tested during build time. The options appear in the form of directives such as __option, __supports, __has_feature, and __has_intrinsic. GCC does not support testing of options during build time. But by using some of the GCC macros we will be able to imitate the CW directive. The porting process requires replacing __option(x) with a #if of the GCC equivalent macro.
The following directives should be mapped.