Index: configure
===================================================================
--- configure	(revision 134075)
+++ configure	(working copy)
@@ -2337,6 +2337,8 @@
     llvm_cv_target_os_type="MingW" ;;
   *-*-haiku*)
     llvm_cv_target_os_type="Haiku" ;;
+  *-*-rtems*)
+    llvm_cv_target_os_type="RTEMS" ;;
   *-unknown-eabi*)
     llvm_cv_target_os_type="Freestanding" ;;
   *)
Index: include/llvm/ADT/Triple.h
===================================================================
--- include/llvm/ADT/Triple.h	(revision 134075)
+++ include/llvm/ADT/Triple.h	(working copy)
@@ -95,7 +95,8 @@
     Solaris,
     Win32,
     Haiku,
-    Minix
+    Minix,
+    RTEMS
   };
   enum EnvironmentType {
     UnknownEnvironment,
Index: autoconf/configure.ac
===================================================================
--- autoconf/configure.ac	(revision 134075)
+++ autoconf/configure.ac	(working copy)
@@ -297,6 +297,8 @@
     llvm_cv_target_os_type="MingW" ;;
   *-*-haiku*)
     llvm_cv_target_os_type="Haiku" ;;
+  *-*-rtems*)
+    llvm_cv_target_os_type="RTEMS" ;;
   *-unknown-eabi*)
     llvm_cv_target_os_type="Freestanding" ;;
   *)
