Commit 361420ee by Rainer Orth Committed by Rainer Orth

Move gcc.dg/compat dg-skip-if to *_main.c files

	* gcc.dg/compat/pr83487-1_y.c: Move dg-skip-if ...
	* gcc.dg/compat/pr83487-1_main.c: ... here.
	* gcc.dg/compat/struct-by-value-10_main.c,
	gcc.dg/compat/struct-by-value-10_x.c,
	gcc.dg/compat/struct-by-value-11_main.c,
	gcc.dg/compat/struct-by-value-11_x.c,
	gcc.dg/compat/struct-by-value-12_main.c,
	gcc.dg/compat/struct-by-value-12_x.c,
	gcc.dg/compat/struct-by-value-13_main.c,
	gcc.dg/compat/struct-by-value-13_x.c,
	gcc.dg/compat/struct-by-value-14_main.c,
	gcc.dg/compat/struct-by-value-14_x.c,
	gcc.dg/compat/struct-by-value-15_main.c,
	gcc.dg/compat/struct-by-value-15_x.c,
	gcc.dg/compat/struct-by-value-17_main.c,
	gcc.dg/compat/struct-by-value-17_x.c,
	gcc.dg/compat/struct-by-value-18_main.c,
	gcc.dg/compat/struct-by-value-18_x.c,
	gcc.dg/compat/struct-by-value-2_main.c,
	gcc.dg/compat/struct-by-value-2_x.c,
	gcc.dg/compat/struct-by-value-22_main.c,
	gcc.dg/compat/struct-by-value-22_x.c,
	gcc.dg/compat/struct-by-value-3_main.c,
	gcc.dg/compat/struct-by-value-3_x.c,
	gcc.dg/compat/struct-by-value-4_main.c,
	gcc.dg/compat/struct-by-value-4_x.c,
	gcc.dg/compat/struct-by-value-5b_main.c,
	gcc.dg/compat/struct-by-value-5b_x.c,
	gcc.dg/compat/struct-by-value-6b_main.c,
	gcc.dg/compat/struct-by-value-6b_x.c,
	gcc.dg/compat/struct-by-value-6b_main.c,
	gcc.dg/compat/struct-by-value-7b_x.c,
	gcc.dg/compat/struct-by-value-7b_main.c,
	gcc.dg/compat/struct-by-value-8_main.c,
	gcc.dg/compat/struct-by-value-8_x.c,
	gcc.dg/compat/struct-by-value-9_main.c,
	gcc.dg/compat/struct-by-value-9_x.c,
	gcc.dg/compat/struct-return-2_main.c,
	gcc.dg/compat/struct-return-2_x.c: Likewise.

