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: 187856 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2614:b0:101:6a76:bbe3 with SMTP id mm20csp530500dyc; Fri, 12 Jan 2024 16:56:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IEWJSm/gYaXMg1CZiwI5+hoqNN/hsaMv3Uwcvb38kWiA5YcGPOSdoHDg8MwXI3rl+udVsRr X-Received: by 2002:a05:620a:2a0b:b0:783:4b93:6d45 with SMTP id o11-20020a05620a2a0b00b007834b936d45mr1897464qkp.65.1705107385384; Fri, 12 Jan 2024 16:56:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705107385; cv=pass; d=google.com; s=arc-20160816; b=mbXssuuSoJJ48WZxu7G9qhkFHpS0meNhquPwtrMc4lK/KYwhom1U+W7jwVijAQWS4j 9xKYtSvx11JnMAKUXitSi09H4R2UdBSYlh/+lITG2UTzjFoCTASMGJKPaQxNYHkCzZ6g Lg74pfGmaPNPLOHvV5QxFwHntcf6tNn/P+/qpNv4rbbTeja+OmijGw0xFMmg3s9NzI6t jNMbrxX3ycbT1Iyo2Y55u1yNFGnBBEuBA757aD6N923P6ta6wUdDciOtmu03hMAIotVX HNcdM3crBdjxNqVeQYFfjU5EfA2IGIN6ocxXaEro9JvNuv/dJFGWpGbiUrOkPVIxl/4b nCFQ== 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=vm6hUSKTNnHiR0FBzUIdoUS/cWMEkQlqk08daJnL2U3ztXLQtpERWT0AALpqzigEcN TA8uXzTTDWjTUM4y9MUnSnpLTo2DDitb5pYLl4FU6/ppKCK0ZfAZ0reX36DeQwlLHu2V PC7lmP152Uc+MbI1vdJBxV1rTwc7cppdpo2N9RQIBSFGcUi9KryNG52lMVgW1jiZ6Vtu BOf7hgfkynqYWNtkY7O+yx9Dgf10aFS73ATiUPY20HGf6R88iCvQ6ygzX1QLt3nozaeM vpizFzjoNT8SwYPJfDAhevk+87o0Q1sAp4LeituRm5kBYRZa7/wvz2tnmkJuyuToDBFn mTuA== 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+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id dc7-20020a05620a520700b007833cc553b7si3783946qkb.648.2024.01.12.16.56.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 16:56:25 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; 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+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@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 195933858D32 for ; Sat, 13 Jan 2024 00:56:25 +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+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787934681754062893 X-GMAIL-MSGID: 1787934681754062893 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];