20020312-2.c: Add definition for RX.
authorNick Clifton <nickc@redhat.com>
Wed, 27 Apr 2011 14:58:21 +0000 (14:58 +0000)
committerNick Clifton <nickc@gcc.gnu.org>
Wed, 27 Apr 2011 14:58:21 +0000 (14:58 +0000)
* 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
gcc/testsuite/gcc.dg/20020312-2.c
gcc/testsuite/gcc.target/rx/pack.c
gcc/testsuite/lib/target-supports.exp

index a745edcac56e6d966f9eb682f0a13696426c2ff3..25cf23d3f75089893a06cc3fabd0fbbf88fc42fc 100644 (file)
@@ -1,3 +1,13 @@
+2011-04-27  Nick Clifton  <nickc@redhat.com>
+
+       * 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  <rguenther@suse.de>
 
        * gcc.dg/tree-ssa/pr23382.c: Remove.
index bf8225a1a6b5f29d16257eae4c3b91d3e08825c2..0689636b2da5540431b68cc62cb148b7cde3f9be 100644 (file)
@@ -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__)
index 97c44f05d695279ed2deb67d70cdecda4d4b7016..ce13b5021b2d60485f3f616c8c456484dbf3cecd 100644 (file)
@@ -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 <stddef.h>
index c7e1280e782c850ab078247bdfe50717c1049681..ce78eab1636dd8fa18590cdae316f9769d4188a0 100644 (file)
@@ -3578,6 +3578,9 @@ proc add_options_for_ieee { flags } {
          || [istarget "sh*-*-*"] } {
        return "$flags -mieee"
     }
+    if { [istarget "rx-*-*"] } {
+       return "$flags -mnofpu"
+    }
     return $flags
 }