Commit 7393e5de by Paul Koning Committed by Paul Koning

Fix test case failures for pdp11 target.

	* 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
parent 38a4d6da
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> 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
James Norris <jnorris@codesourcery.com> James Norris <jnorris@codesourcery.com>
Thomas Schwinge <thomas@codesourcery.com> Thomas Schwinge <thomas@codesourcery.com>
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-skip-if "Array too big" { "pdp11-*-*" } { "-mint32" } } */
/* Large static storage. */ /* 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 short uint16_t;
typedef unsigned int uint32_t; typedef unsigned int uint32_t;
......
/* { dg-skip-if "Array too big" { "pdp11-*-*" } { "-mint32" } } */
#if __SCHAR_MAX__ == 127 && __INT_MAX__ >= 2147483647 #if __SCHAR_MAX__ == 127 && __INT_MAX__ >= 2147483647
struct S { char buf[72*1024*1024]; }; struct S { char buf[72*1024*1024]; };
#else #else
......
/* { dg-require-effective-target int32plus } */ /* { dg-require-effective-target int32plus } */
/* { dg-skip-if "Array too big" { "pdp11-*-*" } { "-mint32" } } */
struct peakbufStruct { struct peakbufStruct {
unsigned int lnum [5000]; unsigned int lnum [5000];
......
/* { dg-skip-if "Array too big" { "pdp11-*-*" } { "-mint32" } } */
/* Verify that we don't ICE by forming invalid addresses for unaligned /* Verify that we don't ICE by forming invalid addresses for unaligned
doubleword loads (originally for PPC64). */ doubleword loads (originally for PPC64). */
......
/* { dg-do assemble } */ /* { dg-do assemble } */
/* { dg-skip-if "Array too big" { "pdp11-*-*" } { "-mint32" } } */
x(x){ return 3 + x;} x(x){ return 3 + x;}
a(x){int y[994]; return 3 + x;} a(x){int y[994]; return 3 + x;}
......
/* { dg-do assemble } */ /* { dg-do assemble } */
/* { dg-skip-if "ptxas times out" { nvptx-*-* } { "-O1" } { "" } } */ /* { dg-skip-if "ptxas times out" { nvptx-*-* } { "-O1" } { "" } } */
/* { dg-skip-if "Array too big" { "pdp11-*-*" } { "-mint32" } } */
foo () foo ()
{ {
......
/* The structure is too large for the xstormy16 - won't fit in 16 /* The structure is too large for the xstormy16 - won't fit in 16
bits. */ bits. */
/* { dg-do assemble } */ /* { dg-do assemble } */
/* { dg-skip-if "Array too big" { "pdp11-*-*" } { "-mint32" } } */
#if __INT_MAX__ >= 2147483647L #if __INT_MAX__ >= 2147483647L
struct s { struct s {
......
/* { dg-skip-if "ptxas runs out of memory" { nvptx-*-* } } */ /* { dg-skip-if "ptxas runs out of memory" { nvptx-*-* } } */
/* { dg-skip-if "Array too big" { "pdp11-*-*" } { "-mint32" } } */
/* { dg-require-effective-target int32plus } */ /* { dg-require-effective-target int32plus } */
/* Inspired by the test case for PR middle-end/52640. */ /* 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. */ /* Prevent spurious test failures on 16-bit targets. */
#if __INT_MAX__ >= 2147483647L #if __INT_MAX__ >= 2147483647L
......
...@@ -3,10 +3,18 @@ ...@@ -3,10 +3,18 @@
#include <sys/types.h> #include <sys/types.h>
#endif #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 void abort (void);
extern int inside_main; 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 chk_fail_allowed, chk_calls;
volatile int memcpy_disallowed, mempcpy_disallowed, memmove_disallowed; volatile int memcpy_disallowed, mempcpy_disallowed, memmove_disallowed;
volatile int memset_disallowed, strcpy_disallowed, stpcpy_disallowed; volatile int memset_disallowed, strcpy_disallowed, stpcpy_disallowed;
......
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