Random testsuite tweaks for ptx.

* 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.

From-SVN: r217300
This commit is contained in:
Bernd Schmidt 2014-11-10 16:31:00 +00:00 committed by Bernd Schmidt
parent 631da28efe
commit 5ea6b1bdc1
6 changed files with 12 additions and 5 deletions

View File

@ -1,5 +1,12 @@
2014-11-10 Bernd Schmidt <bernds@codesourcery.com>
* 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.
* lib/target-supports.exp (check_effective_target_indirect_jumps):
New function.
(check_effective_target_nonlocal_goto): New function.

View File

@ -100,4 +100,4 @@ copyQueryResult(Widget w, Boolean copy, caddr_t call_data)
freeReturnStruct();
}
freeReturnStruct(){}
void freeReturnStruct(){}

View File

@ -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); }

View File

@ -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)

View File

@ -19,7 +19,7 @@ uint128_central_bitsi_ior (unsigned __int128 in1, uint64_t in2)
}
int
main(int argc)
main(int argc, char **argv)
{
__int128 in = 1;
#ifdef __SIZEOF_INT128__

View File

@ -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)
{