From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:400c:c09::243; helo=mail-wm0-x243.google.com; envelope-from=sigmaepsilon92@gmail.com; receiver=edk2-devel@lists.01.org Received: from mail-wm0-x243.google.com (mail-wm0-x243.google.com [IPv6:2a00:1450:400c:c09::243]) (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 BF620222F4E02 for ; Fri, 22 Dec 2017 11:11:53 -0800 (PST) Received: by mail-wm0-x243.google.com with SMTP id b199so23683077wme.1 for ; Fri, 22 Dec 2017 11:16:43 -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; bh=YdrR7J95fa8msDD4wSVakowxxAGxuVa5qiHqtnNcDNw=; b=kizb5Izy1iGi84O96eVAaS9Y1gf3tdh+n1F2ihoK0Wr6KO5f+aOihDwZGrfuTcEAzc SN9H017G5de9/wGZJpfuF6j8hI466ju+MbAcdxxOIX7D8P3Peu+jNQYQST8RBHFwJ8op wVxknPV24Uha9mY8L1Tiltq55VGi4F6Xjoyhy0u5Kiu6Kj55XEhHUcRIHHu+6p9hWvQA GxLrssRlg72sunxuWClgZa6azb/rrzIiukNrTWkSR0Ltx9iCRTJZYW7MrSpRyXtoWArA P6f3eIeZVM91xwS2ArEvg8qlBLtTmjJJky6D1YRt+bSAEUk5QJncEVmn0MVJFHDYkEDk abYw== 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; bh=YdrR7J95fa8msDD4wSVakowxxAGxuVa5qiHqtnNcDNw=; b=Ve25Qc/zIXhE3joivxHel2FfUWSzBJE8UJPMDwrzAsHaWijz0GikqnIiAGjPIrItVm H6YVDj9yUg5TKoW2CwhHtwPtY5IUdm4KMY2qRWjwJCcz4v3EFY73giUsktdCAtll3KJU 04RYvgcW7jrM5ZL3mLL6I5irJeTLjNRjHck0Bnb5Mzoh+5PpnJI4WFWr6Z26DsomjhxW JTomZEeSBQ+WVI5xt71uzbGVjgF/jqWEsR8hdXE6KATSkwEZD49UIZ6OJ2+yyD3Gj0z4 Mz45az3a2e7evRnY5722+4Tts0qS4xDLD93Bcqpg4m4C7663UGhjJJZOllnVUZ6KsI3d 4N3w== X-Gm-Message-State: AKGB3mKptNWfI3IN3mrthZsanH35FzzmR0RU0u64GyIywQBGQwCuqk/s r2atIgEWjSHpL42juQ5SUhStYkUj X-Google-Smtp-Source: ACJfBosbppX3CMaxoxUknBCGJLV5UGBMe00o2q/26/Oc1MoBsDN0ktlwX3ew/xbLob97r5+2nSfTqA== X-Received: by 10.28.217.75 with SMTP id q72mr12914866wmg.9.1513970202229; Fri, 22 Dec 2017 11:16:42 -0800 (PST) Received: from localhost.localdomain ([2a02:908:5a9:8400:5ec8:3210:9b68:c91c]) by smtp.gmail.com with ESMTPSA id m78sm9408748wmg.46.2017.12.22.11.16.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Dec 2017 11:16:41 -0800 (PST) From: M1cha To: edk2-devel@lists.01.org Cc: Ard Biesheuvel , Michael D Kinney , Liming Gao Date: Fri, 22 Dec 2017 20:16:40 +0100 Message-Id: <20171222191640.5313-1-sigmaepsilon92@gmail.com> X-Mailer: git-send-email 2.15.1 Subject: [PATCH v2 0/3] fix GCC optimizations and warnings for SetJump/LongJump X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Dec 2017 19:11:54 -0000 I've already discussed this in past but never actually sent proper patches for some reason. This patch series is about fixing problems with these functions when using GCC. V2: * add attributes to C-files too * remove useless condition in RETURNS_TWICE macro M1cha (3): MdePkg: add RETURNS_TWICE attribute MdePkg/BaseLib: add attribute 'RETURNS_TWICE' to SetJump MdePkg: add NORETURN attribute to LongJump and InternalLongJump MdePkg/Include/Base.h | 8 ++++++++ MdePkg/Include/Library/BaseLib.h | 2 ++ MdePkg/Library/BaseLib/BaseLibInternals.h | 1 + MdePkg/Library/BaseLib/Ebc/SetJumpLongJump.c | 2 ++ MdePkg/Library/BaseLib/Ia32/LongJump.c | 1 + MdePkg/Library/BaseLib/Ia32/SetJump.c | 1 + MdePkg/Library/BaseLib/LongJump.c | 1 + 7 files changed, 16 insertions(+) -- 2.15.1