From: Janis Johnson Date: Mon, 28 Sep 2009 18:35:54 +0000 (+0000) Subject: dfp.exp: Run tests from c-c++-common/dfp. X-Git-Tag: upstream/12.2.0~97087 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8387984e98cecc445b871da9a9e1968762cc266d;p=platform%2Fupstream%2Fgcc.git dfp.exp: Run tests from c-c++-common/dfp. * g++.dg/dfp/dfp.exp: Run tests from c-c++-common/dfp. * c-c++-common/dfp/func-vararg-alternate-d32.c: XFAIL for C++. * c-c++-common/dfp/func-vararg-dfp.c: Ditto. * c-c++-common/dfp/func-vararg-mixed.c: Ditto. * c-c++-common/dfp/func-vararg-mixed-2.c: Ditto. From-SVN: r152247 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 876e5bf..7d6539a 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,11 @@ 2009-09-28 Janis Johnson + * g++.dg/dfp/dfp.exp: Run tests from c-c++-common/dfp. + * c-c++-common/dfp/func-vararg-alternate-d32.c: XFAIL for C++. + * c-c++-common/dfp/func-vararg-dfp.c: Ditto. + * c-c++-common/dfp/func-vararg-mixed.c: Ditto. + * c-c++-common/dfp/func-vararg-mixed-2.c: Ditto. + * g++.dg/dfp/dfp.exp: Fix typo. * lib/target-supports.exp (check-effective-target-dfp-nocache): diff --git a/gcc/testsuite/c-c++-common/dfp/func-vararg-alternate-d32.c b/gcc/testsuite/c-c++-common/dfp/func-vararg-alternate-d32.c index 651b7e8..225c131 100644 --- a/gcc/testsuite/c-c++-common/dfp/func-vararg-alternate-d32.c +++ b/gcc/testsuite/c-c++-common/dfp/func-vararg-alternate-d32.c @@ -1,3 +1,4 @@ +/* { dg-xfail-run-if "32-bit vararg broken" { c++ } { "*" } { "" } } */ /* Simple test of vararg passing for problematic types with and without double values passed between them. */ diff --git a/gcc/testsuite/c-c++-common/dfp/func-vararg-dfp.c b/gcc/testsuite/c-c++-common/dfp/func-vararg-dfp.c index 5add1f7..53285df 100644 --- a/gcc/testsuite/c-c++-common/dfp/func-vararg-dfp.c +++ b/gcc/testsuite/c-c++-common/dfp/func-vararg-dfp.c @@ -1,3 +1,5 @@ +/* { dg-xfail-run-if "32-bit vararg broken" { c++ } { "*" } { "" } } */ + /* C99 6.5.2.2 Function calls. Test passing varargs of the decimal float types. */ diff --git a/gcc/testsuite/c-c++-common/dfp/func-vararg-mixed-2.c b/gcc/testsuite/c-c++-common/dfp/func-vararg-mixed-2.c index 893cdae..9c6be63 100644 --- a/gcc/testsuite/c-c++-common/dfp/func-vararg-mixed-2.c +++ b/gcc/testsuite/c-c++-common/dfp/func-vararg-mixed-2.c @@ -1,4 +1,5 @@ /* { dg-do run { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */ +/* { dg-xfail-run-if "32-bit vararg broken" { c++ } { "*" } { "" } } */ /* { dg-options "-mpreferred-stack-boundary=2" } */ /* C99 6.5.2.2 Function calls. diff --git a/gcc/testsuite/c-c++-common/dfp/func-vararg-mixed.c b/gcc/testsuite/c-c++-common/dfp/func-vararg-mixed.c index 1669eaf..032a105 100644 --- a/gcc/testsuite/c-c++-common/dfp/func-vararg-mixed.c +++ b/gcc/testsuite/c-c++-common/dfp/func-vararg-mixed.c @@ -1,3 +1,5 @@ +/* { dg-xfail-run-if "32-bit vararg broken" { c++ } { "*" } { "" } } */ + /* C99 6.5.2.2 Function calls. Test passing varargs of the combination of decimal float types and other types. */ diff --git a/gcc/testsuite/g++.dg/dfp/dfp.exp b/gcc/testsuite/g++.dg/dfp/dfp.exp index a34dd89..1e4c513 100644 --- a/gcc/testsuite/g++.dg/dfp/dfp.exp +++ b/gcc/testsuite/g++.dg/dfp/dfp.exp @@ -48,9 +48,12 @@ set DEFAULT_CXXFLAGS "" # Initialize `dg'. dg-init -# Main loop. +# Main loop. Run the tests that are specific to C++. dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.\[C]] \ "" $DEFAULT_CXXFLAGS +# Run tests that are shared with C testing. +dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/dfp/*.c]] \ + "" $DEFAULT_CXXFLAGS # All done. dg-finish