Commit 7036ee24 by Nick Clifton Committed by Nick Clifton

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
parent 200eb7d2
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> 2011-04-27 Richard Guenther <rguenther@suse.de>
* gcc.dg/tree-ssa/pr23382.c: Remove. * gcc.dg/tree-ssa/pr23382.c: Remove.
......
...@@ -58,6 +58,8 @@ extern void abort (void); ...@@ -58,6 +58,8 @@ extern void abort (void);
# else # else
# define PIC_REG "30" # define PIC_REG "30"
# endif # endif
#elif defined(__RX__)
/* No pic register. */
#elif defined(__s390__) #elif defined(__s390__)
# define PIC_REG "12" # define PIC_REG "12"
#elif defined(__sparc__) #elif defined(__sparc__)
......
...@@ -4,10 +4,10 @@ typedef unsigned short INT16U; ...@@ -4,10 +4,10 @@ typedef unsigned short INT16U;
typedef struct tst_2 typedef struct tst_2
{ {
INT16U f0; // [+0] INT16U f0; /* [+0] */
INT16U * f1; // [+2] INT16U * f1; /* [+2] */
INT16U f2; // [+6] INT16U f2; /* [+6] */
INT16U * f3; // [+8] INT16U * f3; /* [+8] */
} __attribute__ ((__packed__)) t2; } __attribute__ ((__packed__)) t2;
#include <stddef.h> #include <stddef.h>
......
...@@ -3578,6 +3578,9 @@ proc add_options_for_ieee { flags } { ...@@ -3578,6 +3578,9 @@ proc add_options_for_ieee { flags } {
|| [istarget "sh*-*-*"] } { || [istarget "sh*-*-*"] } {
return "$flags -mieee" return "$flags -mieee"
} }
if { [istarget "rx-*-*"] } {
return "$flags -mnofpu"
}
return $flags return $flags
} }
......
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