From patchwork Fri Jun 23 11:32:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Modra X-Patchwork-Id: 112090 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp5701081vqr; Fri, 23 Jun 2023 04:32:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5a3/kQJsyURBuTCd1JjlJzF41MAdCNEOohl/lImKH3CT7VYId1Xl5W+Dyn6RKhA/SzmgUK X-Received: by 2002:a17:907:9483:b0:989:4952:bfa5 with SMTP id dm3-20020a170907948300b009894952bfa5mr8249206ejc.30.1687519962216; Fri, 23 Jun 2023 04:32:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687519962; cv=none; d=google.com; s=arc-20160816; b=RuAEgnRyz1C+a4w9i0pDd6ExA8av+bFhi/Sw6SZJJ5USzlq2BHsWxJ/o+/id8elynq HYIRDuPKpOg9QnvYqp4VbpX4thRvvYmpBbsa/4u2YCTufMa7jnic+LLNGa27x1U/0ylZ afjhouhpMUZVFuvJod7q+A67iZwYtVrCqtkca/BNCwUthOxF1IFsSimRXyRIqvfiFt+Y CxPCfsWOEOiCQNYOiiyVkN9iFp1ZDq5stmlvM7nJKrDijObG4xYBxoMdCZ6G7d8R3efb pIZaV4+4llm0mfWtc7aWKpjJIlgnad5zj+uylSknTWjCXKu7Yh9Vw42ylcjjd9iJypyM c4Wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-disposition:mime-version:message-id:subject:to:date :dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=7Kv5WHO/koMhQyvqN7yNYpl6+JQG8BvzKiGRBkYuAyg=; b=YMnpzzL/o5K4HwnkWEn69Xl3Qyz5uQiYg5i2OT6fxGOU14EqoG7L2XLhjLvVMNOtQi zvbMq2stIuGTYvAopCFk4EoloFmJ3Hoo483O71H7YqfHX91L1Ludkc1+NdulQ4weQVxx lLed5oZCNzCySCa2zjp6V0cxwtOCX416uDDQMB/5rAJeVk89r8uGHPeYezjpYlrB8BYe SdPNINwRzbzLG4qz/CIC3F+tp8HDBVGJy6JsKNBz5Ioj9PZlt+jJQ6yBkR3OkQaqNRMh PsRapMraK7UsYQ2ht3MAznRn1IyZRxP+bLygU8YG5UuspZHc1cDcGZtrGm+E/bZD8qmz z39Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=hEksKMPy; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id i8-20020a1709064ec800b009886a8ef881si4294694ejv.207.2023.06.23.04.32.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Jun 2023 04:32:42 -0700 (PDT) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=hEksKMPy; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1B73F3858D37 for ; Fri, 23 Jun 2023 11:32:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1B73F3858D37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1687519961; bh=7Kv5WHO/koMhQyvqN7yNYpl6+JQG8BvzKiGRBkYuAyg=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=hEksKMPyuEUW784Bv2IuVykY60Oca72uh8NVBihQAKbTXLAG9N7aSZu/Hsh9fcTIN 2l2mHULR4IWC7LZca4swedYzirYHKIRhUk08y1L925CuKsdldsqI19Jy88W+t60Iz0 RSVGSOSz+NF1hGkoaGVwKI2B6acgazjd99EdY+hY= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) by sourceware.org (Postfix) with ESMTPS id 624113858D20 for ; Fri, 23 Jun 2023 11:32:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 624113858D20 Received: by mail-pg1-x535.google.com with SMTP id 41be03b00d2f7-5440e98616cso1205849a12.0 for ; Fri, 23 Jun 2023 04:32:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687519952; x=1690111952; h=content-disposition:mime-version:message-id:subject:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=7Kv5WHO/koMhQyvqN7yNYpl6+JQG8BvzKiGRBkYuAyg=; b=bgtxDQvjzkgYz7Dpm82wwUorsIFfUgqxB2a2Xt3ROQ4Io1JyOnNNZeYbsXIv9CdAsl zrEoc01qRnWbCHrK0fnEY6NhwjtNnpmQCIJBDfdfJVIjQuVMXPnhaUAswZmqx1DBqm2v R1MvwOgHgyLawRlJP9//CwJkwPb1PNONF9YwzQH2t3IH0GLn0faBWispxgEgHosoVXHH R8/sWMzvmqxyTvNAtq6pGx1IQipjTXqxD5DIHQUzWrYoolvvDQ7+QaqElL7jICDVl8JX agGtos69xFFQ/eQ9Swjocm0kJ6igLkQURA1xCzF3P850EXCdEiS+2L7Vwha3FHIrEKmi l8Hw== X-Gm-Message-State: AC+VfDxHlvAO63KomvYbgqLeIeDgT3mLBCRmUHkSDqYRkPXj6oGHyO+X UMoiHGrMx3f9RhFUnWTl0eZ5COYSlTc= X-Received: by 2002:a17:902:e5cc:b0:1b6:b445:36d0 with SMTP id u12-20020a170902e5cc00b001b6b44536d0mr6228302plf.26.1687519951478; Fri, 23 Jun 2023 04:32:31 -0700 (PDT) Received: from squeak.grove.modra.org ([2406:3400:51d:8cc0:4d08:cebd:d73f:b794]) by smtp.gmail.com with ESMTPSA id jn9-20020a170903050900b001b679ec20f2sm6993151plb.31.2023.06.23.04.32.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Jun 2023 04:32:30 -0700 (PDT) Received: by squeak.grove.modra.org (Postfix, from userid 1000) id 64DD71142B97; Fri, 23 Jun 2023 21:02:28 +0930 (ACST) Date: Fri, 23 Jun 2023 21:02:28 +0930 To: binutils@sourceware.org Subject: lto test fails with -fno-inline in CFLAGS Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-3033.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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-Patchwork-Original-From: Alan Modra via Binutils From: Alan Modra Reply-To: Alan Modra Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769492931877642831?= X-GMAIL-MSGID: =?utf-8?q?1769492931877642831?= Putting -fno-inline in CFLAGS results in these failures. FAIL: Build liblto-17b.so 1 FAIL: PR ld/12365 FAIL: PR ld/13183 * ld-plugin/lto.exp: Add -finline to compiler flags in some tests. diff --git a/ld/testsuite/ld-plugin/lto.exp b/ld/testsuite/ld-plugin/lto.exp index e7e7952bb1b..9a11de315b8 100644 --- a/ld/testsuite/ld-plugin/lto.exp +++ b/ld/testsuite/ld-plugin/lto.exp @@ -79,7 +79,7 @@ set lto_link_tests [list \ "" "-flto $lto_fat" \ {lto-5b.c} {} ""] \ [list "Compile PR ld/12365" \ - "" "-flto -O2 $lto_fat" \ + "" "-flto -O2 $lto_fat -finline" \ {pr12365a.c pr12365b.c pr12365c.c} {} ""] \ [list "Compile 9" \ "" "-O2 -finline -flto" \ @@ -131,10 +131,10 @@ set lto_link_tests [list \ "$NOSANITIZE_CFLAGS" \ {dummy.c} {} "pr12758.exe"] \ [list "Build libpr13183.a" \ - "-T" "-flto -O2 $lto_fat" \ + "-T" "-flto -O2 $lto_fat -finline" \ {pr13183a.c} {} "libpr13183.a"] \ [list "Compile PR ld/13183" \ - "" "-flto -O2" \ + "" "-flto -O2 -finline" \ {pr13183b.c} {} ""] \ [list "Compile PR ld/13201" \ "" "-flto -O2" \ @@ -288,10 +288,10 @@ set lto_link_elf_tests [list \ "-shared" "-O2 -fpic" \ {lto-7d.c} {} "liblto-7.so" "c"] \ [list "Build liblto-17a.so" \ - "-shared -O2 -fpic -flto -fuse-linker-plugin" "-O2 -fpic -flto" \ + "-shared -O2 -fpic -flto -fuse-linker-plugin" "-O2 -fpic -flto -finline" \ {lto-17a.c} {{"nm" {} "lto-17a.d"}} "liblto-17a.so" "c"] \ [list "Build liblto-17b.so 1" \ - "-shared -O2 -fpic -flto -fuse-linker-plugin tmpdir/lto-17a.o" "-O2 -fpic -flto" \ + "-shared -O2 -fpic -flto -fuse-linker-plugin tmpdir/lto-17a.o" "-O2 -fpic -flto -finline" \ {lto-17b.c} {{"nm" {} "lto-17b-1.d"}} "liblto-17b.so"] \ [list "Build liblto-17b.so 2" \ "-shared -O2 -fpic -flto -fuse-linker-plugin tmpdir/lto-17a.o" "-O2 -fpic -flto" \