From 083c840bf70945aeecf63e797f50ec74a1937ef0 Mon Sep 17 00:00:00 2001
From: Brion Vibber <brion@pobox.com>
Date: Tue, 24 Feb 2015 20:02:34 -0800
Subject: [PATCH] Accept asmjs-unknown-emscripten triple

---
 ChangeLog                 | 5 +++++
 config.sub                | 5 ++++-
 testsuite/config-sub.data | 1 +
 3 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index c37095f..e8a291a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-02-24  Brion Vibber <brion@pobox.com>
+
+	* config.sub (asmjs-*-emscripten): New.
+	* testsuite/config-sub.data: Add test cases.
+
 2015-02-22  Taylor R Campbell  <riastradh@NetBSD.org>
 	    Ben Elliston  <bje@gnu.org>
 
diff --git a/config.sub b/config.sub
index bc855a2..a4223aa 100755
--- a/config.sub
+++ b/config.sub
@@ -2,7 +2,7 @@
 # Configuration validation subroutine script.
 #   Copyright 1992-2015 Free Software Foundation, Inc.
 
-timestamp='2015-02-22'
+timestamp='2015-02-24'
 
 # This file is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License as published by
@@ -375,6 +375,7 @@ case $basic_machine in
 	| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
 	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
 	| arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
+	| asmjs-* \
 	| avr-* | avr32-* \
 	| be32-* | be64-* \
 	| bfin-* | bs2000-* \
@@ -1525,6 +1526,8 @@ case $os in
 		;;
 	-nacl*)
 		;;
+	-emscripten)
+		;;
 	-none)
 		;;
 	*)
diff --git a/testsuite/config-sub.data b/testsuite/config-sub.data
index 9305076..706b23c 100644
--- a/testsuite/config-sub.data
+++ b/testsuite/config-sub.data
@@ -37,6 +37,7 @@ armv7-unknown-netbsdelf7.0-eabi	armv7-unknown-netbsdelf7.0-eabi
 armv7-unknown-netbsdelf7.0-eabihf	armv7-unknown-netbsdelf7.0-eabihf
 armv8b-linux-gnueabi		armv8b-unknown-linux-gnueabi
 aros				i386-pc-aros
+asmjs-unknown-emscripten	asmjs-unknown-emscripten
 avr32				avr32-unknown-none
 avr32-linux			avr32-unknown-linux-gnu
 be32-none			be32-unknown-none
-- 
1.9.3 (Apple Git-50)