From-SVN: r265755
parent 122d6c36
2018-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* gcc.dg/compat/pr83487-1_y.c: Move dg-skip-if ...
* gcc.dg/compat/pr83487-1_main.c: ... here.
* gcc.dg/compat/struct-by-value-10_main.c,
gcc.dg/compat/struct-by-value-10_x.c,
gcc.dg/compat/struct-by-value-11_main.c,
gcc.dg/compat/struct-by-value-11_x.c,
gcc.dg/compat/struct-by-value-12_main.c,
gcc.dg/compat/struct-by-value-12_x.c,
gcc.dg/compat/struct-by-value-13_main.c,
gcc.dg/compat/struct-by-value-13_x.c,
gcc.dg/compat/struct-by-value-14_main.c,
gcc.dg/compat/struct-by-value-14_x.c,
gcc.dg/compat/struct-by-value-15_main.c,
gcc.dg/compat/struct-by-value-15_x.c,
gcc.dg/compat/struct-by-value-17_main.c,
gcc.dg/compat/struct-by-value-17_x.c,
gcc.dg/compat/struct-by-value-18_main.c,
gcc.dg/compat/struct-by-value-18_x.c,
gcc.dg/compat/struct-by-value-2_main.c,
gcc.dg/compat/struct-by-value-2_x.c,
gcc.dg/compat/struct-by-value-22_main.c,
gcc.dg/compat/struct-by-value-22_x.c,
gcc.dg/compat/struct-by-value-3_main.c,
gcc.dg/compat/struct-by-value-3_x.c,
gcc.dg/compat/struct-by-value-4_main.c,
gcc.dg/compat/struct-by-value-4_x.c,
gcc.dg/compat/struct-by-value-5b_main.c,
gcc.dg/compat/struct-by-value-5b_x.c,
gcc.dg/compat/struct-by-value-6b_main.c,
gcc.dg/compat/struct-by-value-6b_x.c,
gcc.dg/compat/struct-by-value-6b_main.c,
gcc.dg/compat/struct-by-value-7b_x.c,
gcc.dg/compat/struct-by-value-7b_main.c,
gcc.dg/compat/struct-by-value-8_main.c,
gcc.dg/compat/struct-by-value-8_x.c,
gcc.dg/compat/struct-by-value-9_main.c,
gcc.dg/compat/struct-by-value-9_x.c,
gcc.dg/compat/struct-return-2_main.c,
gcc.dg/compat/struct-return-2_x.c: Likewise.
2018-11-02 Nathan Sidwell <nathan@acm.org> 2018-11-02 Nathan Sidwell <nathan@acm.org>
* g++.dg/lookup/crash6.C: Adjust error * g++.dg/lookup/crash6.C: Adjust error
......
/* { dg-skip-if "no large alignment" { pdp11-*-* } } */
extern void do_test (void); extern void do_test (void);
int int
......
/* { dg-skip-if "no large alignment" { pdp11-*-* } } */
#include "pr83487-1.h" #include "pr83487-1.h"
struct A a; struct A a;
......
/* Test structures passed by value, including to a function with a /* Test structures passed by value, including to a function with a
variable-length argument lists. All struct members are floating variable-length argument lists. All struct members are floating
point scalars. */ point scalars. */
/* { dg-skip-if "limited code space" { pdp11-*-* } } */
extern void struct_by_value_10_x (void); extern void struct_by_value_10_x (void);
extern void exit (int); extern void exit (int);
......
/* { dg-skip-if "limited code space" { pdp11-*-* } } */
#include "compat-common.h" #include "compat-common.h"
#include "fp2-struct-defs.h" #include "fp2-struct-defs.h"
......
/* Test structures passed by value, including to a function with a /* Test structures passed by value, including to a function with a
variable-length argument lists. All struct members are of type variable-length argument lists. All struct members are of type
_Complex char. */ _Complex char. */
/* { dg-skip-if "limited code space" { pdp11-*-* } } */
extern void struct_by_value_11_x (void); extern void struct_by_value_11_x (void);
extern void exit (int); extern void exit (int);
......
/* { dg-skip-if "limited code space" { pdp11-*-* } } */
#include "compat-common.h" #include "compat-common.h"
#include "fp-struct-defs.h" #include "fp-struct-defs.h"
......
/* Test structures passed by value, including to a function with a /* Test structures passed by value, including to a function with a
variable-length argument lists. All struct members are of type variable-length argument lists. All struct members are of type
_Complex short. */ _Complex short. */
/* { dg-skip-if "limited code space" { pdp11-*-* } } */
extern void struct_by_value_12_x (void); extern void struct_by_value_12_x (void);
extern void exit (int); extern void exit (int);
......
/* { dg-skip-if "limited code space" { pdp11-*-* } } */
#include "compat-common.h" #include "compat-common.h"
#include "fp-struct-defs.h" #include "fp-struct-defs.h"
......
/* Test structures passed by value, including to a function with a /* Test structures passed by value, including to a function with a
variable-length argument lists. All struct members are type variable-length argument lists. All struct members are type
_Complex int. */ _Complex int. */
/* { dg-skip-if "limited code space" { pdp11-*-* } } */
extern void struct_by_value_13_x (void); extern void struct_by_value_13_x (void);
extern void exit (int); extern void exit (int);
......
/* { dg-skip-if "limited code space" { pdp11-*-* } } */
#include "compat-common.h" #include "compat-common.h"
#include "fp-struct-defs.h" #include "fp-struct-defs.h"
......
/* Test structures passed by value, including to a function with a /* Test structures passed by value, including to a function with a
variable-length argument lists. All struct members are of type variable-length argument lists. All struct members are of type
_Complex long. */ _Complex long. */
/* { dg-skip-if "limited code space" { pdp11-*-* } } */
extern void struct_by_value_14_x (void); extern void struct_by_value_14_x (void);
extern void exit (int); extern void exit (int);
......
/* { dg-skip-if "limited code space" { pdp11-*-* } } */
#include "compat-common.h" #include "compat-common.h"
#include "fp-struct-defs.h" #include "fp-struct-defs.h"
......
/* Test structures passed by value, including to a function with a /* Test structures passed by value, including to a function with a
variable-length argument lists. All struct members are of type variable-length argument lists. All struct members are of type
_Complex long long. */ _Complex long long. */
/* { dg-skip-if "limited code space" { pdp11-*-* } } */
extern void struct_by_value_15_x (void); extern void struct_by_value_15_x (void);
extern void exit (int); extern void exit (int);
......
/* { dg-skip-if "limited code space" { pdp11-*-* } } */
#include "compat-common.h" #include "compat-common.h"
#include "fp-struct-defs.h" #include "fp-struct-defs.h"
......
/* { dg-skip-if "limited code space" { pdp11-*-* } } */
#include "compat-common.h" #include "compat-common.h"
#include "fp-struct-defs.h" #include "fp-struct-defs.h"
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
variable-length argument lists. All struct members are of type variable-length argument lists. All struct members are of type
_Complex double. */ _Complex double. */
/* { dg-skip-if "Program too big" { "avr-*-*" } } */ /* { dg-skip-if "Program too big" { "avr-*-*" } } */
/* { dg-skip-if "limited code space" { pdp11-*-* } } */
extern void struct_by_value_17_x (void); extern void struct_by_value_17_x (void);
extern void exit (int); extern void exit (int);
......
/* { dg-skip-if "limited code space" { pdp11-*-* } } */
#include "compat-common.h" #include "compat-common.h"
#include "fp-struct-defs.h" #include "fp-struct-defs.h"
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
variable-length argument lists. All struct members are of type variable-length argument lists. All struct members are of type
_Complex long double. */ _Complex long double. */
/* { dg-skip-if "Program too big" { "avr-*-*" } } */ /* { dg-skip-if "Program too big" { "avr-*-*" } } */
/* { dg-skip-if "limited code space" { pdp11-*-* } } */
extern void struct_by_value_18_x (void); extern void struct_by_value_18_x (void);
extern void exit (int); extern void exit (int);
......
/* { dg-skip-if "limited code space" { pdp11-*-* } } */
#include "compat-common.h" #include "compat-common.h"
#include "fp-struct-defs.h" #include "fp-struct-defs.h"
......
/* { dg-require-effective-target alloca } */ /* { dg-require-effective-target alloca } */
/* { dg-skip-if "limited code space" { pdp11-*-* } } */
/* Test variable sized function argument passing. /* Test variable sized function argument passing.
GCC 3.2 and earlier is incompatible with GCC 3.3+ on x86-64, GCC 3.2 and earlier is incompatible with GCC 3.3+ on x86-64,
the latter passes variable sized arguments by reference while the latter passes variable sized arguments by reference while
......
/* { dg-skip-if "limited code space" { pdp11-*-* } } */
#ifndef SKIP_VLA_IN_STRUCT #ifndef SKIP_VLA_IN_STRUCT
#ifndef T #ifndef T
......
/* Test structures passed by value, including to a function with a /* Test structures passed by value, including to a function with a
variable-length argument list. variable-length argument list.
This test is based on one contributed by Alan Modra. */ This test is based on one contributed by Alan Modra. */
/* { dg-skip-if "limited code space" { pdp11-*-* } } */
extern void struct_by_value_2_x (void); extern void struct_by_value_2_x (void);
extern void exit (int); extern void exit (int);
......
/* { dg-skip-if "limited code space" { pdp11-*-* } } */
#include "compat-common.h" #include "compat-common.h"
#define T(N, NAME, TYPE) \ #define T(N, NAME, TYPE) \
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
variable-length argument list. All struct members are scalar variable-length argument list. All struct members are scalar
integral types, and the structs are "small": 1, 2, 4, 8, and 12 integral types, and the structs are "small": 1, 2, 4, 8, and 12
bytes for LP64. */ bytes for LP64. */
/* { dg-skip-if "limited code space" { pdp11-*-* } } */
extern void struct_by_value_3_x (void); extern void struct_by_value_3_x (void);
extern void exit (int); extern void exit (int);
......
/* { dg-skip-if "limited code space" { pdp11-*-* } } */
#include "compat-common.h" #include "compat-common.h"
#define T(TYPE) \ #define T(TYPE) \
......
/* Test structures passed by value, including to a function with a /* Test structures passed by value, including to a function with a
variable-length argument list. Each struct contains an array variable-length argument list. Each struct contains an array
of small structs with a single member. */ of small structs with a single member. */
/* { dg-skip-if "limited code space" { pdp11-*-* } } */
extern void struct_by_value_4_x (void); extern void struct_by_value_4_x (void);
extern void exit (int); extern void exit (int);
......
/* { dg-skip-if "limited code space" { pdp11-*-* } } */
#include "compat-common.h" #include "compat-common.h"
#define T(N, TYPE) \ #define T(N, TYPE) \
......
/* Test structures passed by value, including to a function with a /* Test structures passed by value, including to a function with a
variable-length argument lists. All struct members are float variable-length argument lists. All struct members are float
scalars. */ scalars. */
/* { dg-skip-if "limited code space" { pdp11-*-* } } */
extern void struct_by_value_5b_x (void); extern void struct_by_value_5b_x (void);
extern void exit (int); extern void exit (int);
......
/* { dg-skip-if "limited code space" { pdp11-*-* } } */
#include "compat-common.h" #include "compat-common.h"
#include "fp-struct-defs.h" #include "fp-struct-defs.h"
......
/* Test structures passed by value, including to a function with a /* Test structures passed by value, including to a function with a
variable-length argument lists. All struct members are double variable-length argument lists. All struct members are double
scalars. */ scalars. */
/* { dg-skip-if "limited code space" { pdp11-*-* } } */
extern void struct_by_value_6b_x (void); extern void struct_by_value_6b_x (void);
extern void exit (int); extern void exit (int);
......
/* { dg-skip-if "limited code space" { pdp11-*-* } } */
#include "compat-common.h" #include "compat-common.h"
#include "fp-struct-defs.h" #include "fp-struct-defs.h"
......
/* Test structures passed by value, including to a function with a /* Test structures passed by value, including to a function with a
variable-length argument lists. All struct members are long double variable-length argument lists. All struct members are long double
scalars. */ scalars. */
/* { dg-skip-if "limited code space" { pdp11-*-* } } */
extern void struct_by_value_7b_x (void); extern void struct_by_value_7b_x (void);
extern void exit (int); extern void exit (int);
......
/* { dg-skip-if "limited code space" { pdp11-*-* } } */
#include "compat-common.h" #include "compat-common.h"
#include "fp-struct-defs.h" #include "fp-struct-defs.h"
......
/* Test structures passed by value, including to a function with a /* Test structures passed by value, including to a function with a
variable-length argument list. Each struct contains an array variable-length argument list. Each struct contains an array
of small structs with two scalar members. */ of small structs with two scalar members. */
/* { dg-skip-if "limited code space" { pdp11-*-* } } */
extern void struct_by_value_8_x (void); extern void struct_by_value_8_x (void);
extern void exit (int); extern void exit (int);
......
/* { dg-skip-if "limited code space" { pdp11-*-* } } */
#include "compat-common.h" #include "compat-common.h"
#define T(N, TYPE) \ #define T(N, TYPE) \
......
/* Test structures passed by value, including to a function with a /* Test structures passed by value, including to a function with a
variable-length argument list. Each struct contains an array variable-length argument list. Each struct contains an array
of small structs, each with three scalar members. */ of small structs, each with three scalar members. */
/* { dg-skip-if "limited code space" { pdp11-*-* } } */
extern void struct_by_value_9_x (void); extern void struct_by_value_9_x (void);
extern void exit (int); extern void exit (int);
......
/* { dg-skip-if "limited code space" { pdp11-*-* } } */
#include "compat-common.h" #include "compat-common.h"
#define T(N, TYPE) \ #define T(N, TYPE) \
......
/* Test function return values. This test includes structs that are /* Test function return values. This test includes structs that are
arrays of unsigned integral scalars. */ arrays of unsigned integral scalars. */
/* { dg-skip-if "limited code space" { pdp11-*-* } } */
extern void struct_return_2_x (void); extern void struct_return_2_x (void);
extern void exit (int); extern void exit (int);
......
/* { dg-skip-if "limited code space" { pdp11-*-* } } */
#include "compat-common.h" #include "compat-common.h"
#ifdef SKIP_VA #ifdef SKIP_VA
......
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