> sparc64*-*-rtems* ends up with __svr4__ defined. The attached
> patch corrects that.
Let's remove the FIXME instead. Applied to mainline.
2013-05-14 Eric Botcazou <ebotca...@adacore.com>
* config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
* config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
--
Eric Botcazou
Index: config/sparc/sp64-elf.h
===================================================================
--- config/sparc/sp64-elf.h (revision 198799)
+++ config/sparc/sp64-elf.h (working copy)
@@ -30,10 +30,6 @@ along with GCC; see the file COPYING3.
/* Don't assume anything about the header files. */
#define NO_IMPLICIT_EXTERN_C
-/* __svr4__ is used by the C library (FIXME) */
-#undef CPP_SUBTARGET_SPEC
-#define CPP_SUBTARGET_SPEC "-D__svr4__"
-
#undef ASM_SPEC
#define ASM_SPEC "\
-s %{fpic|fPIC|fpie|fPIE:-K PIC} \
Index: config/sparc/openbsd64.h
===================================================================
--- config/sparc/openbsd64.h (revision 198799)
+++ config/sparc/openbsd64.h (working copy)
@@ -41,9 +41,6 @@ along with GCC; see the file COPYING3.
} \
while (0)
-#undef CPP_SUBTARGET_SPEC
-#define CPP_SUBTARGET_SPEC ""
-
/* Inherited from sp64-elf. */
#undef NO_IMPLICIT_EXTERN_C