-# RTEMS uses newlib which does not require prototype fixing
-STMP_FIXPROTO =
-
-# Don't install "assert.h" in gcc. RTEMS uses the one in newlib.
-INSTALL_ASSERT_H =
+# RTEMS always has limits.h.
+LIMITS_H_TEST = true
+# If we are building next to newlib, this will let us find the RTEMS
+# limits.h when building libgcc2. Otherwise, newlib must be installed
+# first.
+LIBGCC2_INCLUDES = -I$(srcdir)/../newlib/libc/sys/rtems/include