* gcc.c-torture/execute/builtins/lib/chk.c: Use smaller alignment
if pdp11.
* gcc.c-torture/compile/
20010518-2.c: Skip if pdp11 -mint32.
* gcc.c-torture/compile/
20040101-1.c: Ditto.
* gcc.c-torture/compile/
20050622-1.c: Ditto.
* gcc.c-torture/compile/
20080625-1.c: Ditto.
* gcc.c-torture/compile/
20090107-1.c: Ditto.
* gcc.c-torture/compile/920501-12.c: Ditto.
* gcc.c-torture/compile/920501-4.c: Ditto.
* gcc.c-torture/compile/961203-1.c: Ditto.
* gcc.c-torture/compile/limits-externdecl.c: Ditto.
* gcc.c-torture/compile/pr25310.c: Ditto.
From-SVN: r261897
+2018-06-22 Paul Koning <ni1d@arrl.net>
+
+ * gcc.c-torture/execute/builtins/lib/chk.c: Use smaller alignment
+ if pdp11.
+ * gcc.c-torture/compile/20010518-2.c: Skip if pdp11 -mint32.
+ * gcc.c-torture/compile/20040101-1.c: Ditto.
+ * gcc.c-torture/compile/20050622-1.c: Ditto.
+ * gcc.c-torture/compile/20080625-1.c: Ditto.
+ * gcc.c-torture/compile/20090107-1.c: Ditto.
+ * gcc.c-torture/compile/920501-12.c: Ditto.
+ * gcc.c-torture/compile/920501-4.c: Ditto.
+ * gcc.c-torture/compile/961203-1.c: Ditto.
+ * gcc.c-torture/compile/limits-externdecl.c: Ditto.
+ * gcc.c-torture/compile/pr25310.c: Ditto.
+
2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
James Norris <jnorris@codesourcery.com>
Thomas Schwinge <thomas@codesourcery.com>
/* { dg-do compile } */
+/* { dg-skip-if "Array too big" { "pdp11-*-*" } { "-mint32" } } */
/* Large static storage. */
-/* { dg-skip-if "not enough registers" { pdp11-*-* } { "-O[12s]" } { "" } } */
+/* { dg-skip-if "not enough registers" { pdp11-*-* } } */
typedef unsigned short uint16_t;
typedef unsigned int uint32_t;
+/* { dg-skip-if "Array too big" { "pdp11-*-*" } { "-mint32" } } */
+
#if __SCHAR_MAX__ == 127 && __INT_MAX__ >= 2147483647
struct S { char buf[72*1024*1024]; };
#else
/* { dg-require-effective-target int32plus } */
+/* { dg-skip-if "Array too big" { "pdp11-*-*" } { "-mint32" } } */
struct peakbufStruct {
unsigned int lnum [5000];
+/* { dg-skip-if "Array too big" { "pdp11-*-*" } { "-mint32" } } */
+
/* Verify that we don't ICE by forming invalid addresses for unaligned
doubleword loads (originally for PPC64). */
/* { dg-do assemble } */
+/* { dg-skip-if "Array too big" { "pdp11-*-*" } { "-mint32" } } */
x(x){ return 3 + x;}
a(x){int y[994]; return 3 + x;}
/* { dg-do assemble } */
/* { dg-skip-if "ptxas times out" { nvptx-*-* } { "-O1" } { "" } } */
+/* { dg-skip-if "Array too big" { "pdp11-*-*" } { "-mint32" } } */
foo ()
{
/* The structure is too large for the xstormy16 - won't fit in 16
bits. */
/* { dg-do assemble } */
+/* { dg-skip-if "Array too big" { "pdp11-*-*" } { "-mint32" } } */
#if __INT_MAX__ >= 2147483647L
struct s {
/* { dg-skip-if "ptxas runs out of memory" { nvptx-*-* } } */
+/* { dg-skip-if "Array too big" { "pdp11-*-*" } { "-mint32" } } */
/* { dg-require-effective-target int32plus } */
/* Inspired by the test case for PR middle-end/52640. */
+/* { dg-skip-if "Array too big" { "pdp11-*-*" } { "-mint32" } } */
/* Prevent spurious test failures on 16-bit targets. */
#if __INT_MAX__ >= 2147483647L
#include <sys/types.h>
#endif
+/* If some target has a Max alignment less than 16, please create
+ a #ifdef around the alignment and add your alignment. */
+#ifdef __pdp11__
+#define ALIGNMENT 2
+#else
+#define ALIGNMENT 16
+#endif
+
extern void abort (void);
extern int inside_main;
-void *chk_fail_buf[256] __attribute__((aligned (16)));
+void *chk_fail_buf[256] __attribute__((aligned (ALIGNMENT)));
volatile int chk_fail_allowed, chk_calls;
volatile int memcpy_disallowed, mempcpy_disallowed, memmove_disallowed;
volatile int memset_disallowed, strcpy_disallowed, stpcpy_disallowed;