https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106779
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- include/ansidecl.h has: #if defined (__STDC__) || defined(__cplusplus) || defined (_AIX) || (defined (__mips) && defined (_SYSTYPE_SVR4)) || defined(_WIN32) ... #define PTR void * ... #else /* Not ANSI C. */ #define PTR char * ... #endif So, can you rerun the above command line with -E -dD instead of -c and -o objalloc.i instead of -o objalloc.o ?