Hi DJ, Currently the MEP target does not define __INTPTR_TYPE__ or __INT32_TYPE__ which is a problem for newlib. (The newlib header file _intsup.h depends upon these macros being defined). Fortunately the fix is easy - add newlib-stdin.h to the tm_file list for MEP.
So, is this patch OK to apply ? Tested with an mep-elf toolchain. Cheers Nick gcc/ChangeLog 2016-03-01 Nick Clifton <ni...@redhat.com> * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file. Index: gcc/config.gcc =================================================================== --- gcc/config.gcc (revision 233858) +++ gcc/config.gcc (working copy) @@ -1973,7 +1973,7 @@ inhibit_libc=true ;; mep-*-*) - tm_file="dbxelf.h elfos.h ${tm_file}" + tm_file="dbxelf.h elfos.h ${tm_file} newlib-stdint.h" tmake_file=mep/t-mep c_target_objs="mep-pragma.o" cxx_target_objs="mep-pragma.o"