From patchwork Wed Nov 8 10:19:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 162924 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:aa0b:0:b0:403:3b70:6f57 with SMTP id k11csp815428vqo; Wed, 8 Nov 2023 02:19:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IFkQgVVRCRP/dlLZCD+vrMqyz658qKrrAUXH9+PRFTUzmtKi1klrT0p8R0jsqka+ZNZW0yQ X-Received: by 2002:ad4:568a:0:b0:63d:8447:ddd with SMTP id bd10-20020ad4568a000000b0063d84470dddmr7357665qvb.20.1699438781631; Wed, 08 Nov 2023 02:19:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1699438781; cv=pass; d=google.com; s=arc-20160816; b=jM8xLb/S+06KqV3PYlKiWX+jx8IbFwdH5sBK7F6sEAWeESdmHTGWGdunG3PJXj/YiS akvSdDyzLA6ZlQycdAKkS5Np6l1TSTfsVhJ7l7czCBiH296QOkErn1/iQUtNjrgkdxgg N++vuTW6cFAvZ3vwRxRdQmkghUQnVFULhqK7+aFC8+6k1sDDvQoAFnYWvdDMoZGUpAps GpGdGoqr3emyoSZD7Q0ZsC/7g6WoZ1H1CYG0q8KGL1Dn3ip5OMXVUroaL2WO1Tw3oZxw 01IA+wKFRqajY/iI3Fal1an8HOoQkx42B8piq26Gx/GyUDS+3/kZkk1uF5u7/qSiDe2E 4Paw== 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:cc:to:from:dkim-signature:arc-filter :dmarc-filter:delivered-to; bh=inI6Nu95EZWXOVLYrl2zfDGY1XOuH5wb3akXG7hYVqQ=; fh=UnJaSs1LdmHl1brBz3CJXOVVEZ0KHynh+GYvTrOkcOg=; b=uSuxkWGHOXhWmQaL9UQLwl8xh8IV2DbDO4L6GWyK+XTuFp+MJ6+IOdvW4SjWwE1KE7 zORdXvnva/lBC4brSQsYoVxJatnoTpwOVIe0FBD/8HeWaUrcpkOTxesW7kIcs9Bu1PC9 rbqwmQ9rVkPV13nw58Xqi5Tz4eUhSpWZa8Ib+/7yStyjCo7jo+lKRwx5JUAkp0+xhkeY E/Q3uwvbHlDtlU9qaL9uP7GofihY2cvgsye4xTg0kQW804MYyYu35csqnzWJNk+TiD0V TiuxvBgf2L1LSYFed8XwGLpe+oUogbKvcRmsmCxYnFL+kQMFsxfSTP5B/fkKFjJFjWdn kclQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=CPkKYz9m; 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=redhat.com Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id f15-20020a05621400cf00b0066cee07e205si1169426qvs.175.2023.11.08.02.19.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Nov 2023 02:19:41 -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=@redhat.com header.s=mimecast20190719 header.b=CPkKYz9m; 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=redhat.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 5E5153858414 for ; Wed, 8 Nov 2023 10:19:41 +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.133.124]) by sourceware.org (Postfix) with ESMTPS id 9B8CE3858C5F for ; Wed, 8 Nov 2023 10:19:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9B8CE3858C5F 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 9B8CE3858C5F Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699438758; cv=none; b=DCBB/D9TbiwE/ne9vsC90Sj6IhhDJsJkJZzP3oWGAi3Czn73XhSq9rWa0yRAb4XM+R0EJH+ow638qvaww7Y5PxmBt7vQN3Bwu4y/chMre66ZNiCFW05oA5LdMI4k8i/at3rm7i8meDPkl++XBUldtIQ2Ok1egbEgeWFcqrWAKtU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699438758; c=relaxed/simple; bh=Gbk+2RfNtB8WJwYuMrU1NP8f3csVXQUvC/WmQaysPQE=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=QjQjMtgXnP7yzW7oXhnX8Knjg6V/zdF4TWsOguhMN+04LVeoOqFi7ZCzROxVlpWKbwNmlyEagw1dEF6qu66BqzyEDaa4NNdV8x3uQC6Hssy9gKsEcnlXWcOvVCKLabVAbQ4cXoEedg/LoRoV2IGusNj2Sa+RNucyknv1/3/X1T0= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1699438754; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type; bh=inI6Nu95EZWXOVLYrl2zfDGY1XOuH5wb3akXG7hYVqQ=; b=CPkKYz9m1c7cUNnlJaByn3aNR3XvH615jZpU6MAunPiQWPveqKI8ahOedhl4X0E5DTA0Fn PSPNFsvhcpzAUC/+xLqyJ0/KrwaXqWVOffrOU3Lomlt8sK8i3v15l9M6WoXmyX/uxmLWZq x5vhY03U3LO7Ub3fpYZ2c6+At4b81nU= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-678-qB_AI2OXNYevADUDrWajRg-1; Wed, 08 Nov 2023 05:19:12 -0500 X-MC-Unique: qB_AI2OXNYevADUDrWajRg-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id AA372185A781; Wed, 8 Nov 2023 10:19:12 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.2.16.22]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D1375492BFA; Wed, 8 Nov 2023 10:19:11 +0000 (UTC) From: Florian Weimer To: gcc-patches@gcc.gnu.org Cc: Richard Biener Subject: [PATCH] Improve C99 compatibility of gcc.dg/setjmp-7.c test Date: Wed, 08 Nov 2023 11:19:10 +0100 Message-ID: <87jzqs8s4h.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.6 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, 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: 1781990719899103770 X-GMAIL-MSGID: 1781990719899103770 gcc/testsuite/ChangeLog: * gcc.dg/setjmp-7.c (_setjmp): Declare. --- gcc/testsuite/gcc.dg/setjmp-7.c | 1 + 1 file changed, 1 insertion(+) base-commit: 0610f88cc6b23393b43541b73e50446cb8ab9c57 diff --git a/gcc/testsuite/gcc.dg/setjmp-7.c b/gcc/testsuite/gcc.dg/setjmp-7.c index 44b5bcbfa9d..579542380ba 100644 --- a/gcc/testsuite/gcc.dg/setjmp-7.c +++ b/gcc/testsuite/gcc.dg/setjmp-7.c @@ -6,6 +6,7 @@ struct __jmp_buf_tag { }; typedef struct __jmp_buf_tag jmp_buf[1]; struct globals { jmp_buf listingbuf; }; extern struct globals *const ptr_to_globals; +int _setjmp (struct __jmp_buf_tag __env[1]); void foo() { if ( _setjmp ( ((*ptr_to_globals).listingbuf )))