Commit 1c7a6d48 by Georg-Johann Lay Committed by Georg-Johann Lay

re PR testsuite/52641 (Test cases fail for 16-bit int targets)

	PR testsuite/52641
	* gcc.dg/torture/pr48124-1.c: Add dg-require-effective-target
	int32plus.
	* gcc.dg/torture/pr48124-4.c: Ditto:
	* gcc.dg/torture/pr52530.c: Use long instead of int if int=16.

From-SVN: r185588
parent 9e291a01
2012-03-20 Georg-Johann Lay <avr@gjlay.de>
PR testsuite/52641
* gcc.dg/torture/pr48124-1.c: Add dg-require-effective-target
int32plus.
* gcc.dg/torture/pr48124-4.c: Ditto:
* gcc.dg/torture/pr52530.c: Use long instead of int if int=16.
2012-03-20 Jason Merrill <jason@redhat.com>
PR c++/52510
......
/* { dg-do run } */
/* { dg-options "-fno-toplevel-reorder" } */
/* { dg-require-effective-target int32plus } */
extern void abort (void);
......
/* { dg-do run } */
/* { dg-require-effective-target int32plus } */
extern void abort (void);
struct S1 {
......
......@@ -2,6 +2,7 @@
extern void abort (void);
#if __SIZEOF_INT__ > 2
struct foo
{
int *f;
......@@ -9,6 +10,15 @@ struct foo
};
int baz;
#else
struct foo
{
long *f;
long i;
};
long baz;
#endif
void __attribute__ ((noinline))
bar (struct foo x)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment