Patchwork svr4.h avoidance: s390

login
register
mail settings
Submitter Joseph S. Myers
Date Dec. 9, 2010, 6:36 p.m.
Message ID <Pine.LNX.4.64.1012091835530.22364@digraph.polyomino.org.uk>
Download mbox | patch
Permalink /patch/74957/
State New
Headers show

Comments

Joseph S. Myers - Dec. 9, 2010, 6:36 p.m.
This patch in the series removing svr4.h from the headers used by
particular targets in GCC stops s390 targets from using that header.
All three targets used the header, but none actually ended up using
any macros from it, so the patch just updates config.gcc not to use
the header for those targets.

Tested building cc1 and xgcc for crosses to s390-linux-gnu,
s390x-linux-gnu and s390x-ibm-tpf.  OK to commit?

2010-12-09  Joseph Myers  <joseph@codesourcery.com>

	* config.gcc (s390-*-linux*, s390x-*-linux*, s390x-ibm-tpf*):
	Don't use svr4.h.
Andreas Krebbel - Dec. 13, 2010, 9:38 a.m.
> Tested building cc1 and xgcc for crosses to s390-linux-gnu,
> s390x-linux-gnu and s390x-ibm-tpf.  OK to commit?
> 
> 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
> 
> 	* config.gcc (s390-*-linux*, s390x-*-linux*, s390x-ibm-tpf*):
> 	Don't use svr4.h.

Bootstrapped and regtested on s390x. Please apply.

Thanks!

-Andreas-

Patch

Index: gcc/config.gcc
===================================================================
--- gcc/config.gcc	(revision 167658)
+++ gcc/config.gcc	(working copy)
@@ -2234,10 +2234,10 @@  rx-*-elf*)
 	tmake_file="${tmake_file} rx/t-rx"
 	;;
 s390-*-linux*)
-	tm_file="s390/s390.h dbxelf.h elfos.h svr4.h linux.h glibc-stdint.h s390/linux.h"
+	tm_file="s390/s390.h dbxelf.h elfos.h linux.h glibc-stdint.h s390/linux.h"
 	;;
 s390x-*-linux*)
-	tm_file="s390/s390x.h s390/s390.h dbxelf.h elfos.h svr4.h linux.h glibc-stdint.h s390/linux.h"
+	tm_file="s390/s390x.h s390/s390.h dbxelf.h elfos.h linux.h glibc-stdint.h s390/linux.h"
 	tm_p_file=s390/s390-protos.h
 	md_file=s390/s390.md
 	extra_modes=s390/s390-modes.def
@@ -2245,7 +2245,7 @@  s390x-*-linux*)
 	tmake_file="${tmake_file} s390/t-linux64"
 	;;
 s390x-ibm-tpf*)
-        tm_file="s390/s390x.h s390/s390.h dbxelf.h elfos.h svr4.h s390/tpf.h"
+        tm_file="s390/s390x.h s390/s390.h dbxelf.h elfos.h s390/tpf.h"
         tm_p_file=s390/s390-protos.h
         md_file=s390/s390.md
         extra_modes=s390/s390-modes.def