Message ID | 874jhfi2k2.fsf@oldenburg.str.redhat.com |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2b07:b0:403:3b70:6f57 with SMTP id io7csp674262vqb; Tue, 21 Nov 2023 06:50:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IFTetFclhDLts4qGMep3NBcxKT0PAfZ2H+cbBE+cblZRjgb1QoRuUxD/fPtz9lWE7mPHIi9 X-Received: by 2002:a05:6358:918d:b0:16b:fa26:3ad8 with SMTP id j13-20020a056358918d00b0016bfa263ad8mr6679970rwa.10.1700578218161; Tue, 21 Nov 2023 06:50:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1700578218; cv=pass; d=google.com; s=arc-20160816; b=oxYQDHGvC8M93sz3IWVvVePuzaWcIKjSjy0w+ItMldsbnVGChPO7BMmFb1LsORA0pG KTJL7fiKDfrKJvtMkW0j70uGzj/NpWZvHHxE3viLPC9r+U1g8PIlW+4yKYExKcQJ24j/ Xbj1kt7Z/zgk37NubG4Nm7zLitGWJsB06gMLLMK/OCnllVPfCsXzIzgOiJctDp+zzCJa h/3ne1Aie2Y2xB+LyvOaDrevOzqsVVxBgXgZzQckdw6na1JO+1tCAkRfyudUWU1XyPFW 1/ZL6Ir0iS6PYqZpSp7r9nUM49hTnHXBbknBWPfTJZsRKwaFExNJEedBxZn5FECFZHgP Dcpw== 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=F/yu8GKN6/REjJHG/3CmPOhwEHOHIPjmc6+be76nZEM=; fh=hPrbWPhweUx4V0GV9uXJqbyAzg2ABmTz7kczrAQqMmM=; b=YFweiPwi8QUuesIESoLgMryXCGKp1Dhud4Cf9BwcaUvfGO4Oex81WgiCG/EKPpRtk9 f+hQOE1YSCKLLmsZYUU3W+zAFPZq5kIZXI+dda/XCorkuUiGi8cC4GTrB40mGezMUNhW Vz65FGfq2+YwiJzZNGUrGRWL2d3n69MOeSq4Hap1ToiRwQYCHrtkVzQih9iAquBnhwyK 3YTWRrflC7IT4unegS3eEUzNsgxmk+r4cA4z6x7EIe3D7xEbp7b5/HF7ipTHF+dQKut8 1YUqo3WDdky+DuWCyOZN/YHY+JTHJphLHHJnV3QqgZOUcJeJhQYj8Wg1IjUAw5nRgjPE XgnQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=JCby5Hkw; 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 bz25-20020a05622a1e9900b0042371e315easi1193564qtb.20.2023.11.21.06.50.18 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 06:50:18 -0800 (PST) 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=JCby5Hkw; 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 E2BDB3858413 for <ouuuleilei@gmail.com>; Tue, 21 Nov 2023 14:50:17 +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 8C5B43858D35 for <gcc-patches@gcc.gnu.org>; Tue, 21 Nov 2023 14:49:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8C5B43858D35 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 8C5B43858D35 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=1700578195; cv=none; b=o45mhekB4dHjWJfluL0puq38jiq5vR88fuHnZAIfSaFMedp9Rct64mzpGAl7klMkK99rLx+5FWdYdCxZYyEmDELBpW9ZrIU7w3rPi0730wY1z/pgKXI5Ib/RYvdiZKHJbwAqGHTvOOMY1AjeWbXhClU7AwVb4sXzaW4wdEAZ90I= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700578195; c=relaxed/simple; bh=B+D1fvTA+cNcghIP87hvtTBcxwb9wW0xMo1wocAdbCk=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=dH7tp5J4fTpbFLBJJ5QbDbuT1+pdRhOBIUYWO1rJNQTgx8GvT4IlPKReYzXY84HRvSriF68zeMzuyr3s/3PZ5wS2y1SqUWcNXzl4lktPijcmdWw8ePWci6YMB3WfVd3R9Ax/mJ+DgmPAhGY0pxG1QEydPJePpdzhX3tup8sQSTI= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1700578193; 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=F/yu8GKN6/REjJHG/3CmPOhwEHOHIPjmc6+be76nZEM=; b=JCby5HkwbhGV1UFH7VkPyRjgErIy1VZgcQEs2BuQjBW+p4VlxwYfQ+Y6WQAe/BYq21OjfR DDlMhOL3vyFlFf7rQGSW130+odwvOGMSAgdOBe0AuEwII4w3Fr4Qu5/RP7dBbjSL3RoGNV ONStn/sFqosSm/+c+eH9QD4XPL0gS7M= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-344-IuIZi75cPbmfChepl6HyjQ-1; Tue, 21 Nov 2023 09:49:51 -0500 X-MC-Unique: IuIZi75cPbmfChepl6HyjQ-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (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 905D829ABA38 for <gcc-patches@gcc.gnu.org>; Tue, 21 Nov 2023 14:49:51 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.2.16.13]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 109C1492BE0 for <gcc-patches@gcc.gnu.org>; Tue, 21 Nov 2023 14:49:50 +0000 (UTC) From: Florian Weimer <fweimer@redhat.com> To: gcc-patches@gcc.gnu.org Subject: [PATCH] gcc.misc-tests/linkage-y.c: Compatibility with C99+ system compilers Date: Tue, 21 Nov 2023 15:49:49 +0100 Message-ID: <874jhfi2k2.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.9 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain X-Spam-Status: No, score=-10.9 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 <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+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783185505774668930 X-GMAIL-MSGID: 1783185505774668930 |
Series |
gcc.misc-tests/linkage-y.c: Compatibility with C99+ system compilers
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Florian Weimer
Nov. 21, 2023, 2:49 p.m. UTC
This program is compiled with an installed "cc" compiler, not the built GCC compiler, so it should be as compatible as possible across a wide range of compilers. gcc/testsuite/ * gcc.misc-tests/linkage-y.c (puts): Declare. (main): Add int return type and return 0. --- gcc/testsuite/gcc.misc-tests/linkage-y.c | 3 +++ 1 file changed, 3 insertions(+) base-commit: 700d70e4a2874645ddb67a8a335131d83b242e69
diff --git a/gcc/testsuite/gcc.misc-tests/linkage-y.c b/gcc/testsuite/gcc.misc-tests/linkage-y.c index eaffa5e4bb7..4235325f2cb 100644 --- a/gcc/testsuite/gcc.misc-tests/linkage-y.c +++ b/gcc/testsuite/gcc.misc-tests/linkage-y.c @@ -1,8 +1,11 @@ /* 920717-y.c */ extern const char s[]; +extern int puts(const char *); +int main() { puts(s); + return 0; }