From patchwork Sat Jan 13 00:55:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thiago Jung Bauermann X-Patchwork-Id: 762473 Delivered-To: patch@linaro.org Received: by 2002:a5d:5903:0:b0:337:62d3:c6d5 with SMTP id v3csp184407wrd; Fri, 12 Jan 2024 16:55:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IE1KijqszXV1h0bOjU1XdFxI9A4jQDcLqIidbtgFSJInWdWpb8AsbUx9E+LmL3cvqKdoWVd X-Received: by 2002:a05:620a:468b:b0:781:5bd6:2cd8 with SMTP id bq11-20020a05620a468b00b007815bd62cd8mr3249155qkb.3.1705107337236; Fri, 12 Jan 2024 16:55:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705107337; cv=pass; d=google.com; s=arc-20160816; b=aVs8olXjA4elAc9KTQHXDDB5wElyePRUzhFM5BlHJaOsKo3yWasACZaH0WartAhEaw UzGAM+sfgmyZOwfWUUvuCSnnVnCBN57VZu8PVt+9PMliaMKR+z19hIUcDsxkDjGxlUsU 9pyrH1ooYiGplL9XN7KyaRMiU2/6Fk4pFR6L50H+DDPZCahdA7YTc7Kmx0RLkdOu7OMv dpsTU/NwKRTzLXW+MFcY9vUpJ+LyFtzz4VxbLl7iFDuY2M7AaSmk7ivyZ8RRvaiXxjFU 2dTpQ3+isGvsBMSKgmJP54ViHFincSRdb3MYQEQS610iJpFJ8E3msvdYaKjK2l1Zmbwt cIJQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=D45jy8kNuwpO8uxMklQY2O7XvfLmxsea+PnzXZAo/EA=; fh=hPrbWPhweUx4V0GV9uXJqbyAzg2ABmTz7kczrAQqMmM=; b=yciD4IxjNjf5Y2e8U8oou6JQouMpZceKo8WNY71z6hCKNrMjKRqDUBTD+hYn/Yc3vb y6JtEREB9q+wkSpROg9VewYHb0PIW5ThcbJtcD+A8s2JFKPd0maCd+aiVT2kIex9SUMY 55FxvualjvFWoXeHTe8Qh2Q+zf7lUzYodxvv2Nfzls8pg98YLvAiCV9dEhLkQI1vsDcs +TtwlS7UucOHAjz8uf4KF0kwSy4+JhCIHTustGjijwuRdp0XCyPxLMMf5dHkl0D9EzjW 9c9VtHd7LCcdbtNksgoJrMJ+cLWisZXiPgXCNdeGKXo7h45lezs4z3DGKAjgH5Oo9OuV ezaA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Y6QgY63i; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+patch=linaro.org@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+patch=linaro.org@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id bl18-20020a05620a1a9200b007833af128d4si4356784qkb.262.2024.01.12.16.55.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 16:55:37 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+patch=linaro.org@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Y6QgY63i; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+patch=linaro.org@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+patch=linaro.org@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id DC98B3858C54 for ; Sat, 13 Jan 2024 00:55:36 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-ot1-x330.google.com (mail-ot1-x330.google.com [IPv6:2607:f8b0:4864:20::330]) by sourceware.org (Postfix) with ESMTPS id 420E43858D1E for ; Sat, 13 Jan 2024 00:55:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 420E43858D1E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 420E43858D1E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::330 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705107322; cv=none; b=PvMrt5fzbSohf2Nu0AElZqSgOyj4OrzkWHlCYO2fwQHHGxk7L1ztXel3/UfiW4+GjELsb0AYo32cB+hRLuWQtDffNiSnH2nalb7ArDs/g4Jq5q7RU/q27XR2g+Wxqk9jV34pfOnJE0ZzeIztg7JzW4niN14ju3jjp7MG3PYFLL0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705107322; c=relaxed/simple; bh=/PEP+ty0jH6hmiGv+uGTgA/K4I/O5xW23SYvGG1ZsXc=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=F+ODdTJ/DqicaSGnUrYxCJ2z5MopMw328Vo1SV3i1G9Q9D+fmot7I/SV4ni6ibsUhndX3W7H9vq4szoxxnkyzbn1Et5HYltEYod3ZDA7RZQoGe2q96gKl1xYfL4jrbqdVrkJhqEknazEiAi+gm0JK8rq0LIkht28ISVNb8IPE8Q= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-ot1-x330.google.com with SMTP id 46e09a7af769-6dec4b7b680so1457818a34.3 for ; Fri, 12 Jan 2024 16:55:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705107319; x=1705712119; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=D45jy8kNuwpO8uxMklQY2O7XvfLmxsea+PnzXZAo/EA=; b=Y6QgY63i5j9Mi6vuTc//iBX17mLtjhj3uRF9iZilzfPtJ57rf6Qv6IAEirphbfjB7t Yr2ss0zttmeRX4P7NxxCK2seMcKOriIQ9lU9x7nQ6eeu5AYi/hjabBVYu58gaDZocR/X OMmRorH8ogcldJOT9sQ9tYKSlPCvFfLTG3oTOnRfU7st1LBnoN1DHOl/ibka2bqWSo3Z 2Q5LEsO9qiBtXvfyibpo4BYeRPMpB/yD69jV9+dTuAzcPaT0KvqWSQTWD9O5zNj7XGku NetZLjqu/Ty4mb6d9rbe4iCBthz+KqAO54j3SzktTQgR22a4Y8C11FzqxPO/R4orRCXs WiBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705107319; x=1705712119; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=D45jy8kNuwpO8uxMklQY2O7XvfLmxsea+PnzXZAo/EA=; b=tNi009S7THhY/lnA4ThA+TmPZReT4/0NtZMBY5tkJ2altvJVBOc6ffuiKerRyjI/6c lP6AzdmtFQF85Z1wfwy53uRe5bJpXapCwGyuskp/azvjNF0fibu7f4qTjMRbWaPQGzat li7267XJkM1UbdAu4VbIMjRaqtde167P1tqEKBIzNiyYxFWfPy0rejWpnMfD4h2wtGlL 2pPoScyOtVa2FNioUcHyzQiYq73f2uFdY2pFR0unWEI0HbmUlOuefdmNEVrMykfR1gn5 os+QeVyb7CiHN4pNc7KOLtaXjIXlLtm0dw4EeXvCwfaVDCr9j4o3iYo0cJYdpGfiZJqZ v6mQ== X-Gm-Message-State: AOJu0YyQKbTIkvX92TYbYNZQXZy477sKd9P5gUmAvbbuWodVtIxNx9nr hrRv84dqjvkx0jHCzjvFwM0YniStA15X+MSgzIVcEQL7nZo= X-Received: by 2002:a9d:5e85:0:b0:6d9:d815:f399 with SMTP id f5-20020a9d5e85000000b006d9d815f399mr2348205otl.66.1705107319187; Fri, 12 Jan 2024 16:55:19 -0800 (PST) Received: from localhost ([2804:14d:7e39:8470:d87:ecdc:6329:e94e]) by smtp.gmail.com with ESMTPSA id e16-20020aa78c50000000b006da0372200asm3732060pfd.184.2024.01.12.16.55.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 16:55:18 -0800 (PST) From: Thiago Jung Bauermann To: gcc-patches@gcc.gnu.org Subject: [PATCH] testsuite: Fix fallout of turning warnings into errors on 32-bit Arm Date: Fri, 12 Jan 2024 21:55:15 -0300 Message-ID: <20240113005515.1029712-1-thiago.bauermann@linaro.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Spam-Status: No, score=-11.7 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, 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: 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+patch=linaro.org@gcc.gnu.org Since commits 2c3db94d9fd ("c: Turn int-conversion warnings into permerrors") and 55e94561e97e ("c: Turn -Wimplicit-function-declaration into a permerror") these tests fail with errors such as: FAIL: gcc.target/arm/pr59858.c (test for excess errors) FAIL: gcc.target/arm/pr65647.c (test for excess errors) FAIL: gcc.target/arm/pr65710.c (test for excess errors) FAIL: gcc.target/arm/pr97969.c (test for excess errors) Here's one example of the excess errors: FAIL: gcc.target/arm/pr65647.c (test for excess errors) Excess errors: /path/gcc.git/gcc/testsuite/gcc.target/arm/pr65647.c:6:17: error: initialization of 'int' from 'int *' makes integer from pointer without a cast [-Wint-conversion] /path/gcc.git/gcc/testsuite/gcc.target/arm/pr65647.c:6:51: error: initialization of 'int' from 'int *' makes integer from pointer without a cast [-Wint-conversion] /path/gcc.git/gcc/testsuite/gcc.target/arm/pr65647.c:6:62: error: initialization of 'int' from 'int *' makes integer from pointer without a cast [-Wint-conversion] /path/gcc.git/gcc/testsuite/gcc.target/arm/pr65647.c:7:48: error: initialization of 'int' from 'int *' makes integer from pointer without a cast [-Wint-conversion] /path/gcc.git/gcc/testsuite/gcc.target/arm/pr65647.c:8:9: error: initialization of 'int' from 'int *' makes integer from pointer without a cast [-Wint-conversion] /path/gcc.git/gcc/testsuite/gcc.target/arm/pr65647.c:24:5: error: initialization of 'int' from 'int *' makes integer from pointer without a cast [-Wint-conversion] /path/gcc.git/gcc/testsuite/gcc.target/arm/pr65647.c:25:5: error: initialization of 'int' from 'struct S1 *' makes integer from pointer without a cast [-Wint-conversion] /path/gcc.git/gcc/testsuite/gcc.target/arm/pr65647.c:41:3: error: implicit declaration of function 'fn3'; did you mean 'fn2'? [-Wimplicit-function-declaration] /path/gcc.git/gcc/testsuite/gcc.target/arm/pr65647.c:46:3: error: implicit declaration of function 'fn5'; did you mean 'fn4'? [-Wimplicit-function-declaration] /path/gcc.git/gcc/testsuite/gcc.target/arm/pr65647.c:57:16: error: implicit declaration of function 'fn6'; did you mean 'fn4'? [-Wimplicit-function-declaration] PR rtl-optimization/59858 and PR target/65710 test the fix of an ICE. PR target/65647 and PR target/97969 test for a compilation infinite loop. Therefore, add -fpermissive so that the tests behave as they did previously. Tested on armv8l-linux-gnueabihf. gcc/testsuite/ChangeLog: * gcc.target/arm/pr59858.c: Add -fpermissive. * gcc/testsuite/gcc.target/arm/pr65647.c: Likewise. * gcc/testsuite/gcc.target/arm/pr65710.c: Likewise. * gcc/testsuite/gcc.target/arm/pr97969.c: Likewise. --- gcc/testsuite/gcc.target/arm/pr59858.c | 2 +- gcc/testsuite/gcc.target/arm/pr65647.c | 2 +- gcc/testsuite/gcc.target/arm/pr65710.c | 2 +- gcc/testsuite/gcc.target/arm/pr97969.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gcc/testsuite/gcc.target/arm/pr59858.c b/gcc/testsuite/gcc.target/arm/pr59858.c index 3360b48e8586..9336edfce277 100644 --- a/gcc/testsuite/gcc.target/arm/pr59858.c +++ b/gcc/testsuite/gcc.target/arm/pr59858.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-march=armv5te -fno-builtin -mfloat-abi=soft -mthumb -fno-stack-protector -Os -fno-tree-loop-optimize -fno-tree-dominator-opts -fPIC -w" } */ +/* { dg-options "-march=armv5te -fno-builtin -mfloat-abi=soft -mthumb -fno-stack-protector -Os -fno-tree-loop-optimize -fno-tree-dominator-opts -fPIC -w -fpermissive" } */ /* { dg-require-effective-target fpic } */ /* { dg-skip-if "Incompatible command line options: -mfloat-abi=soft -mfloat-abi=hard" { *-*-* } { "-mfloat-abi=hard" } { "" } } */ /* { dg-require-effective-target arm_arch_v5te_thumb_ok } */ diff --git a/gcc/testsuite/gcc.target/arm/pr65647.c b/gcc/testsuite/gcc.target/arm/pr65647.c index 26b4e399f6be..3cbf6b804ec0 100644 --- a/gcc/testsuite/gcc.target/arm/pr65647.c +++ b/gcc/testsuite/gcc.target/arm/pr65647.c @@ -1,7 +1,7 @@ /* { dg-do compile } */ /* { dg-require-effective-target arm_arch_v6m_ok } */ /* { dg-skip-if "do not override -mfloat-abi" { *-*-* } { "-mfloat-abi=*" } {"-mfloat-abi=soft" } } */ -/* { dg-options "-march=armv6-m -mthumb -O3 -w -mfloat-abi=soft" } */ +/* { dg-options "-march=armv6-m -mthumb -O3 -w -mfloat-abi=soft -fpermissive" } */ a, b, c, e, g = &e, h, i = 7, l = 1, m, n, o, q = &m, r, s = &r, u, w = 9, x, y = 6, z, t6 = 7, t8, t9 = 1, t11 = 5, t12 = &t8, t13 = 3, t15, diff --git a/gcc/testsuite/gcc.target/arm/pr65710.c b/gcc/testsuite/gcc.target/arm/pr65710.c index 103ce1d45f77..4cbf7817af7e 100644 --- a/gcc/testsuite/gcc.target/arm/pr65710.c +++ b/gcc/testsuite/gcc.target/arm/pr65710.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-skip-if "do not override -mfloat-abi" { *-*-* } { "-mfloat-abi=*" } {"-mfloat-abi=soft" } } */ -/* { dg-options "-mthumb -O2 -mfloat-abi=soft -w" } */ +/* { dg-options "-mthumb -O2 -mfloat-abi=soft -w -fpermissive" } */ /* { dg-skip-if "" { ! { arm_thumb1_ok || arm_thumb2_ok } } } */ struct ST { diff --git a/gcc/testsuite/gcc.target/arm/pr97969.c b/gcc/testsuite/gcc.target/arm/pr97969.c index b8c3a23676a2..5507a1024865 100644 --- a/gcc/testsuite/gcc.target/arm/pr97969.c +++ b/gcc/testsuite/gcc.target/arm/pr97969.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-require-effective-target arm_arch_v6m_ok } */ -/* { dg-options "-std=c99 -fno-omit-frame-pointer -w -Os" } */ +/* { dg-options "-std=c99 -fno-omit-frame-pointer -w -Os -fpermissive" } */ /* { dg-add-options arm_arch_v6m } */ typedef a[23];