Message ID | 1515756676-3860-13-git-send-email-pbonzini@redhat.com |
---|---|
State | New |
Headers | show
Return-Path: <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="XMOALxeU"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zJ1392T1wz9s75 for <incoming@patchwork.ozlabs.org>; Fri, 12 Jan 2018 22:38:29 +1100 (AEDT) Received: from localhost ([::1]:35223 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>) id 1eZxfH-0004Iu-EO for incoming@patchwork.ozlabs.org; Fri, 12 Jan 2018 06:38:27 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41577) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <paolo.bonzini@gmail.com>) id 1eZxYf-0007Jp-L7 for qemu-devel@nongnu.org; Fri, 12 Jan 2018 06:31:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <paolo.bonzini@gmail.com>) id 1eZxYc-0004hT-St for qemu-devel@nongnu.org; Fri, 12 Jan 2018 06:31:37 -0500 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]:33739) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <paolo.bonzini@gmail.com>) id 1eZxYc-0004fO-NQ for qemu-devel@nongnu.org; Fri, 12 Jan 2018 06:31:34 -0500 Received: by mail-wm0-x241.google.com with SMTP id x4so1969194wmc.0 for <qemu-devel@nongnu.org>; Fri, 12 Jan 2018 03:31:34 -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=6FxTiEZHAGfdxH4Ed9r2oPeSBGLUg5UIf0+kvgPpgG0=; b=XMOALxeUHQ8dEpP6ZqBjreFgDb1vu8K1WDLw9cAHpLvn4+h5G50t8MZZ6AIcjjauCp ++AYCNMIVf40yVH+yZP0mt32V/O9AHJUr05kNIwgMw6WyQJkSnYR44Q9H3tHMm09Qk09 ZHpfcCw1rfi96nvOvQY36evIhBhr099QSw5zFg5dyveXByzs0Di7HiuCe0J15g+peHFg EnhKKzuoXkcFhQtp0wUxTHGc/pKMM5qrHFQz0U4zxe4on31BxaEm/28k7a2fH7Vr9iII ck6rMC+gkOMVbQILflFmnGa7Lh1T6StiE4T7SuQo8C7ODoDOSAdp4IdhZ06ozaCyg/zj sGoQ== 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=6FxTiEZHAGfdxH4Ed9r2oPeSBGLUg5UIf0+kvgPpgG0=; b=PWYKmxEaNrHpsUtiuf5MhlNj7hgSiq9Hd/N/Vke5UnT+eqptNqmAxLBo6wILyLQ76c b6aYBNpMEL930NJVetTUF1VNDzzTC5G4FZWKn7ANYJlTsrEXlBRtQjuhL6Vg0zltkOw2 v0Ek0OM8hzs3ctAWkBlh5ZjAo88ZnmmRabA5VRzTWXmMfgirf5Qxwwot1OM47i0QNW7r JV71bzQk6Ufe1lwJy+MuoPzRvAqeZPcNTVNNvzHfkFa9LGpV0NAvBdrG8Hx9Tj+stQmY r6L9zfBJK4ZXr5xslG+HlwJQBe4rqBB3rDkJe1CoFEw0K/r/97PyBfPryGb8zw/bI/Nc u0Ww== X-Gm-Message-State: AKwxytdSghOZ1iM040ZuJoyvz/TOf8m4LdsrAc6gVlXXRdPIUIHidpVQ APgC+UznbpgRFT8R5M03Z7VMRyoi X-Google-Smtp-Source: ACJfBosfdZfVF38o2055wPNErFTbRcPemKwrQkzo9teRgFaIONVGA132AV/WCQHcGpPf17UUIGMttQ== X-Received: by 10.28.105.193 with SMTP id z62mr3542081wmh.77.1515756693416; Fri, 12 Jan 2018 03:31:33 -0800 (PST) Received: from 640k.lan (dynamic-adsl-78-12-229-84.clienti.tiscali.it. [78.12.229.84]) by smtp.gmail.com with ESMTPSA id l8sm2732271wmg.46.2018.01.12.03.31.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Jan 2018 03:31:32 -0800 (PST) From: Paolo Bonzini <pbonzini@redhat.com> To: qemu-devel@nongnu.org Date: Fri, 12 Jan 2018 12:30:36 +0100 Message-Id: <1515756676-3860-13-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1515756676-3860-1-git-send-email-pbonzini@redhat.com> References: <1515756676-3860-1-git-send-email-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 12/52] build-sys: compile with -Og or -O1 when --enable-debug X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: =?utf-8?q?Marc-Andr=C3=A9_Lureau?= <marcandre.lureau@redhat.com> Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> |
Series |
[PULL,01/52] scsi-generic: Add share-rw option
|
expand
|
diff --git a/configure b/configure index ac392d2..6f1b7cd 100755 --- a/configure +++ b/configure @@ -5194,8 +5194,19 @@ if test "$gcov" = "yes" ; then LDFLAGS="-fprofile-arcs -ftest-coverage $LDFLAGS" elif test "$fortify_source" = "yes" ; then CFLAGS="-O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 $CFLAGS" -elif test "$debug" = "no"; then - CFLAGS="-O2 $CFLAGS" +elif test "$debug" = "yes"; then + if compile_prog "-Og" ""; then + CFLAGS="-Og $CFLAGS" + elif compile_prog "-O1" ""; then + CFLAGS="-O1 $CFLAGS" + fi + # Workaround GCC false-positive Wuninitialized bugs with Og or O1: + # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24639 + if cc_has_warning_flag "-Wno-maybe-uninitialized"; then + CFLAGS="-Wno-maybe-uninitialized $CFLAGS" + fi +else + CFLAGS="-O2 $CFLAGS" fi ##########################################