From 7036ee2437cd84d585a4149020a2d1fcc89d88fd Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 27 Apr 2011 14:58:21 +0000 Subject: [PATCH] 20020312-2.c: Add definition for RX. * gcc.dg/20020312-2.c: Add definition for RX. * lib/target-supports.exp (add_options_for_ieee): Use -mnofpu option with RX targets. * gcc.target/rx/pack.c: Replace C++ style // comments with C style /* */ comments. From-SVN: r173034 --- gcc/testsuite/ChangeLog | 10 ++++++++++ gcc/testsuite/gcc.dg/20020312-2.c | 2 ++ gcc/testsuite/gcc.target/rx/pack.c | 8 ++++---- gcc/testsuite/lib/target-supports.exp | 3 +++ 4 files changed, 19 insertions(+), 4 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index a745edcac56..25cf23d3f75 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,13 @@ +2011-04-27 Nick Clifton + + * gcc.dg/20020312-2.c: Add definition for RX. + + * lib/target-supports.exp (add_options_for_ieee): Use -mnofpu + option with RX targets. + + * gcc.target/rx/pack.c: Replace C++ style // comments with C style + /* */ comments. + 2011-04-27 Richard Guenther * gcc.dg/tree-ssa/pr23382.c: Remove. diff --git a/gcc/testsuite/gcc.dg/20020312-2.c b/gcc/testsuite/gcc.dg/20020312-2.c index bf8225a1a6b..0689636b2da 100644 --- a/gcc/testsuite/gcc.dg/20020312-2.c +++ b/gcc/testsuite/gcc.dg/20020312-2.c @@ -58,6 +58,8 @@ extern void abort (void); # else # define PIC_REG "30" # endif +#elif defined(__RX__) +/* No pic register. */ #elif defined(__s390__) # define PIC_REG "12" #elif defined(__sparc__) diff --git a/gcc/testsuite/gcc.target/rx/pack.c b/gcc/testsuite/gcc.target/rx/pack.c index 97c44f05d69..ce13b5021b2 100644 --- a/gcc/testsuite/gcc.target/rx/pack.c +++ b/gcc/testsuite/gcc.target/rx/pack.c @@ -4,10 +4,10 @@ typedef unsigned short INT16U; typedef struct tst_2 { - INT16U f0; // [+0] - INT16U * f1; // [+2] - INT16U f2; // [+6] - INT16U * f3; // [+8] + INT16U f0; /* [+0] */ + INT16U * f1; /* [+2] */ + INT16U f2; /* [+6] */ + INT16U * f3; /* [+8] */ } __attribute__ ((__packed__)) t2; #include diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index c7e1280e782..ce78eab1636 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -3578,6 +3578,9 @@ proc add_options_for_ieee { flags } { || [istarget "sh*-*-*"] } { return "$flags -mieee" } + if { [istarget "rx-*-*"] } { + return "$flags -mnofpu" + } return $flags } -- 2.30.2