Message ID | 20240610152611.318352-1-quic_apinski@quicinc.com |
---|---|
State | New |
Headers | show
Return-Path: <gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=quicinc.com header.i=@quicinc.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=SqGE0jDp; 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 4VybJD2TbQz20Py for <incoming@patchwork.ozlabs.org>; Tue, 11 Jun 2024 01:26:51 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 9BB10385DDC8 for <incoming@patchwork.ozlabs.org>; Mon, 10 Jun 2024 15:26:48 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by sourceware.org (Postfix) with ESMTPS id 41A373857340 for <gcc-patches@gcc.gnu.org>; Mon, 10 Jun 2024 15:26:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 41A373857340 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=quicinc.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 41A373857340 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=205.220.168.131 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1718033186; cv=none; b=ROwIoYa15FfNUR7zTdE3oPhKPI6u/n2/5GA9HOkUXQPDe5ziCZxzV+5RY9PblpjTGK+Gvu5Ca6vhH8+taVWLMDTiPRTbJfixXrkjJ4VvxWynWMUoFTVxw04jTb0fHeaaiYfWHdRaA6SL2d8oXc09UwSV2E49A3V/2disJMJg3cs= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1718033186; c=relaxed/simple; bh=zfmxAxNMDOsIRmnUvu84JAYAsbpOpgY7XJezyHGqoP8=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=gBbDSmxfDHixaY7zOveU2OoqgcXW/zwXtlHO/6y4QbzBMctAsD9A8IWKVzwOrfk2H/3oaHLnmgoQF5A9OFBkv1bh1txSJXIdrfa6wvFZVMM8nngfv2weZ94Iy2ACKKYJkuWnmXSaagzVkNzgQfyimC9saLSwN89bW89P+bMhPgY= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 45ADeZOr006787 for <gcc-patches@gcc.gnu.org>; Mon, 10 Jun 2024 15:26:23 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=qcppdkim1; bh=G34GLmDLnsLc6C0htGnI3B uRoKh5ylf2iUQ0iowJBH8=; b=SqGE0jDp8D/pQps4mdIJV5RgdO1CatH7AfXUSS KCPSGM0srWzKB/n3+D+wOTtSYIIBvHfoxagGcwypnYAIGUHoxQWrHiPLyi30C5pB OLU1bDdKOS8g06qsJeH1MvuZL0DjK7LnrKAauZPdD/jpOiscx60PwqbqK1tUrHRv jrIXo1BRCL3FY685ISGviI3CYKRD3s6xvayybQgpi2knT7PfQxSYqo/kt2KY4LTk oV/gm6wcgjP5qc1YujU2SzmUqDrL/7rjZiMuH3uAFVviQeRBHsKVT/CHccJlOxsv TgQpJ2xWcopiDYm8s8UMc5Ks7gwzhQYhfmC1ZDMZp7SQi4kQ== Received: from nasanppmta02.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3ymfh34gfs-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for <gcc-patches@gcc.gnu.org>; Mon, 10 Jun 2024 15:26:23 +0000 (GMT) Received: from nasanex01c.na.qualcomm.com (nasanex01c.na.qualcomm.com [10.45.79.139]) by NASANPPMTA02.qualcomm.com (8.17.1.19/8.17.1.19) with ESMTPS id 45AFQMqo002083 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for <gcc-patches@gcc.gnu.org>; Mon, 10 Jun 2024 15:26:22 GMT Received: from hu-apinski-lv.qualcomm.com (10.49.16.6) by nasanex01c.na.qualcomm.com (10.45.79.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Mon, 10 Jun 2024 08:26:22 -0700 From: Andrew Pinski <quic_apinski@quicinc.com> To: <gcc-patches@gcc.gnu.org> CC: Andrew Pinski <quic_apinski@quicinc.com> Subject: [PUSHED] Fix pr115388.c: plain char could be unsigned by default [PR115415] Date: Mon, 10 Jun 2024 08:26:11 -0700 Message-ID: <20240610152611.318352-1-quic_apinski@quicinc.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01c.na.qualcomm.com (10.47.97.35) To nasanex01c.na.qualcomm.com (10.45.79.139) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: FOzgvVeUrawPvG3UNfKQqGcE9eAZpgBk X-Proofpoint-GUID: FOzgvVeUrawPvG3UNfKQqGcE9eAZpgBk X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-06-10_02,2024-06-10_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 impostorscore=0 lowpriorityscore=0 spamscore=0 malwarescore=0 suspectscore=0 clxscore=1015 bulkscore=0 phishscore=0 adultscore=0 mlxscore=0 mlxlogscore=948 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405170001 definitions=main-2406100117 X-Spam-Status: No, score=-13.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, 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 <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org |
Series |
[PUSHED] Fix pr115388.c: plain char could be unsigned by default [PR115415]
|
expand
|
diff --git a/gcc/testsuite/gcc.dg/torture/pr115388.c b/gcc/testsuite/gcc.dg/torture/pr115388.c index c7c902888da..17b3f1bcd90 100644 --- a/gcc/testsuite/gcc.dg/torture/pr115388.c +++ b/gcc/testsuite/gcc.dg/torture/pr115388.c @@ -2,7 +2,7 @@ int printf(const char *, ...); int a[10], b, c, d[0], h, i, j, k, l; -char e = -1, g; +signed char e = -1, g; volatile int f; static void n() { while (e >= 0)
This is a simple fix to the testcase as plain `char` could be unsigned by default on some targets (e.g. aarch64 and powerpc). Committed as obvious after quick test of the testcase on both aarch64 and x86_64. gcc/testsuite/ChangeLog: PR testsuite/115415 PR tree-optimization/115388 * gcc.dg/torture/pr115388.c: Use `signed char` directly instead of plain `char`. Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com> --- gcc/testsuite/gcc.dg/torture/pr115388.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)