mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-20 21:50:17 +08:00
compat-common.h (DEBUG_INIT): New.
* gcc.dg/compat/compat-common.h (DEBUG_INIT): New. * gcc.dg/compat/scalar-by-value-1_x.c: Use it. * gcc.dg/compat/scalar-by-value-2_x.c: Ditto. * gcc.dg/compat/scalar-by-value-3_x.c: Ditto. * gcc.dg/compat/scalar-by-value-4_x.c: Ditto. * gcc.dg/compat/scalar-return-1_x.c: Ditto. * gcc.dg/compat/scalar-return-2_x.c: Ditto. * gcc.dg/compat/scalar-return-3_x.c: Ditto. * gcc.dg/compat/scalar-return-4_x.c: Ditto. * gcc.dg/compat/struct-by-value-10_x.c: Ditto. * gcc.dg/compat/struct-by-value-11_x.c: Ditto. * gcc.dg/compat/struct-by-value-12_x.c: Ditto. * gcc.dg/compat/struct-by-value-13_x.c: Ditto. * gcc.dg/compat/struct-by-value-14_x.c: Ditto. * gcc.dg/compat/struct-by-value-15_x.c: Ditto. * gcc.dg/compat/struct-by-value-16_x.c: Ditto. * gcc.dg/compat/struct-by-value-17_x.c: Ditto. * gcc.dg/compat/struct-by-value-18_x.c: Ditto. * gcc.dg/compat/struct-by-value-2_x.c: Ditto. * gcc.dg/compat/struct-by-value-3_x.c: Ditto. * gcc.dg/compat/struct-by-value-4_x.c: Ditto. * gcc.dg/compat/struct-by-value-5_x.c: Ditto. * gcc.dg/compat/struct-by-value-6_x.c: Ditto. * gcc.dg/compat/struct-by-value-7_x.c: Ditto. * gcc.dg/compat/struct-by-value-8_x.c: Ditto. * gcc.dg/compat/struct-by-value-9_x.c: Ditto. * gcc.dg/compat/struct-return-10_x.c: Ditto. * gcc.dg/compat/struct-return-2_x.c: Ditto. * gcc.dg/compat/struct-return-3_x.c: Ditto. From-SVN: r68093
This commit is contained in:
parent
fdc88a4d4e
commit
c3d0647771
@ -1,3 +1,35 @@
|
||||
2003-06-17 Janis Johnson <janis187@us.ibm.com>
|
||||
|
||||
* gcc.dg/compat/compat-common.h (DEBUG_INIT): New.
|
||||
* gcc.dg/compat/scalar-by-value-1_x.c: Use it.
|
||||
* gcc.dg/compat/scalar-by-value-2_x.c: Ditto.
|
||||
* gcc.dg/compat/scalar-by-value-3_x.c: Ditto.
|
||||
* gcc.dg/compat/scalar-by-value-4_x.c: Ditto.
|
||||
* gcc.dg/compat/scalar-return-1_x.c: Ditto.
|
||||
* gcc.dg/compat/scalar-return-2_x.c: Ditto.
|
||||
* gcc.dg/compat/scalar-return-3_x.c: Ditto.
|
||||
* gcc.dg/compat/scalar-return-4_x.c: Ditto.
|
||||
* gcc.dg/compat/struct-by-value-10_x.c: Ditto.
|
||||
* gcc.dg/compat/struct-by-value-11_x.c: Ditto.
|
||||
* gcc.dg/compat/struct-by-value-12_x.c: Ditto.
|
||||
* gcc.dg/compat/struct-by-value-13_x.c: Ditto.
|
||||
* gcc.dg/compat/struct-by-value-14_x.c: Ditto.
|
||||
* gcc.dg/compat/struct-by-value-15_x.c: Ditto.
|
||||
* gcc.dg/compat/struct-by-value-16_x.c: Ditto.
|
||||
* gcc.dg/compat/struct-by-value-17_x.c: Ditto.
|
||||
* gcc.dg/compat/struct-by-value-18_x.c: Ditto.
|
||||
* gcc.dg/compat/struct-by-value-2_x.c: Ditto.
|
||||
* gcc.dg/compat/struct-by-value-3_x.c: Ditto.
|
||||
* gcc.dg/compat/struct-by-value-4_x.c: Ditto.
|
||||
* gcc.dg/compat/struct-by-value-5_x.c: Ditto.
|
||||
* gcc.dg/compat/struct-by-value-6_x.c: Ditto.
|
||||
* gcc.dg/compat/struct-by-value-7_x.c: Ditto.
|
||||
* gcc.dg/compat/struct-by-value-8_x.c: Ditto.
|
||||
* gcc.dg/compat/struct-by-value-9_x.c: Ditto.
|
||||
* gcc.dg/compat/struct-return-10_x.c: Ditto.
|
||||
* gcc.dg/compat/struct-return-2_x.c: Ditto.
|
||||
* gcc.dg/compat/struct-return-3_x.c: Ditto.
|
||||
|
||||
2003-06-16 Mark Mitchell <mark@codesourcery.com>
|
||||
|
||||
* lib/gcc-dg.exp (dg-xfail-if): Fix thinko.
|
||||
|
@ -6,12 +6,14 @@
|
||||
|
||||
#ifdef DBG
|
||||
#include <stdio.h>
|
||||
#define DEBUG_INIT setbuf (stdout, NULL);
|
||||
#define DEBUG_FPUTS(x) fputs (x, stdout)
|
||||
#define DEBUG_DOT putc ('.', stdout)
|
||||
#define DEBUG_NL putc ('\n', stdout)
|
||||
#define DEBUG_FAIL putc ('F', stdout); fails++
|
||||
#define DEBUG_CHECK { DEBUG_FAIL; } else { DEBUG_DOT; }
|
||||
#else
|
||||
#define DEBUG_INIT
|
||||
#define DEBUG_FPUTS(x)
|
||||
#define DEBUG_DOT
|
||||
#define DEBUG_NL
|
||||
|
@ -158,6 +158,8 @@ T(ld, long double, 92.0)
|
||||
void
|
||||
scalar_by_value_1_x ()
|
||||
{
|
||||
DEBUG_INIT
|
||||
|
||||
#define T(NAME) testit##NAME ();
|
||||
|
||||
T(ui)
|
||||
|
@ -80,6 +80,8 @@ T(f, float, 90.0)
|
||||
void
|
||||
scalar_by_value_2_x ()
|
||||
{
|
||||
DEBUG_INIT
|
||||
|
||||
#define T(NAME) testit##NAME ();
|
||||
|
||||
T(c)
|
||||
|
@ -155,6 +155,8 @@ T(cld, _Complex long double, (8.0,9.0))
|
||||
void
|
||||
scalar_by_value_3_x ()
|
||||
{
|
||||
DEBUG_INIT
|
||||
|
||||
#define T(NAME) testit##NAME ();
|
||||
|
||||
T(ci)
|
||||
|
@ -77,6 +77,8 @@ T(cf, _Complex float, (6.0,7.0))
|
||||
void
|
||||
scalar_by_value_4_x ()
|
||||
{
|
||||
DEBUG_INIT
|
||||
|
||||
#define T(NAME) testit##NAME ();
|
||||
|
||||
T(cc)
|
||||
|
@ -98,6 +98,8 @@ T(ld, long double, 92.0)
|
||||
void
|
||||
scalar_return_1_x ()
|
||||
{
|
||||
DEBUG_INIT
|
||||
|
||||
#define T(NAME) testit##NAME ();
|
||||
|
||||
T(ui)
|
||||
|
@ -66,6 +66,8 @@ T(f, float, 90.0)
|
||||
void
|
||||
scalar_return_2_x ()
|
||||
{
|
||||
DEBUG_INIT
|
||||
|
||||
#define T(NAME) testit##NAME ();
|
||||
|
||||
T(c)
|
||||
|
@ -95,6 +95,8 @@ T(cld, _Complex long double, (3.0,4.0))
|
||||
void
|
||||
scalar_return_3_x ()
|
||||
{
|
||||
DEBUG_INIT
|
||||
|
||||
#define T(NAME) testit##NAME ();
|
||||
|
||||
T(ci)
|
||||
|
@ -45,6 +45,8 @@ T(cf, _Complex float, (1.0,2.0))
|
||||
void
|
||||
scalar_return_4_x ()
|
||||
{
|
||||
DEBUG_INIT
|
||||
|
||||
#define T(NAME) testit##NAME ();
|
||||
|
||||
T(cc)
|
||||
|
@ -158,6 +158,8 @@ TEST(Sldf)
|
||||
void
|
||||
struct_by_value_10_x ()
|
||||
{
|
||||
DEBUG_INIT
|
||||
|
||||
#define T(TYPE) testit##TYPE ();
|
||||
|
||||
T(Sfd)
|
||||
|
@ -29,6 +29,8 @@ TEST(Scc16, _Complex char)
|
||||
void
|
||||
struct_by_value_11_x ()
|
||||
{
|
||||
DEBUG_INIT
|
||||
|
||||
#define T(TYPE, MTYPE) testit##TYPE ();
|
||||
|
||||
T(Scc1, _Complex char)
|
||||
|
@ -29,6 +29,8 @@ TEST(Scs16, _Complex short)
|
||||
void
|
||||
struct_by_value_12_x ()
|
||||
{
|
||||
DEBUG_INIT
|
||||
|
||||
#define T(TYPE, MTYPE) testit##TYPE ();
|
||||
|
||||
T(Scs1, _Complex short)
|
||||
|
@ -29,6 +29,8 @@ TEST(Sci16, _Complex int)
|
||||
void
|
||||
struct_by_value_13_x ()
|
||||
{
|
||||
DEBUG_INIT
|
||||
|
||||
#define T(TYPE, MTYPE) testit##TYPE ();
|
||||
|
||||
T(Sci1, _Complex int)
|
||||
|
@ -29,6 +29,8 @@ TEST(Scl16, _Complex long)
|
||||
void
|
||||
struct_by_value_14_x ()
|
||||
{
|
||||
DEBUG_INIT
|
||||
|
||||
#define T(TYPE, MTYPE) testit##TYPE ();
|
||||
|
||||
T(Scl1, _Complex long)
|
||||
|
@ -29,6 +29,8 @@ TEST(Scll16, _Complex long long)
|
||||
void
|
||||
struct_by_value_15_x ()
|
||||
{
|
||||
DEBUG_INIT
|
||||
|
||||
#define T(TYPE, MTYPE) testit##TYPE ();
|
||||
|
||||
T(Scll1, _Complex long long)
|
||||
|
@ -29,6 +29,8 @@ TEST(Scf16, _Complex float)
|
||||
void
|
||||
struct_by_value_16_x ()
|
||||
{
|
||||
DEBUG_INIT
|
||||
|
||||
#define T(TYPE, MTYPE) testit##TYPE ();
|
||||
|
||||
T(Scf1, _Complex float)
|
||||
|
@ -29,6 +29,8 @@ TEST(Scd16, _Complex double)
|
||||
void
|
||||
struct_by_value_17_x ()
|
||||
{
|
||||
DEBUG_INIT
|
||||
|
||||
#define T(TYPE, MTYPE) testit##TYPE ();
|
||||
|
||||
T(Scd1, _Complex double)
|
||||
|
@ -29,6 +29,8 @@ TEST(Scld16, _Complex long double)
|
||||
void
|
||||
struct_by_value_18_x ()
|
||||
{
|
||||
DEBUG_INIT
|
||||
|
||||
#define T(TYPE, MTYPE) testit##TYPE ();
|
||||
|
||||
T(Scld1, _Complex long double)
|
||||
|
@ -159,6 +159,8 @@ T(15, ui, unsigned int)
|
||||
void
|
||||
struct_by_value_2_x ()
|
||||
{
|
||||
DEBUG_INIT
|
||||
|
||||
#define T(N, NAME, TYPE) testit##NAME##N ();
|
||||
|
||||
T(0, uc, unsigned char)
|
||||
|
@ -161,6 +161,8 @@ T(Sics)
|
||||
void
|
||||
struct_by_value_3_x ()
|
||||
{
|
||||
DEBUG_INIT
|
||||
|
||||
#define T(TYPE) testit##TYPE ();
|
||||
|
||||
T(Sc)
|
||||
|
@ -183,6 +183,8 @@ T(15, Si)
|
||||
void
|
||||
struct_by_value_4_x ()
|
||||
{
|
||||
DEBUG_INIT
|
||||
|
||||
#define T(N, TYPE) testit##TYPE##N ();
|
||||
|
||||
T(0, Sc)
|
||||
|
@ -29,6 +29,8 @@ TEST(Sf16, float)
|
||||
void
|
||||
struct_by_value_5_x ()
|
||||
{
|
||||
DEBUG_INIT
|
||||
|
||||
#define T(TYPE, MTYPE) testit##TYPE ();
|
||||
|
||||
T(Sf1, float)
|
||||
|
@ -29,6 +29,8 @@ TEST(Sd16, double)
|
||||
void
|
||||
struct_by_value_6_x ()
|
||||
{
|
||||
DEBUG_INIT
|
||||
|
||||
#define T(TYPE, MTYPE) testit##TYPE ();
|
||||
|
||||
T(Sd1, double)
|
||||
|
@ -29,6 +29,8 @@ TEST(Sld16, long double)
|
||||
void
|
||||
struct_by_value_7_x ()
|
||||
{
|
||||
DEBUG_INIT
|
||||
|
||||
#define T(TYPE, MTYPE) testit##TYPE ();
|
||||
|
||||
T(Sld1, long double)
|
||||
|
@ -167,6 +167,8 @@ T(15, Sis)
|
||||
void
|
||||
struct_by_value_8_x ()
|
||||
{
|
||||
DEBUG_INIT
|
||||
|
||||
#define T(N, TYPE) testit##TYPE##N ();
|
||||
|
||||
T(0, Ssc)
|
||||
|
@ -170,6 +170,8 @@ T(15, Scis)
|
||||
void
|
||||
struct_by_value_9_x ()
|
||||
{
|
||||
DEBUG_INIT
|
||||
|
||||
#define T(N, TYPE) testit##TYPE##N ();
|
||||
|
||||
T(0, Scsi)
|
||||
|
@ -93,6 +93,8 @@ T(Sldf);
|
||||
void
|
||||
struct_return_10_x ()
|
||||
{
|
||||
DEBUG_INIT
|
||||
|
||||
#define T(TYPE) testit##TYPE ();
|
||||
|
||||
T(Sfd);
|
||||
|
@ -156,6 +156,8 @@ T(15, ui, unsigned int)
|
||||
void
|
||||
struct_return_2_x ()
|
||||
{
|
||||
DEBUG_INIT
|
||||
|
||||
#define T(N, NAME, TYPE) testit##NAME##N ();
|
||||
|
||||
T(0, uc, unsigned char)
|
||||
|
@ -106,6 +106,8 @@ T(Sics)
|
||||
void
|
||||
struct_return_3_x ()
|
||||
{
|
||||
DEBUG_INIT
|
||||
|
||||
#define T(TYPE) testit##TYPE ();
|
||||
|
||||
T(Sc)
|
||||
|
Loading…
Reference in New Issue
Block a user