From patchwork Fri Oct 20 19:06:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 156273 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2010:b0:403:3b70:6f57 with SMTP id fe16csp1268270vqb; Fri, 20 Oct 2023 12:06:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGdge4Ju+Y3cHF7NmUHHPI87VmaL1GNyavlVxIyisNBHaOC41RvsgoGUw/cqgmRgeUU9D2n X-Received: by 2002:ac8:5a82:0:b0:41c:d846:4d7 with SMTP id c2-20020ac85a82000000b0041cd84604d7mr2910025qtc.65.1697828813397; Fri, 20 Oct 2023 12:06:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1697828813; cv=pass; d=google.com; s=arc-20160816; b=WckhH060CF5sYjm0fBFxlzq5yFzf7uH1+KLJzn7vzacrJRci8dz9Ao1plJmw8wFoLL petI/L2Yg5PGil1LSouT4G3ARVBRZRDZcWO0FMkiPGZT34t7BROW5Q4GmEoDmmv5qt59 loN8kOATdMjG7kMFoiOyGdr9kk53EpHEuyx/MD63qd9MTvPeksAaveTUHzCXe8D/exCP M7BDC1pbY8W9Cw4a+XSSw2nbLKff4hfhchx+9mb5oBtKzM9iQHBy5HZWWSZDB3MT8rqU FZdxh+T0nB8SrGkpyFnGewT+D4xDno8NOxSznD0ICWxMWegw+flh/RWWamuKSqsfzRAs GU/w== 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:mime-version:user-agent :message-id:date:subject:to:from:dkim-signature:arc-filter :dmarc-filter:delivered-to; bh=S6D6oNm875k2MAUyvriE20cDGK5cBtezlSGXISh9JEU=; fh=hPrbWPhweUx4V0GV9uXJqbyAzg2ABmTz7kczrAQqMmM=; b=aE2VH52F+yzBc9NU8PWyhNTwhIrN70bIHcBzDeLEc1AJtEE1i0Sl2DFvnpRHprmgWS pTKsKQYM2VVu3RmDWukqW0CB1WrHKt+R1rH5/EUWhzx1Al5xOeDfhpDL3dTO0Aw330bf 5xVOZn28/eWXJijcCoXj9NaL7/aXFAydgBz3maxvZle4+4b+it+UyAQVEUcfCv/jxans evqRr5bNAJgFblUv1kw432aVQhmJeI78DrP3BhEJu5bLma+5FRTm3/oA0kanMhLf6dsN WS7wDgdgXDW18P7cGlaeuEgL5tw2UYTSLXh5sSPRokMTIhntyM9dhvjNyGY2AUUV0yo6 phug== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=IqP1Xop+; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id g21-20020ac87f55000000b00418175f3a84si1784028qtk.138.2023.10.20.12.06.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 12:06:53 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@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=@redhat.com header.s=mimecast20190719 header.b=IqP1Xop+; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 73FC4385C017 for ; Fri, 20 Oct 2023 19:06:50 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id C8430385DC3D for ; Fri, 20 Oct 2023 19:06:21 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C8430385DC3D Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C8430385DC3D Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1697828787; cv=none; b=vI4thYJnj6qqDUppOGJ3e77VfvJAgAB9lvR15X+4G6NyrS1a5Kmdg6vFG/PuMIyXM2N7ksrZTsiVdHgY+B7XhDMQ1D8pjezKKSPXg6bJ/s8JU/b+b9j0blspmYJvwEultAghxmZ/DrGCItwM28IOkbQnOsaZpcNAsSrHCdAUK/I= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1697828787; c=relaxed/simple; bh=YDtvOklYAvNdRW5DZMqqR1hahyfp+KKVqeQ4kpcCx+o=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=az0C4Zzh3A/767oKzUegeW4qN0gNLwib104waMrodvotOk7ZP22nE6ATpUormjp2vHnnf1MC3F5fD7nQhHHv0cYvNc4OOpFUlE2HPeBw7Zes3kwXXDtWbp6EEgbIiWbgXRXrr3kngLXjvddVszuNadjihRtkyMxtwvpq5a1jTJQ= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1697828781; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=S6D6oNm875k2MAUyvriE20cDGK5cBtezlSGXISh9JEU=; b=IqP1Xop+jg+M6LnvRmdSFg2n8d9eXp/2p4zK+Wruo0Tkowx3AUfSv3usJqauHmiMMUStI6 0V4pjanwnQYfRI55ZmmlqmTGobV4MmVJLZSB4Z4dHGbHCwLOWgyx6+EUOT32IZQSt5lbKv 8WoCNbWyjV8r2zR2AGR5RFgyoelYxUw= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-449-PNyWqhBvP_uNUfRwPZucmQ-1; Fri, 20 Oct 2023 15:06:09 -0400 X-MC-Unique: PNyWqhBvP_uNUfRwPZucmQ-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 7CFF210201F0 for ; Fri, 20 Oct 2023 19:06:09 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.2.16.23]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C6340492BFB for ; Fri, 20 Oct 2023 19:06:08 +0000 (UTC) From: Florian Weimer To: gcc-patches@gcc.gnu.org Subject: [PATCH] C99 testsuite readiness: Compile more tests with -std=gnu89 Date: Fri, 20 Oct 2023 21:06:07 +0200 Message-ID: <87o7gtw1uo.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.3 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.10 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-10.3 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP 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: 1780302545909366795 X-GMAIL-MSGID: 1780302545909366795 gcc/testsuite/ * gcc.c-torture/compile/20000403-1.c: Compile with -std=gnu89. * gcc.c-torture/compile/20000511-1.c: Likewise. * gcc.c-torture/compile/20000804-1.c: Likewise. * gcc.c-torture/compile/20020418-1.c: Likewise. * gcc.c-torture/compile/20020927-1.c: Likewise. * gcc.c-torture/compile/20030109-1.c: Likewise. * gcc.c-torture/compile/20030224-1.c: Likewise. * gcc.c-torture/compile/20030415-1.c: Likewise. * gcc.c-torture/compile/20030612-1.c: Likewise. * gcc.c-torture/compile/20030917-1.c: Likewise. * gcc.c-torture/compile/20031113-1.c: Likewise. * gcc.c-torture/compile/20031220-2.c: Likewise. * gcc.c-torture/compile/20040309-1.c: Likewise. * gcc.c-torture/compile/20040310-1.c: Likewise. * gcc.c-torture/compile/20040317-3.c: Likewise. * gcc.c-torture/compile/20040817-1.c: Likewise. * gcc.c-torture/compile/20091215-1.c: Likewise. * gcc.c-torture/compile/86.c: Likewise. * gcc.c-torture/compile/900216-1.c: Likewise. * gcc.c-torture/compile/900313-1.c: Likewise. * gcc.c-torture/compile/900407-1.c: Likewise. * gcc.c-torture/compile/900516-1.c: Likewise. * gcc.c-torture/compile/920409-2.c: Likewise. * gcc.c-torture/compile/920415-1.c: Likewise. * gcc.c-torture/compile/920428-1.c: Likewise. * gcc.c-torture/compile/920428-5.c: Likewise. * gcc.c-torture/compile/920428-7.c: Likewise. * gcc.c-torture/compile/920501-1.c: Likewise. * gcc.c-torture/compile/920501-13.c: Likewise. * gcc.c-torture/compile/920501-15.c: Likewise. * gcc.c-torture/compile/920501-16.c: Likewise. * gcc.c-torture/compile/920501-18.c: Likewise. * gcc.c-torture/compile/920501-20.c: Likewise. * gcc.c-torture/compile/920501-6.c: Likewise. * gcc.c-torture/compile/920501-7.c: Likewise. * gcc.c-torture/compile/920502-1.c: Likewise. * gcc.c-torture/compile/920502-2.c: Likewise. * gcc.c-torture/compile/920520-1.c: Likewise. * gcc.c-torture/compile/920521-1.c: Likewise. * gcc.c-torture/compile/920608-1.c: Likewise. * gcc.c-torture/compile/920617-1.c: Likewise. * gcc.c-torture/compile/920617-2.c: Likewise. * gcc.c-torture/compile/920625-1.c: Likewise. * gcc.c-torture/compile/920625-2.c: Likewise. * gcc.c-torture/compile/920626-1.c: Likewise. * gcc.c-torture/compile/920706-1.c: Likewise. * gcc.c-torture/compile/920710-2.c: Likewise. * gcc.c-torture/compile/920723-1.c: Likewise. * gcc.c-torture/compile/920808-1.c: Likewise. * gcc.c-torture/compile/920809-1.c: Likewise. * gcc.c-torture/compile/920817-1.c: Likewise. * gcc.c-torture/compile/920831-1.c: Likewise. * gcc.c-torture/compile/920917-1.c: Likewise. * gcc.c-torture/compile/920928-2.c: Likewise. * gcc.c-torture/compile/920928-5.c: Likewise. * gcc.c-torture/compile/921012-1.c: Likewise. * gcc.c-torture/compile/921021-1.c: Likewise. * gcc.c-torture/compile/921024-1.c: Likewise. * gcc.c-torture/compile/921103-1.c: Likewise. * gcc.c-torture/compile/921109-1.c: Likewise. * gcc.c-torture/compile/921111-1.c: Likewise. * gcc.c-torture/compile/921116-2.c: Likewise. * gcc.c-torture/compile/921118-1.c: Likewise. * gcc.c-torture/compile/921202-1.c: Likewise. * gcc.c-torture/compile/921202-2.c: Likewise. * gcc.c-torture/compile/921203-1.c: Likewise. * gcc.c-torture/compile/921203-2.c: Likewise. * gcc.c-torture/compile/921206-1.c: Likewise. * gcc.c-torture/compile/930109-1.c: Likewise. * gcc.c-torture/compile/930111-1.c: Likewise. * gcc.c-torture/compile/930117-1.c: Likewise. * gcc.c-torture/compile/930118-1.c: Likewise. * gcc.c-torture/compile/930120-1.c: Likewise. * gcc.c-torture/compile/930217-1.c: Likewise. * gcc.c-torture/compile/930325-1.c: Likewise. * gcc.c-torture/compile/930411-1.c: Likewise. * gcc.c-torture/compile/930427-2.c: Likewise. * gcc.c-torture/compile/930503-2.c: Likewise. * gcc.c-torture/compile/930506-2.c: Likewise. * gcc.c-torture/compile/930513-2.c: Likewise. * gcc.c-torture/compile/930530-1.c: Likewise. * gcc.c-torture/compile/930602-1.c: Likewise. * gcc.c-torture/compile/930618-1.c: Likewise. * gcc.c-torture/compile/930623-1.c: Likewise. * gcc.c-torture/compile/931003-1.c: Likewise. * gcc.c-torture/compile/931013-1.c: Likewise. * gcc.c-torture/compile/931013-2.c: Likewise. * gcc.c-torture/compile/931102-2.c: Likewise. * gcc.c-torture/compile/931203-1.c: Likewise. * gcc.c-torture/compile/940718-1.c: Likewise. * gcc.c-torture/compile/941014-1.c: Likewise. * gcc.c-torture/compile/941014-2.c: Likewise. * gcc.c-torture/compile/941014-3.c: Likewise. * gcc.c-torture/compile/941014-4.c: Likewise. * gcc.c-torture/compile/941111-1.c: Likewise. * gcc.c-torture/compile/941113-1.c: Likewise. * gcc.c-torture/compile/950124-1.c: Likewise. * gcc.c-torture/compile/950329-1.c: Likewise. * gcc.c-torture/compile/950612-1.c: Likewise. * gcc.c-torture/compile/950618-1.c: Likewise. * gcc.c-torture/compile/950719-1.c: Likewise. * gcc.c-torture/compile/950910-1.c: Likewise. * gcc.c-torture/compile/950922-1.c: Likewise. * gcc.c-torture/compile/951106-1.c: Likewise. * gcc.c-torture/compile/951222-1.c: Likewise. * gcc.c-torture/compile/960106-1.c: Likewise. * gcc.c-torture/compile/960319-1.c: Likewise. * gcc.c-torture/compile/960829-1.c: Likewise. * gcc.c-torture/compile/970206-1.c: Likewise. * gcc.c-torture/compile/980825-1.c: Likewise. * gcc.c-torture/compile/990829-1.c: Likewise. * gcc.c-torture/compile/991213-2.c: Likewise. --- gcc/testsuite/gcc.c-torture/compile/20000403-1.c | 1 + gcc/testsuite/gcc.c-torture/compile/20000511-1.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/20000804-1.c | 1 + gcc/testsuite/gcc.c-torture/compile/20020418-1.c | 1 + gcc/testsuite/gcc.c-torture/compile/20020927-1.c | 1 + gcc/testsuite/gcc.c-torture/compile/20030109-1.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/20030224-1.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/20030415-1.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/20030612-1.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/20030917-1.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/20031113-1.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/20031220-2.c | 1 + gcc/testsuite/gcc.c-torture/compile/20040309-1.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/20040310-1.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/20040317-3.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/20040817-1.c | 1 + gcc/testsuite/gcc.c-torture/compile/20091215-1.c | 1 + gcc/testsuite/gcc.c-torture/compile/86.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/900216-1.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/900313-1.c | 1 + gcc/testsuite/gcc.c-torture/compile/900407-1.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/900516-1.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/920409-2.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/920415-1.c | 1 + gcc/testsuite/gcc.c-torture/compile/920428-1.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/920428-5.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/920428-7.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/920501-1.c | 1 + gcc/testsuite/gcc.c-torture/compile/920501-13.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/920501-15.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/920501-16.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/920501-18.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/920501-20.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/920501-6.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/920501-7.c | 1 + gcc/testsuite/gcc.c-torture/compile/920502-1.c | 1 + gcc/testsuite/gcc.c-torture/compile/920502-2.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/920520-1.c | 1 + gcc/testsuite/gcc.c-torture/compile/920521-1.c | 1 + gcc/testsuite/gcc.c-torture/compile/920608-1.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/920617-1.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/920617-2.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/920625-1.c | 1 + gcc/testsuite/gcc.c-torture/compile/920625-2.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/920626-1.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/920706-1.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/920710-2.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/920723-1.c | 1 + gcc/testsuite/gcc.c-torture/compile/920808-1.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/920809-1.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/920817-1.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/920831-1.c | 1 + gcc/testsuite/gcc.c-torture/compile/920917-1.c | 1 + gcc/testsuite/gcc.c-torture/compile/920928-2.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/920928-5.c | 1 + gcc/testsuite/gcc.c-torture/compile/921012-1.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/921021-1.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/921024-1.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/921103-1.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/921109-1.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/921111-1.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/921116-2.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/921118-1.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/921202-1.c | 1 + gcc/testsuite/gcc.c-torture/compile/921202-2.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/921203-1.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/921203-2.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/921206-1.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/930109-1.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/930111-1.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/930117-1.c | 1 + gcc/testsuite/gcc.c-torture/compile/930118-1.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/930120-1.c | 1 + gcc/testsuite/gcc.c-torture/compile/930217-1.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/930325-1.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/930411-1.c | 1 + gcc/testsuite/gcc.c-torture/compile/930427-2.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/930503-2.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/930506-2.c | 1 + gcc/testsuite/gcc.c-torture/compile/930513-2.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/930530-1.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/930602-1.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/930618-1.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/930623-1.c | 1 + gcc/testsuite/gcc.c-torture/compile/931003-1.c | 1 + gcc/testsuite/gcc.c-torture/compile/931013-1.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/931013-2.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/931102-2.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/931203-1.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/940718-1.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/941014-1.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/941014-2.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/941014-3.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/941014-4.c | 1 + gcc/testsuite/gcc.c-torture/compile/941111-1.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/941113-1.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/950124-1.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/950329-1.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/950612-1.c | 3 +++ gcc/testsuite/gcc.c-torture/compile/950618-1.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/950719-1.c | 1 + gcc/testsuite/gcc.c-torture/compile/950910-1.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/950922-1.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/951106-1.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/951222-1.c | 1 + gcc/testsuite/gcc.c-torture/compile/960106-1.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/960319-1.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/960829-1.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/970206-1.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/980825-1.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/990829-1.c | 2 ++ gcc/testsuite/gcc.c-torture/compile/991213-2.c | 1 + 112 files changed, 195 insertions(+) base-commit: 8f4bbdc28df6e87a7ad5ec5ca191a7a836a4f016 diff --git a/gcc/testsuite/gcc.c-torture/compile/20000403-1.c b/gcc/testsuite/gcc.c-torture/compile/20000403-1.c index cb56028fb8b..ef8f77d3d9b 100644 --- a/gcc/testsuite/gcc.c-torture/compile/20000403-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/20000403-1.c @@ -1,4 +1,5 @@ /* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */ +/* { dg-additional-options "-std=gnu89" } */ struct utsname { char sysname[32 ]; diff --git a/gcc/testsuite/gcc.c-torture/compile/20000511-1.c b/gcc/testsuite/gcc.c-torture/compile/20000511-1.c index 11c131522e6..cbabe2fde1c 100644 --- a/gcc/testsuite/gcc.c-torture/compile/20000511-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/20000511-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + typedef struct { char y; char x[32]; diff --git a/gcc/testsuite/gcc.c-torture/compile/20000804-1.c b/gcc/testsuite/gcc.c-torture/compile/20000804-1.c index 95bb0fafd70..c6f6497b7a7 100644 --- a/gcc/testsuite/gcc.c-torture/compile/20000804-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/20000804-1.c @@ -8,6 +8,7 @@ /* { dg-xfail-if "Inconsistent constraint on asm" { bpf-*-* } { "-O0" } { "" } } */ /* { dg-xfail-if "" { h8300-*-* } } */ /* { dg-require-stack-size "99*4+16" } */ +/* { dg-additional-options "-std=gnu89" } */ /* Copyright (C) 2000, 2003 Free Software Foundation */ __complex__ long long f () diff --git a/gcc/testsuite/gcc.c-torture/compile/20020418-1.c b/gcc/testsuite/gcc.c-torture/compile/20020418-1.c index df01e6847e3..ee70a284580 100644 --- a/gcc/testsuite/gcc.c-torture/compile/20020418-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/20020418-1.c @@ -3,6 +3,7 @@ was assigned a hard register only after expand_null_return was called, thus return pseudo was clobbered twice and the hard register not at all. */ +/* { dg-additional-options "-std=gnu89" } */ void baz (void); diff --git a/gcc/testsuite/gcc.c-torture/compile/20020927-1.c b/gcc/testsuite/gcc.c-torture/compile/20020927-1.c index b93d8a18d5e..15b078728fa 100644 --- a/gcc/testsuite/gcc.c-torture/compile/20020927-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/20020927-1.c @@ -1,6 +1,7 @@ /* PR optimization/7520 */ /* ICE at -O3 on x86 due to register life problems caused by the return-without-value in bar. */ +/* { dg-additional-options "-std=gnu89" } */ int foo () diff --git a/gcc/testsuite/gcc.c-torture/compile/20030109-1.c b/gcc/testsuite/gcc.c-torture/compile/20030109-1.c index 4df7d18721a..cee438181cb 100644 --- a/gcc/testsuite/gcc.c-torture/compile/20030109-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/20030109-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + void foo () { int x1, x2, x3; diff --git a/gcc/testsuite/gcc.c-torture/compile/20030224-1.c b/gcc/testsuite/gcc.c-torture/compile/20030224-1.c index 11bc3af9fc6..10c461998db 100644 --- a/gcc/testsuite/gcc.c-torture/compile/20030224-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/20030224-1.c @@ -1,4 +1,6 @@ /* { dg-require-effective-target alloca } */ +/* { dg-additional-options "-std=gnu89" } */ + void zzz (char *s1, char *s2, int len, int *q) { int z = 5; diff --git a/gcc/testsuite/gcc.c-torture/compile/20030415-1.c b/gcc/testsuite/gcc.c-torture/compile/20030415-1.c index bcca4c85dc6..733e0d7fe8f 100644 --- a/gcc/testsuite/gcc.c-torture/compile/20030415-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/20030415-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + float g(float f) { return fabs(f); diff --git a/gcc/testsuite/gcc.c-torture/compile/20030612-1.c b/gcc/testsuite/gcc.c-torture/compile/20030612-1.c index 8edbd92bd47..1da81183d6c 100644 --- a/gcc/testsuite/gcc.c-torture/compile/20030612-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/20030612-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + static inline void foo (long long const v0, long long const v1) { diff --git a/gcc/testsuite/gcc.c-torture/compile/20030917-1.c b/gcc/testsuite/gcc.c-torture/compile/20030917-1.c index 38b6598af14..fa38025a740 100644 --- a/gcc/testsuite/gcc.c-torture/compile/20030917-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/20030917-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + typedef struct string STR; typedef struct atbl ARRAY; struct string { diff --git a/gcc/testsuite/gcc.c-torture/compile/20031113-1.c b/gcc/testsuite/gcc.c-torture/compile/20031113-1.c index 74c031c3d86..15c2cd54eb0 100644 --- a/gcc/testsuite/gcc.c-torture/compile/20031113-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/20031113-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + /* On Darwin, the stub for simple_cst_equal was not being emitted at all causing the as to die and not create an object file. */ diff --git a/gcc/testsuite/gcc.c-torture/compile/20031220-2.c b/gcc/testsuite/gcc.c-torture/compile/20031220-2.c index 45c82779400..6f53079332c 100644 --- a/gcc/testsuite/gcc.c-torture/compile/20031220-2.c +++ b/gcc/testsuite/gcc.c-torture/compile/20031220-2.c @@ -2,6 +2,7 @@ Orgin: Matt Thomas This used to cause GCC to write out an instruction for i386 when using a L64 host which gas could not handle because GCC would write a full 64bit hex string out. */ +/* { dg-additional-options "-std=gnu89" } */ float fabsf (float); diff --git a/gcc/testsuite/gcc.c-torture/compile/20040309-1.c b/gcc/testsuite/gcc.c-torture/compile/20040309-1.c index df8390f207b..d6ed37698c6 100644 --- a/gcc/testsuite/gcc.c-torture/compile/20040309-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/20040309-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + static const char default_tupleseps[] = ", \t"; diff --git a/gcc/testsuite/gcc.c-torture/compile/20040310-1.c b/gcc/testsuite/gcc.c-torture/compile/20040310-1.c index f0c85f0ada5..d7f4b10e1d4 100644 --- a/gcc/testsuite/gcc.c-torture/compile/20040310-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/20040310-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + void I_wacom () { char buffer[50], *p; diff --git a/gcc/testsuite/gcc.c-torture/compile/20040317-3.c b/gcc/testsuite/gcc.c-torture/compile/20040317-3.c index e6982c3e3b3..975717588ad 100644 --- a/gcc/testsuite/gcc.c-torture/compile/20040317-3.c +++ b/gcc/testsuite/gcc.c-torture/compile/20040317-3.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + I_wacom () { char buffer[50], *p; diff --git a/gcc/testsuite/gcc.c-torture/compile/20040817-1.c b/gcc/testsuite/gcc.c-torture/compile/20040817-1.c index 158596c8f2d..c99fc3372a7 100644 --- a/gcc/testsuite/gcc.c-torture/compile/20040817-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/20040817-1.c @@ -1,4 +1,5 @@ /* PR 17051: SRA failed to rename the VOPS properly. */ +/* { dg-additional-options "-std=gnu89" } */ struct A { diff --git a/gcc/testsuite/gcc.c-torture/compile/20091215-1.c b/gcc/testsuite/gcc.c-torture/compile/20091215-1.c index 1df5098fdb6..017bb1e438a 100644 --- a/gcc/testsuite/gcc.c-torture/compile/20091215-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/20091215-1.c @@ -1,4 +1,5 @@ /* { dg-require-effective-target untyped_assembly } */ +/* { dg-additional-options "-std=gnu89" } */ void bar (); diff --git a/gcc/testsuite/gcc.c-torture/compile/86.c b/gcc/testsuite/gcc.c-torture/compile/86.c index deea85ee2f4..6b0017d0ee9 100644 --- a/gcc/testsuite/gcc.c-torture/compile/86.c +++ b/gcc/testsuite/gcc.c-torture/compile/86.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + m32 (a) int *a; { diff --git a/gcc/testsuite/gcc.c-torture/compile/900216-1.c b/gcc/testsuite/gcc.c-torture/compile/900216-1.c index 8a4bfb74e78..8796599af54 100644 --- a/gcc/testsuite/gcc.c-torture/compile/900216-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/900216-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (p, a, b) unsigned short *p; { diff --git a/gcc/testsuite/gcc.c-torture/compile/900313-1.c b/gcc/testsuite/gcc.c-torture/compile/900313-1.c index 12252b4b229..82552dc9e6d 100644 --- a/gcc/testsuite/gcc.c-torture/compile/900313-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/900313-1.c @@ -1,5 +1,6 @@ /* { dg-require-effective-target alloca } */ /* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */ +/* { dg-additional-options "-std=gnu89" } */ main () { diff --git a/gcc/testsuite/gcc.c-torture/compile/900407-1.c b/gcc/testsuite/gcc.c-torture/compile/900407-1.c index fdf47791cd7..07cbe0774b5 100644 --- a/gcc/testsuite/gcc.c-torture/compile/900407-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/900407-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a, b, p) int *p; { diff --git a/gcc/testsuite/gcc.c-torture/compile/900516-1.c b/gcc/testsuite/gcc.c-torture/compile/900516-1.c index 69e96144745..b51b870208e 100644 --- a/gcc/testsuite/gcc.c-torture/compile/900516-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/900516-1.c @@ -1 +1,3 @@ +/* { dg-additional-options "-std=gnu89" } */ + f(c){return!(c?2.0:1.0);} diff --git a/gcc/testsuite/gcc.c-torture/compile/920409-2.c b/gcc/testsuite/gcc.c-torture/compile/920409-2.c index ef2bdb8b7e7..b6b86869943 100644 --- a/gcc/testsuite/gcc.c-torture/compile/920409-2.c +++ b/gcc/testsuite/gcc.c-torture/compile/920409-2.c @@ -1,2 +1,4 @@ +/* { dg-additional-options "-std=gnu89" } */ + double x(){int x1,x2;double v; if(((long)(x1-x2))<1)return -1.0;v=t(v);v=y(1,v>0.0?(int)v:((int)v-1));} diff --git a/gcc/testsuite/gcc.c-torture/compile/920415-1.c b/gcc/testsuite/gcc.c-torture/compile/920415-1.c index 96ac7fe9be4..261020a0ea7 100644 --- a/gcc/testsuite/gcc.c-torture/compile/920415-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/920415-1.c @@ -1,5 +1,6 @@ /* { dg-require-effective-target indirect_jumps } */ /* { dg-require-effective-target label_values } */ +/* { dg-additional-options "-std=gnu89" } */ extern void abort (void); extern void exit (int); diff --git a/gcc/testsuite/gcc.c-torture/compile/920428-1.c b/gcc/testsuite/gcc.c-torture/compile/920428-1.c index fdc478a382c..32b17cbc538 100644 --- a/gcc/testsuite/gcc.c-torture/compile/920428-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/920428-1.c @@ -1 +1,3 @@ +/* { dg-additional-options "-std=gnu89" } */ + x(){char*q;return(long)q>>8&0xff;} diff --git a/gcc/testsuite/gcc.c-torture/compile/920428-5.c b/gcc/testsuite/gcc.c-torture/compile/920428-5.c index ff313799280..4aa4f60086e 100644 --- a/gcc/testsuite/gcc.c-torture/compile/920428-5.c +++ b/gcc/testsuite/gcc.c-torture/compile/920428-5.c @@ -1 +1,3 @@ +/* { dg-additional-options "-std=gnu89" } */ + typedef struct{unsigned b0:1;}*t;x(a,b)t a,b;{b->b0=a->b0;} diff --git a/gcc/testsuite/gcc.c-torture/compile/920428-7.c b/gcc/testsuite/gcc.c-torture/compile/920428-7.c index 69b1d979aa9..47da940247c 100644 --- a/gcc/testsuite/gcc.c-torture/compile/920428-7.c +++ b/gcc/testsuite/gcc.c-torture/compile/920428-7.c @@ -1 +1,3 @@ +/* { dg-additional-options "-std=gnu89" } */ + x(float*x){int a[4],i=0,j;for(j=0;j<2;j++){f(a[i++]);f(a[i++]);}} diff --git a/gcc/testsuite/gcc.c-torture/compile/920501-1.c b/gcc/testsuite/gcc.c-torture/compile/920501-1.c index 84cc122070b..6215852810e 100644 --- a/gcc/testsuite/gcc.c-torture/compile/920501-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/920501-1.c @@ -1,3 +1,4 @@ /* { dg-require-effective-target label_values } */ +/* { dg-additional-options "-std=gnu89" } */ a(){int**b[]={&&c};c:;} diff --git a/gcc/testsuite/gcc.c-torture/compile/920501-13.c b/gcc/testsuite/gcc.c-torture/compile/920501-13.c index b5a6798ecc2..e7670e33ddb 100644 --- a/gcc/testsuite/gcc.c-torture/compile/920501-13.c +++ b/gcc/testsuite/gcc.c-torture/compile/920501-13.c @@ -1 +1,3 @@ +/* { dg-additional-options "-std=gnu89" } */ + typedef struct{int i;}t;inline y(t u){}x(){t u;y(u);} diff --git a/gcc/testsuite/gcc.c-torture/compile/920501-15.c b/gcc/testsuite/gcc.c-torture/compile/920501-15.c index 81fd66401d5..aaae9d34716 100644 --- a/gcc/testsuite/gcc.c-torture/compile/920501-15.c +++ b/gcc/testsuite/gcc.c-torture/compile/920501-15.c @@ -1 +1,3 @@ +/* { dg-additional-options "-std=gnu89" } */ + x(a)double a;{int i;return i>a?i:i+1;} diff --git a/gcc/testsuite/gcc.c-torture/compile/920501-16.c b/gcc/testsuite/gcc.c-torture/compile/920501-16.c index f82b7524b24..732ef0f6e28 100644 --- a/gcc/testsuite/gcc.c-torture/compile/920501-16.c +++ b/gcc/testsuite/gcc.c-torture/compile/920501-16.c @@ -1 +1,3 @@ +/* { dg-additional-options "-std=gnu89" } */ + f(n){struct z{int a,b[n],c[n];};} diff --git a/gcc/testsuite/gcc.c-torture/compile/920501-18.c b/gcc/testsuite/gcc.c-torture/compile/920501-18.c index 70f7c0af505..e2110b7bade 100644 --- a/gcc/testsuite/gcc.c-torture/compile/920501-18.c +++ b/gcc/testsuite/gcc.c-torture/compile/920501-18.c @@ -1,2 +1,4 @@ +/* { dg-additional-options "-std=gnu89" } */ + union u{int i;float f;}; x(p)int p;{union u x;for(x.i=0;x.i(float)3.0)break;} diff --git a/gcc/testsuite/gcc.c-torture/compile/920501-20.c b/gcc/testsuite/gcc.c-torture/compile/920501-20.c index 170d0501761..dcbb039cc88 100644 --- a/gcc/testsuite/gcc.c-torture/compile/920501-20.c +++ b/gcc/testsuite/gcc.c-torture/compile/920501-20.c @@ -1 +1,3 @@ +/* { dg-additional-options "-std=gnu89" } */ + int*f(x)int*x;{if(x[4]){int h[1];if(setjmp(h))return x;}} diff --git a/gcc/testsuite/gcc.c-torture/compile/920501-6.c b/gcc/testsuite/gcc.c-torture/compile/920501-6.c index d0a406381ff..dcf00efef9b 100644 --- a/gcc/testsuite/gcc.c-torture/compile/920501-6.c +++ b/gcc/testsuite/gcc.c-torture/compile/920501-6.c @@ -1 +1,3 @@ +/* { dg-additional-options "-std=gnu89" } */ + x(y,z)float*y;{*y=z;} diff --git a/gcc/testsuite/gcc.c-torture/compile/920501-7.c b/gcc/testsuite/gcc.c-torture/compile/920501-7.c index 0fac5f3495f..08b85359a09 100644 --- a/gcc/testsuite/gcc.c-torture/compile/920501-7.c +++ b/gcc/testsuite/gcc.c-torture/compile/920501-7.c @@ -1,4 +1,5 @@ /* { dg-require-effective-target label_values } */ /* { dg-skip-if "no support for indirect jumps" { bpf-*-* } } */ +/* { dg-additional-options "-std=gnu89" } */ x(){if(&&e-&&b<0)x();b:goto*&&b;e:;} diff --git a/gcc/testsuite/gcc.c-torture/compile/920502-1.c b/gcc/testsuite/gcc.c-torture/compile/920502-1.c index ec2405a7b63..7156702a172 100644 --- a/gcc/testsuite/gcc.c-torture/compile/920502-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/920502-1.c @@ -1,3 +1,4 @@ /* { dg-require-effective-target indirect_jumps } */ +/* { dg-additional-options "-std=gnu89" } */ extern void*t[];x(i){goto*t[i];} diff --git a/gcc/testsuite/gcc.c-torture/compile/920502-2.c b/gcc/testsuite/gcc.c-torture/compile/920502-2.c index d3aa1e26d81..20c2f6ee5ff 100644 --- a/gcc/testsuite/gcc.c-torture/compile/920502-2.c +++ b/gcc/testsuite/gcc.c-torture/compile/920502-2.c @@ -1 +1,3 @@ +/* { dg-additional-options "-std=gnu89" } */ + x(c){1LL<>-5;} diff --git a/gcc/testsuite/gcc.c-torture/compile/920706-1.c b/gcc/testsuite/gcc.c-torture/compile/920706-1.c index 13b0ff1e0ba..b5e4fa02189 100644 --- a/gcc/testsuite/gcc.c-torture/compile/920706-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/920706-1.c @@ -1 +1,3 @@ +/* { dg-additional-options "-std=gnu89" } */ + f(){float i[2],o[1];g(o);return*o;} diff --git a/gcc/testsuite/gcc.c-torture/compile/920710-2.c b/gcc/testsuite/gcc.c-torture/compile/920710-2.c index dcaf1bea3cf..782bac654cf 100644 --- a/gcc/testsuite/gcc.c-torture/compile/920710-2.c +++ b/gcc/testsuite/gcc.c-torture/compile/920710-2.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + union u { struct {unsigned h, l;} i; diff --git a/gcc/testsuite/gcc.c-torture/compile/920723-1.c b/gcc/testsuite/gcc.c-torture/compile/920723-1.c index 2d778759e13..4295124231a 100644 --- a/gcc/testsuite/gcc.c-torture/compile/920723-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/920723-1.c @@ -1,5 +1,6 @@ /* { dg-add-options stack_size } */ /* { dg-require-stack-size "75*75*4" } */ +/* { dg-additional-options "-std=gnu89" } */ #if defined(STACK_SIZE) && STACK_SIZE < 65536 # define GITT_SIZE 75 diff --git a/gcc/testsuite/gcc.c-torture/compile/920808-1.c b/gcc/testsuite/gcc.c-torture/compile/920808-1.c index 17510a96821..72b8e307183 100644 --- a/gcc/testsuite/gcc.c-torture/compile/920808-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/920808-1.c @@ -1 +1,3 @@ +/* { dg-additional-options "-std=gnu89" } */ + f(i){for(i=1;i<=2;({;}),i++){({;}),g();}} diff --git a/gcc/testsuite/gcc.c-torture/compile/920809-1.c b/gcc/testsuite/gcc.c-torture/compile/920809-1.c index ad35e121003..fe5af522b89 100644 --- a/gcc/testsuite/gcc.c-torture/compile/920809-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/920809-1.c @@ -1 +1,3 @@ +/* { dg-additional-options "-std=gnu89" } */ + f(x,y){memcpy (&x,&y,8192);} diff --git a/gcc/testsuite/gcc.c-torture/compile/920817-1.c b/gcc/testsuite/gcc.c-torture/compile/920817-1.c index 31a57339ea9..be807309625 100644 --- a/gcc/testsuite/gcc.c-torture/compile/920817-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/920817-1.c @@ -1 +1,3 @@ +/* { dg-additional-options "-std=gnu89" } */ + int v;static inline f(){return 0;}g(){return f();}void h(){return v++;} diff --git a/gcc/testsuite/gcc.c-torture/compile/920831-1.c b/gcc/testsuite/gcc.c-torture/compile/920831-1.c index 945c521292f..c990e087bb3 100644 --- a/gcc/testsuite/gcc.c-torture/compile/920831-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/920831-1.c @@ -1,3 +1,4 @@ /* { dg-require-effective-target indirect_jumps } */ +/* { dg-additional-options "-std=gnu89" } */ f(x){goto*(void *)x;} diff --git a/gcc/testsuite/gcc.c-torture/compile/920917-1.c b/gcc/testsuite/gcc.c-torture/compile/920917-1.c index 139f60e6f5e..28e52119966 100644 --- a/gcc/testsuite/gcc.c-torture/compile/920917-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/920917-1.c @@ -1,4 +1,5 @@ /* { dg-require-effective-target untyped_assembly } */ +/* { dg-additional-options "-std=gnu89" } */ inline f(x){switch(x){case 6:case 4:case 3:case 1:;}return x;} g(){f(sizeof("xxxxxx"));} diff --git a/gcc/testsuite/gcc.c-torture/compile/920928-2.c b/gcc/testsuite/gcc.c-torture/compile/920928-2.c index a0964f90f44..ba7c868f072 100644 --- a/gcc/testsuite/gcc.c-torture/compile/920928-2.c +++ b/gcc/testsuite/gcc.c-torture/compile/920928-2.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + typedef struct{struct{char*d;int b;}*i;}*t; double f(); g(p)t p; diff --git a/gcc/testsuite/gcc.c-torture/compile/920928-5.c b/gcc/testsuite/gcc.c-torture/compile/920928-5.c index b9f9dcbaeb0..f38c7cdafe0 100644 --- a/gcc/testsuite/gcc.c-torture/compile/920928-5.c +++ b/gcc/testsuite/gcc.c-torture/compile/920928-5.c @@ -1,6 +1,7 @@ /* REPRODUCED:CC1:SIGNAL MACHINE:m68k OPTIONS:-fpcc-struct-return */ /* { dg-require-effective-target indirect_calls } */ +/* { dg-additional-options "-std=gnu89" } */ struct b{}; f(struct b(*f)()) diff --git a/gcc/testsuite/gcc.c-torture/compile/921012-1.c b/gcc/testsuite/gcc.c-torture/compile/921012-1.c index 7b5cb6b9f17..4f7d797343d 100644 --- a/gcc/testsuite/gcc.c-torture/compile/921012-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/921012-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + f() { g(({int x;0;})); diff --git a/gcc/testsuite/gcc.c-torture/compile/921021-1.c b/gcc/testsuite/gcc.c-torture/compile/921021-1.c index 18dffeb9dd3..2cd6de53d1c 100644 --- a/gcc/testsuite/gcc.c-torture/compile/921021-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/921021-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + void g(); f() diff --git a/gcc/testsuite/gcc.c-torture/compile/921024-1.c b/gcc/testsuite/gcc.c-torture/compile/921024-1.c index e723246d6b2..0d5ff956122 100644 --- a/gcc/testsuite/gcc.c-torture/compile/921024-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/921024-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + long long f(s,r) { return *(long long*)(s+r); diff --git a/gcc/testsuite/gcc.c-torture/compile/921103-1.c b/gcc/testsuite/gcc.c-torture/compile/921103-1.c index 578e91aaf83..0dbb9cc5308 100644 --- a/gcc/testsuite/gcc.c-torture/compile/921103-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/921103-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + struct { unsigned int f1, f2; } s; diff --git a/gcc/testsuite/gcc.c-torture/compile/921109-1.c b/gcc/testsuite/gcc.c-torture/compile/921109-1.c index eda43451f25..be04e6894da 100644 --- a/gcc/testsuite/gcc.c-torture/compile/921109-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/921109-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + typedef struct { double x, y; } p; typedef struct { int s; float r; } t; t *e, i; diff --git a/gcc/testsuite/gcc.c-torture/compile/921111-1.c b/gcc/testsuite/gcc.c-torture/compile/921111-1.c index 11b467460b3..798afe6fc47 100644 --- a/gcc/testsuite/gcc.c-torture/compile/921111-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/921111-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + int ps; struct vp { int wa; diff --git a/gcc/testsuite/gcc.c-torture/compile/921116-2.c b/gcc/testsuite/gcc.c-torture/compile/921116-2.c index 9eac91cb5c2..49b4d4fd6c9 100644 --- a/gcc/testsuite/gcc.c-torture/compile/921116-2.c +++ b/gcc/testsuite/gcc.c-torture/compile/921116-2.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + typedef struct { long l[5]; } t; diff --git a/gcc/testsuite/gcc.c-torture/compile/921118-1.c b/gcc/testsuite/gcc.c-torture/compile/921118-1.c index 857c74e74f1..d45fdf4118c 100644 --- a/gcc/testsuite/gcc.c-torture/compile/921118-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/921118-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + inline f(i) { h((long long) i * 2); diff --git a/gcc/testsuite/gcc.c-torture/compile/921202-1.c b/gcc/testsuite/gcc.c-torture/compile/921202-1.c index d97ddf6144e..83a3ad4f81c 100644 --- a/gcc/testsuite/gcc.c-torture/compile/921202-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/921202-1.c @@ -1,4 +1,5 @@ /* { dg-require-stack-size "2055*3*8" } */ +/* { dg-additional-options "-std=gnu89" } */ f () { diff --git a/gcc/testsuite/gcc.c-torture/compile/921202-2.c b/gcc/testsuite/gcc.c-torture/compile/921202-2.c index 97d482b633c..2ad14402b33 100644 --- a/gcc/testsuite/gcc.c-torture/compile/921202-2.c +++ b/gcc/testsuite/gcc.c-torture/compile/921202-2.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + f(x, c) { for (;;) diff --git a/gcc/testsuite/gcc.c-torture/compile/921203-1.c b/gcc/testsuite/gcc.c-torture/compile/921203-1.c index 50fe3eb0b6f..5e60541f337 100644 --- a/gcc/testsuite/gcc.c-torture/compile/921203-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/921203-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + char dispstr[]; f() { diff --git a/gcc/testsuite/gcc.c-torture/compile/921203-2.c b/gcc/testsuite/gcc.c-torture/compile/921203-2.c index 929afb1bdde..88b22c884e9 100644 --- a/gcc/testsuite/gcc.c-torture/compile/921203-2.c +++ b/gcc/testsuite/gcc.c-torture/compile/921203-2.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + typedef struct { char x; diff --git a/gcc/testsuite/gcc.c-torture/compile/921206-1.c b/gcc/testsuite/gcc.c-torture/compile/921206-1.c index 10fa5ea6479..4e9c3e0bab2 100644 --- a/gcc/testsuite/gcc.c-torture/compile/921206-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/921206-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + double sqrt(double),fabs(double),sin(double); int sxs; int sys; diff --git a/gcc/testsuite/gcc.c-torture/compile/930109-1.c b/gcc/testsuite/gcc.c-torture/compile/930109-1.c index dbd15a1bd0a..e5ce10ee571 100644 --- a/gcc/testsuite/gcc.c-torture/compile/930109-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/930109-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + f(x) unsigned x; { diff --git a/gcc/testsuite/gcc.c-torture/compile/930111-1.c b/gcc/testsuite/gcc.c-torture/compile/930111-1.c index 28574191d13..5661cdf3219 100644 --- a/gcc/testsuite/gcc.c-torture/compile/930111-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/930111-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + /* 2.3.3 crashes on 386 with -traditional */ f(a) char *a; diff --git a/gcc/testsuite/gcc.c-torture/compile/930117-1.c b/gcc/testsuite/gcc.c-torture/compile/930117-1.c index 06466f5e587..d8a023c5849 100644 --- a/gcc/testsuite/gcc.c-torture/compile/930117-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/930117-1.c @@ -1,4 +1,5 @@ /* { dg-require-effective-target indirect_calls } */ +/* { dg-additional-options "-std=gnu89" } */ f(x) { diff --git a/gcc/testsuite/gcc.c-torture/compile/930118-1.c b/gcc/testsuite/gcc.c-torture/compile/930118-1.c index b29543c529e..e1dbc1fbb5b 100644 --- a/gcc/testsuite/gcc.c-torture/compile/930118-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/930118-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + f() { __label__ l; diff --git a/gcc/testsuite/gcc.c-torture/compile/930120-1.c b/gcc/testsuite/gcc.c-torture/compile/930120-1.c index a1d8df87c4b..c4fd6a48241 100644 --- a/gcc/testsuite/gcc.c-torture/compile/930120-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/930120-1.c @@ -1,4 +1,5 @@ /* { dg-require-effective-target untyped_assembly } */ +/* { dg-additional-options "-std=gnu89" } */ union { short I[2]; long int L; diff --git a/gcc/testsuite/gcc.c-torture/compile/930217-1.c b/gcc/testsuite/gcc.c-torture/compile/930217-1.c index 0f64a040712..cdad9f51e47 100644 --- a/gcc/testsuite/gcc.c-torture/compile/930217-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/930217-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + /* The bit-field below would have a problem if __INT_MAX__ is too small. */ #if __INT_MAX__ < 2147483647 diff --git a/gcc/testsuite/gcc.c-torture/compile/930325-1.c b/gcc/testsuite/gcc.c-torture/compile/930325-1.c index 24cea5027ab..f493d49d9fe 100644 --- a/gcc/testsuite/gcc.c-torture/compile/930325-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/930325-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + typedef unsigned uint; inline diff --git a/gcc/testsuite/gcc.c-torture/compile/930411-1.c b/gcc/testsuite/gcc.c-torture/compile/930411-1.c index 6dd87eefc7c..cf1a17136e7 100644 --- a/gcc/testsuite/gcc.c-torture/compile/930411-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/930411-1.c @@ -1,4 +1,5 @@ /* { dg-require-effective-target untyped_assembly } */ +/* { dg-additional-options "-std=gnu89" } */ int heap; diff --git a/gcc/testsuite/gcc.c-torture/compile/930427-2.c b/gcc/testsuite/gcc.c-torture/compile/930427-2.c index 53b633785ae..ad084ca7669 100644 --- a/gcc/testsuite/gcc.c-torture/compile/930427-2.c +++ b/gcc/testsuite/gcc.c-torture/compile/930427-2.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + struct s { int f; }; diff --git a/gcc/testsuite/gcc.c-torture/compile/930503-2.c b/gcc/testsuite/gcc.c-torture/compile/930503-2.c index 1b0ea34f038..7eb58f8a3b8 100644 --- a/gcc/testsuite/gcc.c-torture/compile/930503-2.c +++ b/gcc/testsuite/gcc.c-torture/compile/930503-2.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + f() { struct { char x; } r; diff --git a/gcc/testsuite/gcc.c-torture/compile/930506-2.c b/gcc/testsuite/gcc.c-torture/compile/930506-2.c index bc982acffba..aa56fe5f463 100644 --- a/gcc/testsuite/gcc.c-torture/compile/930506-2.c +++ b/gcc/testsuite/gcc.c-torture/compile/930506-2.c @@ -1,4 +1,5 @@ /* { dg-require-effective-target trampolines } */ +/* { dg-additional-options "-std=gnu89" } */ int f1() { diff --git a/gcc/testsuite/gcc.c-torture/compile/930513-2.c b/gcc/testsuite/gcc.c-torture/compile/930513-2.c index a7f508c8266..d81ae058699 100644 --- a/gcc/testsuite/gcc.c-torture/compile/930513-2.c +++ b/gcc/testsuite/gcc.c-torture/compile/930513-2.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + double g (); f (x) diff --git a/gcc/testsuite/gcc.c-torture/compile/930530-1.c b/gcc/testsuite/gcc.c-torture/compile/930530-1.c index 848e0400ece..6d07c98ad59 100644 --- a/gcc/testsuite/gcc.c-torture/compile/930530-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/930530-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + f () { struct { char a, b; } x; diff --git a/gcc/testsuite/gcc.c-torture/compile/930602-1.c b/gcc/testsuite/gcc.c-torture/compile/930602-1.c index 5a0eb2189ba..3045e4072cd 100644 --- a/gcc/testsuite/gcc.c-torture/compile/930602-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/930602-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + typedef struct { int f[8]; } T; diff --git a/gcc/testsuite/gcc.c-torture/compile/930618-1.c b/gcc/testsuite/gcc.c-torture/compile/930618-1.c index 74c21572550..fa728f257e8 100644 --- a/gcc/testsuite/gcc.c-torture/compile/930618-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/930618-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + f (s) { int r; diff --git a/gcc/testsuite/gcc.c-torture/compile/930623-1.c b/gcc/testsuite/gcc.c-torture/compile/930623-1.c index dd45bbccc38..7736fa95e5b 100644 --- a/gcc/testsuite/gcc.c-torture/compile/930623-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/930623-1.c @@ -1,5 +1,6 @@ /* { dg-require-effective-target untyped_assembly } */ /* { dg-skip-if "no __builtin_apply in eBPF" { bpf-*-* } } */ +/* { dg-additional-options "-std=gnu89" } */ g (a, b) {} diff --git a/gcc/testsuite/gcc.c-torture/compile/931003-1.c b/gcc/testsuite/gcc.c-torture/compile/931003-1.c index 637b9aa6d26..b14e92027dd 100644 --- a/gcc/testsuite/gcc.c-torture/compile/931003-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/931003-1.c @@ -1,4 +1,5 @@ /* { dg-require-stack-size "52*8" } */ +/* { dg-additional-options "-std=gnu89" } */ f (n, a) int n; diff --git a/gcc/testsuite/gcc.c-torture/compile/931013-1.c b/gcc/testsuite/gcc.c-torture/compile/931013-1.c index c237c0b7341..ab6138b22d0 100644 --- a/gcc/testsuite/gcc.c-torture/compile/931013-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/931013-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + g (); f () diff --git a/gcc/testsuite/gcc.c-torture/compile/931013-2.c b/gcc/testsuite/gcc.c-torture/compile/931013-2.c index 8fc0db492ab..8c78fdef7e3 100644 --- a/gcc/testsuite/gcc.c-torture/compile/931013-2.c +++ b/gcc/testsuite/gcc.c-torture/compile/931013-2.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + f (unsigned short Z[48]) { int j; diff --git a/gcc/testsuite/gcc.c-torture/compile/931102-2.c b/gcc/testsuite/gcc.c-torture/compile/931102-2.c index f39b271645d..10ba03f9890 100644 --- a/gcc/testsuite/gcc.c-torture/compile/931102-2.c +++ b/gcc/testsuite/gcc.c-torture/compile/931102-2.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + typedef struct { int a; } VCR; diff --git a/gcc/testsuite/gcc.c-torture/compile/931203-1.c b/gcc/testsuite/gcc.c-torture/compile/931203-1.c index 3007ff582e0..b4fef4e8da7 100644 --- a/gcc/testsuite/gcc.c-torture/compile/931203-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/931203-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + v (a, i) unsigned *a, i; { diff --git a/gcc/testsuite/gcc.c-torture/compile/940718-1.c b/gcc/testsuite/gcc.c-torture/compile/940718-1.c index 505280fa91e..82953b1a4e6 100644 --- a/gcc/testsuite/gcc.c-torture/compile/940718-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/940718-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + extern double log (double) __attribute__ ((const)); f (double x) diff --git a/gcc/testsuite/gcc.c-torture/compile/941014-1.c b/gcc/testsuite/gcc.c-torture/compile/941014-1.c index d31701572fc..760c8aadd5c 100644 --- a/gcc/testsuite/gcc.c-torture/compile/941014-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/941014-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + f (to) char *to; { diff --git a/gcc/testsuite/gcc.c-torture/compile/941014-2.c b/gcc/testsuite/gcc.c-torture/compile/941014-2.c index 01e9a672e88..c7ac0ac8ba8 100644 --- a/gcc/testsuite/gcc.c-torture/compile/941014-2.c +++ b/gcc/testsuite/gcc.c-torture/compile/941014-2.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + void f (n, ppt, xrot) { diff --git a/gcc/testsuite/gcc.c-torture/compile/941014-3.c b/gcc/testsuite/gcc.c-torture/compile/941014-3.c index 6dcb89395e3..db1ac6c3a0f 100644 --- a/gcc/testsuite/gcc.c-torture/compile/941014-3.c +++ b/gcc/testsuite/gcc.c-torture/compile/941014-3.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + typedef unsigned char byte; typedef unsigned int uint; typedef unsigned long ulong; diff --git a/gcc/testsuite/gcc.c-torture/compile/941014-4.c b/gcc/testsuite/gcc.c-torture/compile/941014-4.c index 9c4cec8b7a0..f7cdcc002ee 100644 --- a/gcc/testsuite/gcc.c-torture/compile/941014-4.c +++ b/gcc/testsuite/gcc.c-torture/compile/941014-4.c @@ -1,4 +1,5 @@ /* { dg-require-effective-target label_values } */ +/* { dg-additional-options "-std=gnu89" } */ f (int *re) { diff --git a/gcc/testsuite/gcc.c-torture/compile/941111-1.c b/gcc/testsuite/gcc.c-torture/compile/941111-1.c index 3f0c28bef12..22ed2c4d091 100644 --- a/gcc/testsuite/gcc.c-torture/compile/941111-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/941111-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + main () { struct S { int i; char c; } obj1, obj2; diff --git a/gcc/testsuite/gcc.c-torture/compile/941113-1.c b/gcc/testsuite/gcc.c-torture/compile/941113-1.c index 5c2e0b68c56..78f7c05ce12 100644 --- a/gcc/testsuite/gcc.c-torture/compile/941113-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/941113-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + typedef void foo (void); f (x) diff --git a/gcc/testsuite/gcc.c-torture/compile/950124-1.c b/gcc/testsuite/gcc.c-torture/compile/950124-1.c index e723954a0c1..1467e7a5a95 100644 --- a/gcc/testsuite/gcc.c-torture/compile/950124-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/950124-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + f () { if (g ()) diff --git a/gcc/testsuite/gcc.c-torture/compile/950329-1.c b/gcc/testsuite/gcc.c-torture/compile/950329-1.c index 63ec6b28120..adb3ad57fc1 100644 --- a/gcc/testsuite/gcc.c-torture/compile/950329-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/950329-1.c @@ -1,4 +1,6 @@ /* { dg-require-effective-target untyped_assembly } */ +/* { dg-additional-options "-std=gnu89" } */ + f () { int i; diff --git a/gcc/testsuite/gcc.c-torture/compile/950612-1.c b/gcc/testsuite/gcc.c-torture/compile/950612-1.c index cb3cb0a59d6..93e5e712b5d 100644 --- a/gcc/testsuite/gcc.c-torture/compile/950612-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/950612-1.c @@ -1,3 +1,6 @@ +/* { dg-additional-options "-std=gnu89" } */ + + typedef enum { LODI, diff --git a/gcc/testsuite/gcc.c-torture/compile/950618-1.c b/gcc/testsuite/gcc.c-torture/compile/950618-1.c index 4229da4e9bf..3b832865e0d 100644 --- a/gcc/testsuite/gcc.c-torture/compile/950618-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/950618-1.c @@ -1,2 +1,4 @@ +/* { dg-additional-options "-std=gnu89" } */ + static __inline__ int f () { return g (); } int g () { return f (); } diff --git a/gcc/testsuite/gcc.c-torture/compile/950719-1.c b/gcc/testsuite/gcc.c-torture/compile/950719-1.c index e1ac117daeb..ce5c7e157fa 100644 --- a/gcc/testsuite/gcc.c-torture/compile/950719-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/950719-1.c @@ -1,4 +1,5 @@ /* { dg-require-stack-size "4092+4" } */ +/* { dg-additional-options "-std=gnu89" } */ typedef struct { diff --git a/gcc/testsuite/gcc.c-torture/compile/950910-1.c b/gcc/testsuite/gcc.c-torture/compile/950910-1.c index 1be2aa55e68..75204bca651 100644 --- a/gcc/testsuite/gcc.c-torture/compile/950910-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/950910-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + f (char *p) { char c; diff --git a/gcc/testsuite/gcc.c-torture/compile/950922-1.c b/gcc/testsuite/gcc.c-torture/compile/950922-1.c index 73c52f7740a..ecd987e8952 100644 --- a/gcc/testsuite/gcc.c-torture/compile/950922-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/950922-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + struct sw { const void *x; int r; diff --git a/gcc/testsuite/gcc.c-torture/compile/951106-1.c b/gcc/testsuite/gcc.c-torture/compile/951106-1.c index 09cba20c1d0..ee3b261dd4b 100644 --- a/gcc/testsuite/gcc.c-torture/compile/951106-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/951106-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + f (double a, double b) { g (a, 0, b); diff --git a/gcc/testsuite/gcc.c-torture/compile/951222-1.c b/gcc/testsuite/gcc.c-torture/compile/951222-1.c index f1818e322cf..60a2969e120 100644 --- a/gcc/testsuite/gcc.c-torture/compile/951222-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/951222-1.c @@ -1,4 +1,5 @@ /* { dg-require-stack-size "10000+3*8" } */ +/* { dg-additional-options "-std=gnu89" } */ extern long long foo (); diff --git a/gcc/testsuite/gcc.c-torture/compile/960106-1.c b/gcc/testsuite/gcc.c-torture/compile/960106-1.c index c8228aab587..4f2f95de101 100644 --- a/gcc/testsuite/gcc.c-torture/compile/960106-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/960106-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + f (a) { return (a & 1) && !(a & 2 & 4); diff --git a/gcc/testsuite/gcc.c-torture/compile/960319-1.c b/gcc/testsuite/gcc.c-torture/compile/960319-1.c index f3d95ab6e8e..345f8b92a31 100644 --- a/gcc/testsuite/gcc.c-torture/compile/960319-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/960319-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + static void f() { diff --git a/gcc/testsuite/gcc.c-torture/compile/960829-1.c b/gcc/testsuite/gcc.c-torture/compile/960829-1.c index 8c6163dfaf0..8bd71b07772 100644 --- a/gcc/testsuite/gcc.c-torture/compile/960829-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/960829-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + f () { g (0, 0.0, 0.0, 0.0, 0.0); diff --git a/gcc/testsuite/gcc.c-torture/compile/970206-1.c b/gcc/testsuite/gcc.c-torture/compile/970206-1.c index 95196cd6a54..233d3305595 100644 --- a/gcc/testsuite/gcc.c-torture/compile/970206-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/970206-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + struct Rect { int iA; diff --git a/gcc/testsuite/gcc.c-torture/compile/980825-1.c b/gcc/testsuite/gcc.c-torture/compile/980825-1.c index 34e35bf83c4..4b3831c3a81 100644 --- a/gcc/testsuite/gcc.c-torture/compile/980825-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/980825-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + typedef enum { FALSE, TRUE } boolean; enum _errorTypes { FATAL = 1, WARNING = 2, PERROR = 4 }; typedef struct _optionValues { diff --git a/gcc/testsuite/gcc.c-torture/compile/990829-1.c b/gcc/testsuite/gcc.c-torture/compile/990829-1.c index 2252821938e..97579f073f1 100644 --- a/gcc/testsuite/gcc.c-torture/compile/990829-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/990829-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + struct x { int a:16; diff --git a/gcc/testsuite/gcc.c-torture/compile/991213-2.c b/gcc/testsuite/gcc.c-torture/compile/991213-2.c index dfbedf7d674..d5285305518 100644 --- a/gcc/testsuite/gcc.c-torture/compile/991213-2.c +++ b/gcc/testsuite/gcc.c-torture/compile/991213-2.c @@ -1,4 +1,5 @@ /* { dg-require-effective-target indirect_calls } */ +/* { dg-additional-options "-std=gnu89" } */ typedef long __kernel_time_t; typedef __kernel_time_t time_t;