From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by sourceware.org (Postfix) with ESMTPS id 4E79A383A343 for ; Mon, 25 Jul 2022 16:59:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 4E79A383A343 Received: by mail-pl1-x630.google.com with SMTP id g17so10980160plh.2 for ; Mon, 25 Jul 2022 09:59:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fLKsvfsRlkwHd33hLF0SJpPIXcgnHTYESPWUXXW6H8I=; b=rpN68VBMPQqC0GcHe9bqI9C7BWHrZTac48qwil3vHeScPBERrMDJfmQ4jCp2Uig1Ms zeSm98WbSTYkrDvannUHflsoMme+qBpmC0OhpVOvLJZ+trAghqf3ACCxbb+zIx8RLEGG 7LNAxaRLPomony/AZbwjGYRaF/s9f+QC04OrjGJigHgEPP1mVEuYHty8r9Wl06ZVsNit wq/7S+FYaIoLOmbDdTvsF01bgqd6JGwX5ZBQ7KOzShrmkeCdSyjZ8SvlM9Ihq7VGCBzX X2RtnKPoBpwMyPXhOtoFw5ZGv9846kh385Wbz+ustgvZWTlKxqPSF8h8XGqy249Ht1K7 YrjQ== X-Gm-Message-State: AJIora8XqixGQ2chdz2uPUyVOHrwi74p5vYJyM/KlgwXcABrTMVKmgRy S/BokT5vLVT1tNf6C0ot3p74DELBDujOf/o2Gupa52lq X-Google-Smtp-Source: AGRyM1tmmyaW64sgj1NdtKZelAJM1xOFYcro7KSczxIDQKPWn6Lc+kdOHq/uHSTUhSEuDmlv/erxOfvPHOEuVECoi+8= X-Received: by 2002:a17:902:a502:b0:15e:c251:b769 with SMTP id s2-20020a170902a50200b0015ec251b769mr13315581plq.115.1658768386260; Mon, 25 Jul 2022 09:59:46 -0700 (PDT) MIME-Version: 1.0 References: <20220722183854.1557724-1-hjl.tools@gmail.com> <87a68xkw0z.fsf@esperi.org.uk> In-Reply-To: <87a68xkw0z.fsf@esperi.org.uk> From: "H.J. Lu" Date: Mon, 25 Jul 2022 09:59:10 -0700 Message-ID: Subject: Re: [PATCH] ld: Compile 2 CTF tests with -O2 To: Nick Alcock Cc: Binutils Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-3018.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Jul 2022 16:59:49 -0000 On Mon, Jul 25, 2022 at 9:16 AM Nick Alcock wrote: > > On 22 Jul 2022, H. J. Lu via Binutils stated: > > > When GCC 12 is used to build binutils with -O0, the following 2 tests > > failed: > > > > FAIL: Conflicted data syms, partially indexed, stripped, with variables > > FAIL: Conflicted data syms, partially indexed, stripped > > > > Compile 2 tests with -O2 to avoid test failures. > > Ack, that works fine. I honestly didn't think that anyone would have > tried a -O0 compilation. I'm a bit surprised it depends on optimization I use it for debugging. > levels, though -- maybe the result has *too many* types and the > comparisons fail as a result? > > Still, -O2 is a valid fix and doesn't stop the test checking what it's > supposed to, so go for it. I am checking it in. Thanks. -- H.J.