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:c0c::244; helo=mail-wr0-x244.google.com; envelope-from=sigmaepsilon92@gmail.com; receiver=edk2-devel@lists.01.org Received: from mail-wr0-x244.google.com (mail-wr0-x244.google.com [IPv6:2a00:1450:400c:c0c::244]) (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 D94EC222CB30D for ; Thu, 21 Dec 2017 23:18:51 -0800 (PST) Received: by mail-wr0-x244.google.com with SMTP id h1so27081282wre.12 for ; Thu, 21 Dec 2017 23:23:41 -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=UnONnK7543OGgoEiWp3cjQJUEmfWcwukZAL0DUcSFcI=; b=YyN1NlUNHbyDTDnaGcjGTldnFUne4aM9AcgvO2XoGDvq+2IsHm3s3fQx+1xMXHhN3R Q6mO0Koh2Bn/Zlh4qjg+JgOOLpBsdEV0sow88ByrOUPTX534jUnj1/lz5RgtqnlbpJ5r d57ha8A+fGPrOvf57frJAgn3T/HSEJZQJ+K8flYItLJaRRsSWB4DPEzwTBuhU4aim4LC VWBPNdbeyByEfu93F79bxeR8LvdcBYd/oNX/ekcrTRldOUfYtVHd/LnBThhjFJMmC7Ac ZKug5schdLx51F+6PnrxKSbHikM6zR3B0n4p2hQ5rT64oQn9kv4Fl67AzBLJqvB/DV2i aPSA== 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=UnONnK7543OGgoEiWp3cjQJUEmfWcwukZAL0DUcSFcI=; b=IpEoB/sHxEyF4f1ctUs0sOwwP/eigXTmwYqiXrqBYVx+bCO6CfOJ30c0cjWXEGqpyJ 5fKXqVJP+5msIKiN5JXX5JQSxXvC8/QFJOzPrilfSU3iZcVPrMLnfsSeKZ0jG2h6OTYY /VabOjR8kWrP1IYgZwmH0QwcQj0Bi53PUSagmCPr7RyZ7HP1no8Fp8n6PeYOMo1BQ248 rz/ZVO1Ra9NsBKF8FB7l9BEhZBo8e8ie1/si6hQVhp2ggNPctnzZxLOlfffCMTboE6GE +uztofZlU0khvqomZd9rPmvscF1AC0ntoX36swOJbfuLEPNQ/wlBx38370eF9mgBiv0O VTuw== X-Gm-Message-State: AKGB3mLRv0v5gev9n6E1185E2hFoxcC52Ihq9mzs8zqVGBDC5iTaBqCl Ws4JstmRv5IVJ/Y0IcJsBf0rr00I X-Google-Smtp-Source: ACJfBosZ0t32srA+hqw9DG3NWfj181MBbOePPZcsT7oKTmktKwZfnFiQ8Pb3FNjzAo393KaOcRiINw== X-Received: by 10.223.130.106 with SMTP id 97mr13798065wrb.59.1513927419407; Thu, 21 Dec 2017 23:23:39 -0800 (PST) Received: from localhost.localdomain ([2a02:908:5a9:8400:5ec8:3210:9b68:c91c]) by smtp.gmail.com with ESMTPSA id m68sm16070965wmi.28.2017.12.21.23.23.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Dec 2017 23:23:38 -0800 (PST) From: M1cha To: edk2-devel@lists.01.org Cc: Ard Biesheuvel , Michael D Kinney , Liming Gao Date: Fri, 22 Dec 2017 08:23:33 +0100 Message-Id: <20171222072336.23504-1-sigmaepsilon92@gmail.com> X-Mailer: git-send-email 2.15.1 Subject: [PATCH 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 07:18:52 -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. 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 | 10 ++++++++++ MdePkg/Include/Library/BaseLib.h | 2 ++ MdePkg/Library/BaseLib/BaseLibInternals.h | 1 + 3 files changed, 13 insertions(+) -- 2.15.1