From patchwork Tue Apr 16 03:08:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Oliva X-Patchwork-Id: 1923950 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256 header.s=google header.b=GIMSWOZm; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VJTXL3gG4z1yYB for ; Tue, 16 Apr 2024 13:09:06 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 710BC385840E for ; Tue, 16 Apr 2024 03:09:02 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by sourceware.org (Postfix) with ESMTPS id 6F71B3858C41 for ; Tue, 16 Apr 2024 03:08:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6F71B3858C41 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 6F71B3858C41 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::1030 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713236923; cv=none; b=MednfIdsCiLqg96uarfD6+2OeWYWEqw0yzA4vfbQ6hIlUcvBaOuZi5fNmVnj0YJdR2Otnv24cJdBnEMf26Fwih2fF5FpIxP8GnRwDMjfW8l56OtJZs/wXDYOcG43zbatWf/IDALI9Az7Hlq/tbaY87CwwA9q8RLLf6RH+sY7UJw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713236923; c=relaxed/simple; bh=NSeaWlYU4mcpQzxgq+Rm2Zc6sX7nf+Ph5hkR28MevnM=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=s0cJsz8WjRvyk57NHdaVMLVjEjarscjOM6HTLbhwLxUEIBFZB9Q0YMaQCCnoxYNOdoAASzBf/2H4ha2x9MtvUnqvEQIyFk3ztY1v4H9sQsa53w688A6qwBsKu1IaPGnhOJxmRVOA9ZR2dSodOo3ekltzsb7qCTslrKN8n719IQI= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pj1-x1030.google.com with SMTP id 98e67ed59e1d1-2a2d0ca3c92so2531121a91.0 for ; Mon, 15 Apr 2024 20:08:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1713236920; x=1713841720; darn=gcc.gnu.org; h=mime-version:user-agent:message-id:date:organization:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=SssFwmnCM/aaY3mf74tMcW1DIVUhu1OhBTQXnXjZS1Q=; b=GIMSWOZmzJpNX9F7T3zmgqNSL8GqxdjAbkyut0RIwbzFIhrFrVhz37rLhyk9B8nP3U p3Bj1stbV8LaYqgixene/kKD8mXNbRZFZ5QjCjrIprdyv+Vx7acIjZr5K7ZicZMdmGZi WfTIC/Z2InOAr0syoPRHpyeokCDy7NSap7Hj5bhqUPVd6TU0TKwEOQEQU/hFiCWI30v5 Yn4uuHfit46YDsqEFw0u6+RFNRoPIsKAyGQvZxijZGV6DudyW6RyKwrGk4XBB+tJ+ITP tt+tSfK9NS10iva0hN8rglEmj8J3YMwIlJSj/Bwg7TU12lIdLosPN4XBPVh/1or4Zl8Y mfgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713236920; x=1713841720; h=mime-version:user-agent:message-id:date:organization:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=SssFwmnCM/aaY3mf74tMcW1DIVUhu1OhBTQXnXjZS1Q=; b=gQ7pY/RE+ucmmtfmqB+0k24owW9B0l4qbDYWaThAf6BXiD5MdrQfEvcaUAvPur9ush iQmg0ur5vPfl79+Sw2VMcLWqdx4Fd0x8867ELu/0hO2TwkeAAj8cNkw/YLeqLqVkoRPB B4DwwiSFx3VX6DlaBo7Y5EOVvotLJIIdSyudHxJ/E009kjB8tIOd7XLn5H7haieKXkU9 ndXVc8ixZmRhXTePBHVKgWHqSkvQTHNelN+dsKqaNZzu6XDB7pIuj+BNNYtMNQHHO4zA GbHUdCwJf9zAglDgZ650ggngGx590IX1IqSEM75l5WZf8gHAywYk2O8ZK1UT/PUD0Cqj WIZQ== X-Gm-Message-State: AOJu0Yw7A15lBxsEBdGe7NYw87jTopeEpA/cFqECkIRrtZDOUx1QR+90 VjA4nRlhZ0bUE5s/xVYdnEptuHUTzjY2TrdjomB2ljeg6KPNYVu6JKy0O7YU0VtJKDohdwIEtvD U1g== X-Google-Smtp-Source: AGHT+IFlKYpuA+cM5BCHAZavKQj+iQw2+opCYLFffR8+1ryUCPyJg/bABe8fzBmlZZCMR7cNuN1wmg== X-Received: by 2002:a17:90a:784a:b0:2aa:b377:d29e with SMTP id y10-20020a17090a784a00b002aab377d29emr350811pjl.3.1713236920034; Mon, 15 Apr 2024 20:08:40 -0700 (PDT) Received: from free.home ([2804:7f1:218b:5e2:c43b:e0c4:71a:241b]) by smtp.gmail.com with ESMTPSA id o7-20020a17090a3d4700b002aa783c7749sm673821pjf.41.2024.04.15.20.08.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 20:08:39 -0700 (PDT) Received: from livre (livre.home [172.31.160.2]) by free.home (8.15.2/8.15.2) with ESMTPS id 43G38LiR2386811 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Tue, 16 Apr 2024 00:08:22 -0300 From: Alexandre Oliva To: gcc-patches@gcc.gnu.org Cc: Rainer Orth , Mike Stump , Richard Earnshaw , Richard Sandiford , Marcus Shawcroft , Kyrylo Tkachov Subject: [testsuite] [aarch64] Require fpic effective target Organization: Free thinker, does not speak for AdaCore Date: Tue, 16 Apr 2024 00:08:20 -0300 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 X-Spam-Status: No, score=-11.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, WEIRD_QUOTING 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: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Regstrapped on x86_64-linux-gnu. Also tested with gcc-13 on arm-, aarch64-, x86- and x86_64-vxworks7r2. Ok to install? Co-authored-by: Olivier Hainque for gcc/testsuite/ChangeLog * gcc.target/aarch64/pr94201.c: Add missing dg-require-effective-target fpic. * gcc.target/aarch64/pr103085.c: Likewise. --- gcc/testsuite/gcc.target/aarch64/pr103085.c | 1 + gcc/testsuite/gcc.target/aarch64/pr94201.c | 1 + 2 files changed, 2 insertions(+) diff --git a/gcc/testsuite/gcc.target/aarch64/pr103085.c b/gcc/testsuite/gcc.target/aarch64/pr103085.c index dbc9c15b71f22..347280ed42b2d 100644 --- a/gcc/testsuite/gcc.target/aarch64/pr103085.c +++ b/gcc/testsuite/gcc.target/aarch64/pr103085.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fstack-protector-strong -fPIC" } */ +/* { dg-require-effective-target fpic } */ void g(int*); void diff --git a/gcc/testsuite/gcc.target/aarch64/pr94201.c b/gcc/testsuite/gcc.target/aarch64/pr94201.c index 691761691868a..3b9b79059e02b 100644 --- a/gcc/testsuite/gcc.target/aarch64/pr94201.c +++ b/gcc/testsuite/gcc.target/aarch64/pr94201.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-mcmodel=tiny -mabi=ilp32 -fPIC" } */ +/* { dg-require-effective-target fpic } */ extern int bar (void *); extern long long a;