From patchwork Thu Sep 11 09:10:18 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bernd Schmidt X-Patchwork-Id: 388167 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 656A0140081 for ; Thu, 11 Sep 2014 19:11:54 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:subject:content-type; q= dns; s=default; b=fI00K4S6DRHwYKjbnoxz0pJrlc9ffrcCnLGxnDhVkjoovd U6Bjkxr9wVM565PncERcIJlZFdcOxksBXZCNFdxVGQbbQu0gQFZKOamH9fvF8hZW nxcqkk/FmVXVVaikdOFDR1wDbrZ18GRrPiIh9cUVBVnBpO/YziSZr5J/SeOoM= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:subject:content-type; s= default; bh=VI9btL9SUZ+qSPFdkOMnUnyVWVM=; b=uKMFGrbEL20dE0tV789L 28/nnPce9cUiHohAzESeJW8csj6riU3ZuRXpMfitJk+jN15agKk7/2cf5mvkGZ+e RsnJChQdTEcQJZv0rEuO09Pw14FGZgZJDsztXxTgCYrRbnxU/xL8M0+SLqP//Flj +sKNZsv3br8vXr5KqifODBg= Received: (qmail 5525 invoked by alias); 11 Sep 2014 09:11:47 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 5507 invoked by uid 89); 11 Sep 2014 09:11:43 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL, BAYES_00 autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 11 Sep 2014 09:11:40 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-FEM-03.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1XS0Pg-0004Fr-W6 from Bernd_Schmidt@mentor.com for gcc-patches@gcc.gnu.org; Thu, 11 Sep 2014 02:11:37 -0700 Received: from [127.0.0.1] (137.202.0.76) by SVR-IES-FEM-03.mgc.mentorg.com (137.202.0.108) with Microsoft SMTP Server id 14.3.181.6; Thu, 11 Sep 2014 10:11:08 +0100 Message-ID: <541166FA.80203@codesourcery.com> Date: Thu, 11 Sep 2014 11:10:18 +0200 From: Bernd Schmidt User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.8.0 MIME-Version: 1.0 To: GCC Patches Subject: Fix some tests These are copy&paste errors (except the l3 instead of 13 which is just odd) and they show up on nvptx as type mismatches in the assembly because of the implicit declaration. Two of the tests had ^M characters which I also removed. Tested on x86_64-linux and committed as obvious. Bernd commit 93065446e241d0ac36fd0cfb22471022aca307c0 Author: Bernd Schmidt Date: Wed Sep 10 16:30:56 2014 +0200 Fix declarations in some tests. * gcc.dg/compat/struct-by-value-13_main.c (struct_by_value_13_x): Fix declaration. * gcc.dg/compat/struct-by-value-16a_main.c (struct_by_value_16a_x): Fix declaration. * gcc.dg/compat/struct-by-value-17a_main.c (struct_by_value_17a_x): Fix declaration. * gcc.dg/compat/struct-by-value-18a_main.c (struct_by_value_18a_x): Fix declaration. diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 1432e77..d83fee5 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,14 @@ +2014-09-11 Bernd Schmidt + + * gcc.dg/compat/struct-by-value-13_main.c (struct_by_value_13_x): + Fix declaration. + * gcc.dg/compat/struct-by-value-16a_main.c (struct_by_value_16a_x): + Fix declaration. + * gcc.dg/compat/struct-by-value-17a_main.c (struct_by_value_17a_x): + Fix declaration. + * gcc.dg/compat/struct-by-value-18a_main.c (struct_by_value_18a_x): + Fix declaration. + 2014-09-10 Jan Hubicka PR tree-optimization/63186 diff --git a/gcc/testsuite/gcc.dg/compat/struct-by-value-13_main.c b/gcc/testsuite/gcc.dg/compat/struct-by-value-13_main.c index b853bb8..41f4927 100644 --- a/gcc/testsuite/gcc.dg/compat/struct-by-value-13_main.c +++ b/gcc/testsuite/gcc.dg/compat/struct-by-value-13_main.c @@ -2,7 +2,7 @@ variable-length argument lists. All struct members are type _Complex int. */ -extern void struct_by_value_l3_x (void); +extern void struct_by_value_13_x (void); extern void exit (int); int fails; diff --git a/gcc/testsuite/gcc.dg/compat/struct-by-value-16a_main.c b/gcc/testsuite/gcc.dg/compat/struct-by-value-16a_main.c index 6a71d15..1520e94 100644 --- a/gcc/testsuite/gcc.dg/compat/struct-by-value-16a_main.c +++ b/gcc/testsuite/gcc.dg/compat/struct-by-value-16a_main.c @@ -1,14 +1,14 @@ -/* Test structures passed by value, including to a function with a - variable-length argument lists. All struct members are of type - _Complex float. */ - -extern void struct_by_value_16_x (void); -extern void exit (int); -int fails; - -int -main () -{ - struct_by_value_16a_x (); - exit (0); -} +/* Test structures passed by value, including to a function with a + variable-length argument lists. All struct members are of type + _Complex float. */ + +extern void struct_by_value_16a_x (void); +extern void exit (int); +int fails; + +int +main () +{ + struct_by_value_16a_x (); + exit (0); +} diff --git a/gcc/testsuite/gcc.dg/compat/struct-by-value-17a_main.c b/gcc/testsuite/gcc.dg/compat/struct-by-value-17a_main.c index 1db0021..f5baefc 100644 --- a/gcc/testsuite/gcc.dg/compat/struct-by-value-17a_main.c +++ b/gcc/testsuite/gcc.dg/compat/struct-by-value-17a_main.c @@ -2,7 +2,7 @@ variable-length argument lists. All struct members are of type _Complex double. */ -extern void struct_by_value_17_x (void); +extern void struct_by_value_17a_x (void); extern void exit (int); int fails; diff --git a/gcc/testsuite/gcc.dg/compat/struct-by-value-18a_main.c b/gcc/testsuite/gcc.dg/compat/struct-by-value-18a_main.c index 5b9dfd9..ce7edfb 100644 --- a/gcc/testsuite/gcc.dg/compat/struct-by-value-18a_main.c +++ b/gcc/testsuite/gcc.dg/compat/struct-by-value-18a_main.c @@ -1,14 +1,14 @@ -/* Test structures passed by value, including to a function with a - variable-length argument lists. All struct members are of type - _Complex long double. */ - -extern void struct_by_value_18_x (void); -extern void exit (int); -int fails; - -int -main () -{ - struct_by_value_18a_x (); - exit (0); -} +/* Test structures passed by value, including to a function with a + variable-length argument lists. All struct members are of type + _Complex long double. */ + +extern void struct_by_value_18a_x (void); +extern void exit (int); +int fails; + +int +main () +{ + struct_by_value_18a_x (); + exit (0); +}