From patchwork Sun Dec 3 05:04:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Law X-Patchwork-Id: 81221 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0E5E238582AC for ; Sun, 3 Dec 2023 05:05:10 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-io1-xd2f.google.com (mail-io1-xd2f.google.com [IPv6:2607:f8b0:4864:20::d2f]) by sourceware.org (Postfix) with ESMTPS id 1D51C3858C53 for ; Sun, 3 Dec 2023 05:04:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1D51C3858C53 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 1D51C3858C53 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::d2f ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701579896; cv=none; b=O7FXjb6lX+vTJVqqdkicf2MkC6UQn4GzxOoX9UJSP6+hoXn1hRL0EK+khJ/BlxzAM1v4Vadmi04vA9/biNZIzOpShS8oxulC76PkgfREJUWbbRSOv0Ii8KkjWxas5esGW0dwa6mWgKBqn3zkFdAwVZh9tXqE4gLcC+2VoJ8bD9g= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701579896; c=relaxed/simple; bh=KJtkUu/buPuONZvtRSW4JNUp7btzDC0a2Elq1a68GoI=; h=DKIM-Signature:Message-ID:Date:MIME-Version:To:From:Subject; b=xz3cUBQ7oYil+n+UKjKEyX2wl0Iu4oM91ZLFjIOGf/V4fHBsqN6iTFAaRRkre4RFvLBKCJS41arbudnBgrHb3aOAFbFIjlJhJIcgp40aOqLE/HRPuI2z4Tvawdt8KgS9iml2uCsJPWoLpHuSMdg+A5uqm6NoO388P/863c2TLqk= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-io1-xd2f.google.com with SMTP id ca18e2360f4ac-7b06841efdcso137068739f.2 for ; Sat, 02 Dec 2023 21:04:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701579894; x=1702184694; darn=gcc.gnu.org; h=subject:from:to:content-language:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=d1SInRG0NpTiPTHgUDfHRFVuJFKSuY6m775rXEiGwoQ=; b=Hc96RKqJaAAxnLcBcKuOuvpuwn5znteRlweCl8McJ9QcwqusZbiJyeRx9nrYdDAG1E sx/2mTZ0r8ZE3vihWsqz/V+I+W7Y4XlyHgBAslzZABYtDMrwHLxVfHvwZ5f+4JrS3aPu 3+V/f+XKnM3LG/egogKuQk5VRErqvn1WYjWtZzk2PVaW12+NQ6wlKVxvA4OsLGArVfpe jGYAx3DrVz9BZU9pPBEltG5shuWpG+TcXyHVaC6aXBi8dEXPneH8L/m2fC3UWprnFZSY XjKI/tsCwTCUUZIy8lMGBp1rW0+RyOP0/kyB1/OMNPxFyzc5eraiKRiQt9qLeDG95VOD sC0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701579894; x=1702184694; h=subject:from:to:content-language:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=d1SInRG0NpTiPTHgUDfHRFVuJFKSuY6m775rXEiGwoQ=; b=KWvH7SnwrySYstltgGor57UhVbYUocxiOJjapOsCPPQ+GlWGrWfuQagTFf43TuS0lF MSV3U3hioUejpao4B7dpO4tj+SLe9sAYrPeFPK9eYYnhTR1IqYvYyXb0dRS1Kgh9jabL VdXJl1rf5eIf81EWSDFNEIu0nt1bMBBKYh1stPvFk4PYY0lM74H4njJEWugfy5rkwuF+ CezGmoSRvU8OVNeG5rFJhP13/+JArACTSdAnyLLvT4UvfKByPIpLG5c3vOpXCkIh11zm Orzoj9yfo4/ySIrEs0ieCtMC1rcdMDLlB2ZbMF4yCdWtb15QOrT813uf+JD+RjVqB4jh cZAw== X-Gm-Message-State: AOJu0Yz7OliusceJhaQgj5ILJJ75q5p5mw0RUIRaE2qfmCglmlCGl4I7 S/VQCH91yKaiiP1/zQxEaOS3I76e+3REcw== X-Google-Smtp-Source: AGHT+IEdIyDaGWGIKt2xo4SN3Qt1h2evDhl1QkgEwa6fUCh8TUmn37/JEC1vYZIIpT1L73ZMRUpMkA== X-Received: by 2002:a5d:93d9:0:b0:7b3:8dae:6564 with SMTP id j25-20020a5d93d9000000b007b38dae6564mr3020175ioo.13.1701579893739; Sat, 02 Dec 2023 21:04:53 -0800 (PST) Received: from [172.31.0.109] ([136.36.130.248]) by smtp.gmail.com with ESMTPSA id 13-20020a170902c20d00b001d087f68ef8sm649276pll.37.2023.12.02.21.04.52 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 02 Dec 2023 21:04:53 -0800 (PST) Message-ID: Date: Sat, 2 Dec 2023 22:04:52 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: "gcc-patches@gcc.gnu.org" From: Jeff Law Subject: [committed] Fix minor testsuite problems on H8 after C99 changes X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, 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+patchwork=sourceware.org@gcc.gnu.org Two minor regressions on the H8 were triggered by the C99 changes. First pr58400.c has several functions without prototypes. I just added -fpermissive to that test. Second pr17306-2.c has a single call to an unprototyped function for which I added the prototype. These are both H8 specific tests. Pushed to the trunk, Jeff commit 622c5356676caec1dc970869d6671244703f0559 Author: Jeff Law Date: Sat Dec 2 22:03:28 2023 -0700 [committed] Fix minor testsuite problems on H8 after C99 changes Two minor regressions on the H8 were triggered by the C99 changes. First pr58400.c has several functions without prototypes. I just added -fpermissive to that test. Second pr17306-2.c has a single call to an unprototyped function for which I added the prototype. These are both H8 specific tests. gcc/testsuite * gcc.target/h8300/pr58400.c: Add -fpermissive. * gcc.target/h8300/pr17306-2.c: Add missing prototype. diff --git a/gcc/testsuite/gcc.target/h8300/pr17306-2.c b/gcc/testsuite/gcc.target/h8300/pr17306-2.c index a407c74b4cd..8c79f31b9db 100644 --- a/gcc/testsuite/gcc.target/h8300/pr17306-2.c +++ b/gcc/testsuite/gcc.target/h8300/pr17306-2.c @@ -8,6 +8,8 @@ struct x { char y; }; +void oof (void); + struct x __attribute__ ((eightbit_data)) foo; int bar () diff --git a/gcc/testsuite/gcc.target/h8300/pr58400.c b/gcc/testsuite/gcc.target/h8300/pr58400.c index 496626f4b48..9d1ad7a2202 100644 --- a/gcc/testsuite/gcc.target/h8300/pr58400.c +++ b/gcc/testsuite/gcc.target/h8300/pr58400.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-Os -mh -mint32 -w" } */ +/* { dg-options "-Os -mh -mint32 -w -fpermissive" } */ typedef unsigned short __u16; typedef __signed__ int __s32;