[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] build: restrict gcc11 workaround to versions earlier than 11.3.0
- To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Jan Beulich <jbeulich@xxxxxxxx>
- Date: Tue, 22 Aug 2023 16:40:29 +0200
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=cOnmBsZVUhOyXn7ANGfKQMiD6by24qbj7+r6DfGxaXg=; b=jCGoSpZWop5nbIWybSxBBG7bn4mX3k9g7skl4+LhVuwcIks/tS30LMb+mwL3fE/1g+2QlcrX5yRh1P+U6k+Zs4cqvjKP+BNBdwscGNaNMqsocUhmNVQm8Ql8T1ghVqC6AuA5wXYkeYyPEzDrtKiM6O1NjO/v1wZLFsBR97TpSWJ1MhHhSpKxB1jwzyakkCiwdPsFYHHk9RPbl8QaY2KO3UXC+EbTKwmPEGKhwE8wEmnRB/CNfqNw8I7VR9zO9oQucYSbTB6iN2DrSY/iZxZc5qeFUBNecCm/IGF7LH9UJMzeVC2GzjfWMKkKOOdHDKXONG+JsZGw4t1mcmdhzH5QCg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MMvSrXM+S9YMyW2OZvdWQkD77fHAY3iNm9YLULDCnW53253mT8Z7EEriOcVMjkVxzarNVH6KB3dpV18W8h9ZsqN2N+O1fFOuWVjy/7gDr2XU5A6RLnmZbX95Dj/k64qjXPoIInb9aI1MW3GCvFa6BwGzwizN5AJddc/4/laFTLF4UPtzHtDWq+5L+DAFhcSdxexQz9PvVZzms/XvVUPrvFgG4vXp9keQLzjg2xHNaDtNUVDzB/YwdyW1diTuqDdbeZ5Dtm+4GtSYygKBQFF4jA0ryjiPnw4ekqrtbAQNU5EggeLWoCucMFw1Y07+7YJOfTQvv95gVoavS2ZuVnrfdQ==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
- Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>
- Delivery-date: Tue, 22 Aug 2023 14:40:40 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
The fix for this issue was backported to 11.3, so let's not unduly
engage the workaround.
Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
--- a/xen/include/xen/compiler.h
+++ b/xen/include/xen/compiler.h
@@ -146,7 +146,8 @@
__asm__ ("" : "=r"(__ptr) : "0"(ptr)); \
(typeof(ptr)) (__ptr + (off)); })
-#if CONFIG_GCC_VERSION >= 110000 /* See gcc bug 100680. */
+/* See gcc bug 100680. */
+#if CONFIG_GCC_VERSION >= 110000 && CONFIG_GCC_VERSION < 110300
# define gcc11_wrap(x) RELOC_HIDE(x, 0)
#else
# define gcc11_wrap(x) (x)
|