]> xenbits.xensource.com Git - xen.git/commitdiff
build: restrict gcc11 workaround to versions earlier than 11.3.0
authorJan Beulich <jbeulich@suse.com>
Tue, 12 Sep 2023 09:02:16 +0000 (11:02 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 12 Sep 2023 09:02:16 +0000 (11:02 +0200)
The fix for this issue was backported to 11.3, so let's not unduly
engage the workaround.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Julien Grall <jgrall@amazon.com>
xen/include/xen/compiler.h

index 7d7ae2e5e4d9c96316d618e55931037f36274b1d..dd99e573083f16d83eb6d83b34afeb00c0a92683 100644 (file)
     __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)