This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/52878] [4.8 regression] bootstrap failure: "MASK_LONG_DOUBLE_128" redefined
- From: "hjl.tools at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 06 Apr 2012 12:23:46 +0000
- Subject: [Bug bootstrap/52878] [4.8 regression] bootstrap failure: "MASK_LONG_DOUBLE_128" redefined
- Auto-submitted: auto-generated
- References: <bug-52878-4@http.gcc.gnu.org/bugzilla/>
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.