http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52878
--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> 2012-04-06 12:23:46 UTC --- (In reply to comment #1) > Created attachment 27102 [details] > A patch > > This patch works for Linux/sparc. But it may not work > for all sparc targets which don't include long-double-switch.opt. This addition: diff --git a/gcc/config/sparc/sparc.h b/gcc/config/sparc/sparc.h index a1919b4..a04f8ef 100644 --- a/gcc/config/sparc/sparc.h +++ b/gcc/config/sparc/sparc.h @@ -53,6 +53,14 @@ along with GCC; see the file COPYING3. If not see #endif /* IN_LIBGCC2 */ #define TARGET_ARCH64 (! TARGET_ARCH32) +#ifndef TARGET_LONG_DOUBLE_128 +#define TARGET_LONG_DOUBLE_128 0 +#endif + +#ifndef MASK_LONG_DOUBLE_128 +#define MASK_LONG_DOUBLE_128 0 +#endif + /* Code model selection in 64-bit environment. The machine mode used for addresses is 32-bit wide: is also needed.