Patchwork sparc64*-*-rtems* should not define __svr4__

login
register
mail settings
Submitter Eric Botcazou
Date May 14, 2013, 8:01 a.m.
Message ID <1881513.uhKBB5Q9Ng@polaris>
Download mbox | patch
Permalink /patch/243620/
State New
Headers show

Comments

Eric Botcazou - May 14, 2013, 8:01 a.m.
> 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  <ebotcazou@adacore.com>

	* config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
	* config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.

Patch

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