From nobody Sat Oct 25 09:08:52 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (208.118.235.17 [208.118.235.17]) by mx.zohomail.com with SMTPS id 1520343168750748.583583071808; Tue, 6 Mar 2018 05:32:48 -0800 (PST) Received: from localhost ([::1]:55763 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1etChu-0000oq-W6 for importer@patchew.org; Tue, 06 Mar 2018 08:32:43 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48052) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1etCVR-0004qI-D1 for qemu-devel@nongnu.org; Tue, 06 Mar 2018 08:19:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1etCVQ-0006Hu-DB for qemu-devel@nongnu.org; Tue, 06 Mar 2018 08:19:49 -0500 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]:55683) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1etCVQ-0006HF-5y for qemu-devel@nongnu.org; Tue, 06 Mar 2018 08:19:48 -0500 Received: by mail-wm0-x241.google.com with SMTP id q83so22817436wme.5 for ; Tue, 06 Mar 2018 05:19:48 -0800 (PST) Received: from 640k.lan (94-36-191-219.adsl-ull.clienti.tiscali.it. [94.36.191.219]) by smtp.gmail.com with ESMTPSA id l38sm25652538wrc.96.2018.03.06.05.19.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Mar 2018 05:19:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=K7gAKeKF3wkSBFX3nXuIOPWmTz1FGWtJrmq9Ed1PGEI=; b=sA6kFxCNkr1orEnXwEwQ/bZvDNlB/7OGRE0EVb3DlH7l8/7etVlYs3tjGuudKFg96e Oz5Q1ru1eYty6+YGpahTsSJht2wk9xRYNabM12YD7aASaFKMdJKYJCmpVj3I8vI2z/5K Ldqx9u3qso05sgSPHEhnOypzcBFURpOC40syGFtKPflHIy5Q1tfuxmqfRCc0JeKLmgyi 2GLOcWuQ+5Mq5131a2rtC5LJbeQGJjF4+JtSoOgotvstD7t37ubkUOatQpdRYbmsWTIR XVIWpfkxSSaKdZdJj076TbZhNtXCigOld6OApzU/7UHixdJIHa9pWh+9rUIUMxC4p+rO xGfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=K7gAKeKF3wkSBFX3nXuIOPWmTz1FGWtJrmq9Ed1PGEI=; b=BQZ/o/aBC+yqOcIPHGOyHMGWQjsQMOn9QTFY6Oj8HhTmslg9elaLkAHbcQmiy05pKX rjqhii9hSERCP8aVvct/h8pHPdwEgXjlOj2ImBOkzvsRnKaGLeS7TFB+mWeYxtoO5370 nJCXAB11qf9I7GvlkWvPuOKhMGnb+bnfjQRUQkbln4dI+EXZiQp28HuMpEH1o0n+X4IS /KDdU1ps3lYxmcLN31MBnS5ZbMXUiRRdO06bJ6WUMsk5WWzwZAZ0YyxorfwzOGme61Wz LCvDbMfrEVmi/Nt1QklZeP3/ENIg6dFZM4/suewvzS3E3nsDsGLevD0WpddZ5eXuLu0X vbRw== X-Gm-Message-State: AElRT7E46Pdy8QrK5Rc/VqE5wRMGly06xlhz9jfqpdoj4+9Bgwbfa3Rk J6Dnmo0uEsy12lN97bVEImKKgGp1 X-Google-Smtp-Source: AG47ELulUJ5Rcbaxa1ZxYYtRH93KNNvaCJYkVSkFg416np5WnMpvohOS5P9XmLzPYcHDlgwDBu145A== X-Received: by 10.28.18.2 with SMTP id 2mr10649055wms.108.1520342386904; Tue, 06 Mar 2018 05:19:46 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Tue, 6 Mar 2018 14:19:07 +0100 Message-Id: <1520342370-123606-12-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1520342370-123606-1-git-send-email-pbonzini@redhat.com> References: <1520342370-123606-1-git-send-email-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::241 Subject: [Qemu-devel] [PULL 11/34] lockable: workaround GCC link issue with ASAN X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 From: Marc-Andr=C3=A9 Lureau Current GCC has an optimization bug when compiling with ASAN. See also GCC bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D84307 Signed-off-by: Marc-Andr=C3=A9 Lureau Message-Id: <20180215212552.26997-3-marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini --- include/qemu/lockable.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/qemu/lockable.h b/include/qemu/lockable.h index b6ed6c8..84ea794 100644 --- a/include/qemu/lockable.h +++ b/include/qemu/lockable.h @@ -28,7 +28,7 @@ struct QemuLockable { * to QEMU_MAKE_LOCKABLE. For optimized builds, we can rely on dead-code = elimination * from the compiler, and give the errors already at link time. */ -#ifdef __OPTIMIZE__ +#if defined(__OPTIMIZE__) && !defined(__SANITIZE_ADDRESS__) void unknown_lock_type(void *); #else static inline void unknown_lock_type(void *unused) --=20 1.8.3.1