X-Git-Url: http://cloudbase.mooo.com/gitweb/z180-stamp.git/blobdiff_plain/a1595a8e7fe2148c818aef75d454e9f5e0696f78..414caa77d5709bf3372d1f9245312781eee7961b:/include/common.h diff --git a/include/common.h b/include/common.h index dea638a..eb38853 100644 --- a/include/common.h +++ b/include/common.h @@ -9,6 +9,14 @@ #include #include +#include +#include +#include + +#define GCC_VERSION (__GNUC__*10000 + __GNUC_MINOR__*100 + __GNUC_PATCHLEVEL__) + +#define USED __attribute__((used)) +#define UNUSED __attribute__((unused)) #ifdef __AVR__ #include @@ -30,10 +38,13 @@ struct bits { #define SBIT(port,pin) ((*(volatile struct bits*)&port).b##pin) -//TODO: +//GCC bug PR61443 // Known to work: 4.8.4, 4.9.1 // Known to fail: 4.8.3, 4.9.0 + +#if (GCC_VERSION < 40804) || (GCC_VERSION == 40900) #define GCC_BUG_61443 1 +#endif /* PR61443 */ #else // TODO: stm32