From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2607:f8b0:4864:20::143; helo=mail-it1-x143.google.com; envelope-from=theracermaster@gmail.com; receiver=edk2-devel@lists.01.org Received: from mail-it1-x143.google.com (mail-it1-x143.google.com [IPv6:2607:f8b0:4864:20::143]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 2077C2119EBE3 for ; Mon, 17 Dec 2018 20:25:21 -0800 (PST) Received: by mail-it1-x143.google.com with SMTP id w18so1860092ite.1 for ; Mon, 17 Dec 2018 20:25:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=6WyJzvrUYz9jjso+u0/DWVTen71yORPLNIZ2lUIGIyU=; b=YU80PglKH/qJOLxNTv007tC2w2Lb2+3DTN3hYZdG6n2rGlnbqe+BWROnPUacV1i3tK yQfybkexsaw8oUXmgbAkOwORy0jajTomwI903aZsN3FxomJBHoHHqWQE9xfcQmFX2CxL 7N0URtPBAw6FDLUwhEc0XSBV2sQGTdCUCY1AmXZmzD84jl9k3uMajzLYc6xHINFjiyLB gAGAIoZlXEJ7cP3IHBMbQDJQKubw3lsEHIUa+cLDHk4mC5JmxFbMDi+beMb7Cwktt1hU HtlODNTAsxlsS0QieUH3iwyYSynhhnpkQC7jR+c5UuE1/tV4LcRUqd+UJG5g7Itsn/9u 8Vfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=6WyJzvrUYz9jjso+u0/DWVTen71yORPLNIZ2lUIGIyU=; b=mLGImbMFw5jrfo3h/aoM/17NQv4rP07KG86ajakvXbglGscWXZeLzIg6ntPHo4ob88 DKkwj1NXJd4pc+dZ1Gg8FUXY8h/XyPPC5rHBBwucRo/fi6nK2dd3u8agW1irGh+P5Hwb AZxl4z8COX0jph+iEzWPqKTOnBEuuXoi6tw3OwOr1gWH6UfGaVeHMbKxVRZbnvZozlhq a2K33V2uGa08TAaNeb6nSBbXjbdN0ITdnovSfPLQp05KN11tWNS/iS+kYV04e43bYVvS 8OZzxcod6Ml8EWFxzazYn74sRAD+Z9oWFmbxqM1fbX0TbnoxrdGgRftDLknpmLlUedyo ndKA== X-Gm-Message-State: AA+aEWY1jusr3o9XqnAKNKKhe+7DawITIZJ/825aW5ITz3TkwFPEl5/k Amdq+plz2GElu2q4VC3voKPve+6m X-Google-Smtp-Source: AFSGD/USTIzb3D0GkUoPIaPFLJnY2/D9UhGDRrjVKcj2sEigwQD1zFPT4KwxXXl0qzl/3nCLLWH+tA== X-Received: by 2002:a02:6284:: with SMTP id d126mr14886244jac.120.1545107120334; Mon, 17 Dec 2018 20:25:20 -0800 (PST) Received: from localhost.localdomain (c-73-73-210-170.hsd1.il.comcast.net. [73.73.210.170]) by smtp.gmail.com with ESMTPSA id x79sm709653ita.34.2018.12.17.20.25.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Dec 2018 20:25:19 -0800 (PST) From: Alex James To: edk2-devel@lists.01.org Cc: Daryl McDaniel , Jaben Carsey Date: Mon, 17 Dec 2018 22:25:13 -0600 Message-Id: <20181218042513.43232-3-theracermaster@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20181218042513.43232-1-theracermaster@gmail.com> References: <20181218042513.43232-1-theracermaster@gmail.com> MIME-Version: 1.0 Subject: [PATCH v1 2/2] StdLib/Environs: Avoid infinite recursion in _Exit X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Dec 2018 04:25:21 -0000 Content-Transfer-Encoding: 8bit Use __builtin_unreachable instead of infinite recursion to fix an infinite recursion error when building StdLib with XCODE5/CLANG38. Cc: Daryl McDaniel Cc: Jaben Carsey Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Alex James --- StdLib/LibC/StdLib/Environs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/StdLib/LibC/StdLib/Environs.c b/StdLib/LibC/StdLib/Environs.c index 15221a1260..a29cb9954c 100644 --- a/StdLib/LibC/StdLib/Environs.c +++ b/StdLib/LibC/StdLib/Environs.c @@ -120,7 +120,7 @@ _Exit(int status) longjmp(gMD->MainExit, 0x55); // Get out of here. longjmp can't return 0. Use 0x55 for a non-zero value. #ifdef __GNUC__ - _Exit(status); /* Keep GCC happy - never reached */ + __builtin_unreachable (); // Keep GCC happy #endif } -- 2.20.1