union gimple_statement_d;
typedef union gimple_statement_d *gimple;
but after GCC v5.x as ChangeLog described:
2013-11-19 David Malcolm <dmalcolm@redhat.com>
Convert gimple types from a union to C++ inheritance.
* Makefile.in (GIMPLE_H): Add dep on is-a.h.
* coretypes.h (union gimple_statement_d): Remove declaration.
(gimple): Convert from being a "union gimple_statement_d *"
to a "struct gimple_statement_base *"
...
Workaround by adding GimpleTy data type:
union gimple_statement_d;
#if (GCC_MAJOR > 4)
struct gimple;
typedef struct gimple GimpleTy;
#else
typedef union gimple_statement_d GimpleTy;
#endif
GCC v4.x:
but after GCC v5.x as ChangeLog described:
Workaround by adding
GimpleTy
data type: