https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69226
--- Comment #3 from Yulia Koval <vaalfreja at gmail dot com> ---
We can use this patch and fix both this bug and pr68456 for iamcu:
diff --git a/gcc/config/i386/iamcu.h b/gcc/config/i386/iamcu.h
index f143bf9..5ca5c5e 100644
--- a/gcc/config/i386/iamcu.h
+++ b/gcc/config/i386/iamcu.h
@@ -55,6 +55,9 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If
not, see
#undef LINK_GCC_C_SEQUENCE_SPEC
#define LINK_GCC_C_SEQUENCE_SPEC "%{!miamcu-fp-libgcc:-lsoftfp %G %L %G}
%{miamcu-fp-libgcc:%G %L %G}"
+#undef STDINT_LONG32
+#define STDINT_LONG32 0
+
/* A C statement (sans semicolon) to output to the stdio stream
FILE the assembler definition of uninitialized global DECL named
NAME whose size is SIZE bytes and alignment is ALIGN bytes.