From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3415E3858D37; Fri, 1 Sep 2023 14:54:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3415E3858D37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1693580069; bh=hQ5k5r0AY5n9QGQLXPmn2sinHURTRKE2Y5Jo6FTpIrc=; h=From:To:Subject:Date:From; b=cd9N1MXAMv1X3x+9VEOoZpH8+9clbrg0GFny1L9+PkQZKVaVVRcheadbzlMitdRSc k2JsqL5Skgfqjfpx46pk5iy39JzVb7rngweR/KaHN3sqGajcqB3xChXeqQJilvcR8U JW93TdGcy+RdscIpj2r8qHnUoZ7wF3qd7ReFOFQ4= From: "dcb314 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyB0YXJnZXQvMTExMjcwXSBOZXc6IGdjYy9jb25maWcvaTM4?= =?UTF-8?B?Ni9pMzg2LW9wdGlvbnMuY2M6MzAzOTo4OiB3YXJuaW5nOiBkdXBsaWNhdGVk?= =?UTF-8?B?IOKAmGlmIOKAmSBjb25kaXRpb24gWy1XZHVwbGljYXRlZC1jb25kXQ==?= Date: Fri, 01 Sep 2023 14:54:28 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dcb314 at hotmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D111270 Bug ID: 111270 Summary: gcc/config/i386/i386-options.cc:3039:8: warning: duplicated =E2=80=98if =E2=80=99 condition [-Wduplicate= d-cond] Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- Source code is if (ix86_tune_features [X86_TUNE_AVOID_256FMA_CHAINS]) SET_OPTION_IF_UNSET (opts, opts_set, param_avoid_fma_max_bits, 512); else if (ix86_tune_features [X86_TUNE_AVOID_256FMA_CHAINS]) SET_OPTION_IF_UNSET (opts, opts_set, param_avoid_fma_max_bits, 256); else if (ix86_tune_features [X86_TUNE_AVOID_128FMA_CHAINS]) SET_OPTION_IF_UNSET (opts, opts_set, param_avoid_fma_max_bits, 128); Suggest code rework.=20 I got this by adding -Wduplicated-cond to a build. If someone were brave enough to add this warning flag to -Wall, then other developers could benefit from a well hidden but useful flag.=