Hi Sebastien,

  I recently found that I could not build libstdc++ for the lm32-elf
  target because the port lacked a definition of __INTPTR_TYPE__.  I
  tracked this down to the fact that INTPTR_TYPE was not being defined
  when building gcc, and this in turn was due to the fact that the
  newlib stdint types were not being defined.  So please may I apply the
  patch below to correct this problem ?

Cheers
  Nick

gcc/ChangeLog
2015-10-06  Nick Clifton  <ni...@redhat.com>

        * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.

Index: gcc/config.gcc
===================================================================
--- gcc/config.gcc      (revision 228513)
+++ gcc/config.gcc      (working copy)
@@ -1834,7 +1834,7 @@
         md_file=iq2000/iq2000.md
         ;;
 lm32-*-elf*)
-        tm_file="dbxelf.h elfos.h ${tm_file}"
+        tm_file="dbxelf.h elfos.h ${tm_file} newlib-stdint.h"
        tmake_file="${tmake_file} lm32/t-lm32"
         ;;
 lm32-*-rtems*)

Reply via email to