public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Bernd Schmidt <bernds@codesourcery.com>
To: GCC Patches <gcc-patches@gcc.gnu.org>
Subject: [6/7] Random tweaks
Date: Tue, 21 Oct 2014 14:30:00 -0000	[thread overview]
Message-ID: <54466D02.6020707@codesourcery.com> (raw)
In-Reply-To: <5446694A.1010705@codesourcery.com>

[-- Attachment #1: Type: text/plain, Size: 577 bytes --]

This tweaks a few tests so that we don't have to skip them.  This is 
mostly concerned with declaring main properly, or changing other 
declarations where the test does not seem to rely on the type mismatches.

I've also included one example of changing a function name to not be 
"call", ptxas seems to have a bug that makes it not allow this function 
name. If that doesn't seem too awful I'll have a few more tests to fix 
up in this way.

There'll be a 7th patch, not because I can't count, but because I didn't 
follow a consistent naming scheme for the patches.


Bernd


[-- Attachment #2: ts-tweaks.diff --]
[-- Type: text/x-patch, Size: 2790 bytes --]

	* gcc.c-torture/compile/920625-2.c: Add return type to
	freeReturnStruct.
	* gcc.c-torture/execute/20091229-1.c: Declare main properly.
	* gcc.c-torture/execute/pr61375.c: Likewise.
	* gcc.c-torture/execute/20111208-1.c: Use __SIZE_TYPE__ for size_t.
	* gcc.dg/pr30904.c: Remove extern from declaration of t.
	* gcc.c-torture/compile/callind.c (bar): Renamed from call.

Index: gcc/testsuite/gcc.c-torture/compile/920625-2.c
===================================================================
--- gcc/testsuite/gcc.c-torture/compile/920625-2.c.orig
+++ gcc/testsuite/gcc.c-torture/compile/920625-2.c
@@ -100,4 +100,4 @@ copyQueryResult(Widget w, Boolean copy,
   freeReturnStruct();
 }
 
-freeReturnStruct(){}
+void freeReturnStruct(){}
Index: gcc/testsuite/gcc.c-torture/execute/20091229-1.c
===================================================================
--- gcc/testsuite/gcc.c-torture/execute/20091229-1.c.orig
+++ gcc/testsuite/gcc.c-torture/execute/20091229-1.c
@@ -1,2 +1,2 @@
 long long foo(long long v) { return v / -0x080000000LL; }
-void main() { if (foo(0x080000000LL) != -1) abort(); exit (0); }
+int main(int argc, char **argv) { if (foo(0x080000000LL) != -1) abort(); exit (0); }
Index: gcc/testsuite/gcc.c-torture/execute/20111208-1.c
===================================================================
--- gcc/testsuite/gcc.c-torture/execute/20111208-1.c.orig
+++ gcc/testsuite/gcc.c-torture/execute/20111208-1.c
@@ -1,7 +1,7 @@
 /* PR tree-optimization/51315 */
 /* Reported by Jurij Smakov <jurij@wooyd.org> */
 
-typedef unsigned int size_t;
+typedef __SIZE_TYPE__ size_t;
 
 extern void *memcpy (void *__restrict __dest,
        __const void *__restrict __src, size_t __n)
Index: gcc/testsuite/gcc.c-torture/execute/pr61375.c
===================================================================
--- gcc/testsuite/gcc.c-torture/execute/pr61375.c.orig
+++ gcc/testsuite/gcc.c-torture/execute/pr61375.c
@@ -19,7 +19,7 @@ uint128_central_bitsi_ior (unsigned __in
 }
 
 int
-main(int argc)
+main(int argc, char **argv)
 {
   __int128 in = 1;
 #ifdef __SIZEOF_INT128__
Index: gcc/testsuite/gcc.dg/pr30904.c
===================================================================
--- gcc/testsuite/gcc.dg/pr30904.c.orig
+++ gcc/testsuite/gcc.dg/pr30904.c
@@ -1,7 +1,7 @@
 /* { dg-do link } */
 /* { dg-options "-O2 -fdump-tree-optimized" } */
 
-extern int t;
+int t;
 extern void link_error(void);
 int main (void)
 {
Index: gcc/testsuite/gcc.c-torture/compile/callind.c
===================================================================
--- gcc/testsuite/gcc.c-torture/compile/callind.c.orig
+++ gcc/testsuite/gcc.c-torture/compile/callind.c
@@ -1,8 +1,8 @@
-call (foo, a)
+bar (foo, a)
      int (**foo) ();
 {
 
-  (foo)[1] = call;
+  (foo)[1] = bar;
 
   foo[a] (1);
 }

  parent reply	other threads:[~2014-10-21 14:27 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-21 14:13 [0/6] nvptx testsuite patches Bernd Schmidt
2014-10-21 14:13 ` [1/6] nvptx testsuite patches: alloca Bernd Schmidt
2014-10-21 15:16   ` Jeff Law
2014-10-21 14:19 ` [2/6] nvptx testsuite patches: typed assembly Bernd Schmidt
2014-10-21 15:22   ` Jeff Law
2014-10-21 15:33     ` Bernd Schmidt
2014-11-10 16:23       ` Bernd Schmidt
2014-10-21 14:19 ` [3/6] nvptx testsuite patches: stdio Bernd Schmidt
2014-10-21 15:24   ` Jeff Law
2014-10-21 19:28   ` Mike Stump
2014-10-21 21:11     ` Bernd Schmidt
2014-10-21 14:22 ` [4/6] nvptx testsuite patches: xfails and skips Bernd Schmidt
2014-10-21 15:30   ` Jeff Law
2014-10-21 15:32     ` Bernd Schmidt
2014-10-21 14:27 ` [5/6] nvptx testsuite patches: jumps and labels Bernd Schmidt
2014-10-21 15:31   ` Jeff Law
2014-10-21 14:30 ` Bernd Schmidt [this message]
2014-10-21 15:33   ` [6/7] Random tweaks Jeff Law
2014-10-21 17:04     ` Jakub Jelinek
2014-10-21 17:49       ` Marek Polacek
2014-10-21 20:24         ` Mike Stump
2014-10-21 14:34 ` [7/7] nvptx testsuite patches: Return addresses Bernd Schmidt
2014-10-21 15:34   ` Jeff Law
2014-11-10 20:21     ` H.J. Lu
2014-11-10 20:33       ` Mike Stump
2014-11-11 11:58       ` Bernd Schmidt
2014-10-21 14:48 ` [0/6] nvptx testsuite patches Jeff Law

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54466D02.6020707@codesourcery.com \
    --to=bernds@codesourcery.com \
    --cc=gcc-patches@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).