From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e]) by sourceware.org (Postfix) with ESMTPS id 97FF23858405 for ; Fri, 22 Jul 2022 18:38:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 97FF23858405 Received: by mail-pf1-x42e.google.com with SMTP id c139so5170762pfc.2 for ; Fri, 22 Jul 2022 11:38:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=a1VDvueodfmLDlkT43RBRti1p12sTMXhp2bWnW5JBu4=; b=K772MRfGoiuejD1/WzekNFDxHlhzvO1CqwcPXW1aeixlhnUKMMJcLMmGSnJG3iJ/9n Jo7+7XcFxm2HtWak02nhrneeUE8UFQln5igtLHrgqYbRI+vX+1dKzMTKabeCRlxHrme2 UV7Vdj9kj5koNABtn6nen7k+81TDNORqkitbe0M/U1DGpMs2iBDokqRcLtRigfHs9g07 s5MZiQrwPZ3Eo7FOBX6OmH7+Jd+ud5JkLcyCAZEW02lmcUOR/sJsYq5JuN8ELlhwgBuH MhR2xWOH8VQ+UTUp43VOt581X6YDcNG4PCd6Q33UTfw6iwv18ovoWW1K4jBxPj3S3mfi Pq8g== X-Gm-Message-State: AJIora93PTtccQAimydRj07AJpyqgu6TeyyslgnfJvRF40RWtWzR0vEk GHHJIXOtIDg5TezUBYf5bwaQe2Sxetc= X-Google-Smtp-Source: AGRyM1uQErVE8Lco4koN60Nxs9jnUEP7R5mZLVo4Ivm7xdp8NpJd5oAZ0xJLoLC1/N9r2rDf0EAbXA== X-Received: by 2002:a63:560d:0:b0:419:759a:6653 with SMTP id k13-20020a63560d000000b00419759a6653mr927402pgb.219.1658515137165; Fri, 22 Jul 2022 11:38:57 -0700 (PDT) Received: from gnu-tgl-3.localdomain ([172.58.37.102]) by smtp.gmail.com with ESMTPSA id i128-20020a636d86000000b0041a4df3d3e2sm3749192pgc.68.2022.07.22.11.38.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Jul 2022 11:38:56 -0700 (PDT) Received: from gnu-tgl-3.. (localhost [IPv6:::1]) by gnu-tgl-3.localdomain (Postfix) with ESMTP id DE8EAC024D for ; Fri, 22 Jul 2022 11:38:54 -0700 (PDT) From: "H.J. Lu" To: binutils@sourceware.org Subject: [PATCH] ld: Compile 2 CTF tests with -O2 Date: Fri, 22 Jul 2022 11:38:54 -0700 Message-Id: <20220722183854.1557724-1-hjl.tools@gmail.com> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3026.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham 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: Fri, 22 Jul 2022 18:39:00 -0000 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. PR ld/29378 * testsuite/ld-ctf/data-func-conflicted-vars.d: Compile with -O2. * testsuite/ld-ctf/data-func-conflicted.d: Likewise. --- ld/testsuite/ld-ctf/data-func-conflicted-vars.d | 1 + ld/testsuite/ld-ctf/data-func-conflicted.d | 1 + 2 files changed, 2 insertions(+) diff --git a/ld/testsuite/ld-ctf/data-func-conflicted-vars.d b/ld/testsuite/ld-ctf/data-func-conflicted-vars.d index b278dfe5d84..4e570c6a61a 100644 --- a/ld/testsuite/ld-ctf/data-func-conflicted-vars.d +++ b/ld/testsuite/ld-ctf/data-func-conflicted-vars.d @@ -1,4 +1,5 @@ #as: +#cc: -O2 #source: data-func-1.c #source: data-func-2.c #objdump: --ctf diff --git a/ld/testsuite/ld-ctf/data-func-conflicted.d b/ld/testsuite/ld-ctf/data-func-conflicted.d index 7a1b2d72234..b0db511a987 100644 --- a/ld/testsuite/ld-ctf/data-func-conflicted.d +++ b/ld/testsuite/ld-ctf/data-func-conflicted.d @@ -1,4 +1,5 @@ #as: +#cc: -O2 #source: data-func-1.c #source: data-func-2.c #objdump: --ctf -- 2.37.1