This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

S/390 config file changes



This patch switches the s390 and s390x targets to use new-style tm_file lists,
as suggested by Joseph Myers.  It also adds the necessary specifications for 
tm_p_file, md_file, and out_file to make the s390x targets actually work.

OK to commit the config changes to mainline?

Bye,
Ulrich


2001-08-11  Ulrich Weigand  <uweigand@de.ibm.com>:
 
        * config.gcc (s390-*-linux-*, s390x-*-linux*): Switch to 
	new-style tm_file specification.  Add xmake_file fragments.
	Specify correct tm_p_file, md_file, and out_file for s390x. 

	* config/s390/linux.h, linux64.h:  Don't include other target
	macro header files.  Now handled via tm_file.

	* config/s390/linux.h, s390.h:  (IEEE_FLOAT, TARGET_IEEE_FLOAT, 
	TARGET_IBM_FLOAT): Move from linux.h to s390.h to ensure they
	are defined before use.
	


Index: gcc/config.gcc
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config.gcc,v
retrieving revision 1.82
diff -c -p -r1.82 config.gcc
*** config.gcc	2001/08/09 22:33:17	1.82
--- config.gcc	2001/08/11 23:05:04
*************** rs6000-*-lynxos*)
*** 2777,2794 ****
  	use_collect2=yes
  	;;
  s390-*-linux*)	
! 	xmake_file=x-linux
! 	tm_file=s390/linux.h
  	tmake_file="t-linux s390/t-linux"
  	extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
  	if test x$enable_threads = xyes; then
  		thread_file='posix'
  	fi
  	;;
  s390x-*-linux*)	
! 	xmake_file=x-linux
! 	tm_file=s390/linux64.h
  	tmake_file="t-linux s390/t-linux"
  	extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
  	if test x$enable_threads = xyes; then
  		thread_file='posix'
--- 2777,2797 ----
  	use_collect2=yes
  	;;
  s390-*-linux*)	
! 	tm_file="s390/s390.h linux.h s390/linux.h"
  	tmake_file="t-linux s390/t-linux"
+ 	xmake_file=x-linux
  	extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
  	if test x$enable_threads = xyes; then
  		thread_file='posix'
  	fi
  	;;
  s390x-*-linux*)	
! 	tm_file="s390/s390.h linux.h s390/linux.h s390/linux64.h"
! 	tm_p_file=s390/s390-protos.h
! 	md_file=s390/s390.md
! 	out_file=s390/s390.c
  	tmake_file="t-linux s390/t-linux"
+ 	xmake_file=x-linux
  	extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
  	if test x$enable_threads = xyes; then
  		thread_file='posix'
Index: gcc/config/s390/linux.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/s390/linux.h,v
retrieving revision 1.3
diff -c -p -r1.3 linux.h
*** linux.h	2001/08/11 21:09:37	1.3
--- linux.h	2001/08/11 23:05:08
*************** Boston, MA 02111-1307, USA.  */
*** 23,36 ****
  #ifndef _LINUX_H
  #define _LINUX_H
  
- #define IEEE_FLOAT 1
- #define TARGET_IBM_FLOAT           0
- #define TARGET_IEEE_FLOAT          1
- 
- #include <s390/s390.h>              /* Base s390 target machine definitions*/
- 
- #include <linux.h>
- 
  #undef SIZE_TYPE                       /* use default                      */
  
  #undef TARGET_VERSION
--- 23,28 ----
Index: gcc/config/s390/linux64.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/s390/linux64.h,v
retrieving revision 1.2
diff -c -p -r1.2 linux64.h
*** linux64.h	2001/08/11 20:56:12	1.2
--- linux64.h	2001/08/11 23:05:08
*************** Boston, MA 02111-1307, USA.  */
*** 22,29 ****
  #ifndef _LINUX64_H
  #define _LINUX64_H
  
- #include <s390/linux.h>              /* Base linux target machine definitions*/
- 
  #undef PTRDIFF_TYPE
  #define PTRDIFF_TYPE "long int"
  
--- 22,27 ----
Index: gcc/config/s390/s390.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/s390/s390.h,v
retrieving revision 1.3
diff -c -p -r1.3 s390.h
*** s390.h	2001/08/11 21:09:37	1.3
--- s390.h	2001/08/11 23:05:12
*************** extern int target_flags;
*** 65,70 ****
--- 65,75 ----
  /* Define this to change the optimizations performed by default.  */
  #define OPTIMIZATION_OPTIONS(LEVEL, SIZE) optimization_options(LEVEL, SIZE)
  
+ /* Defines for REAL_ARITHMETIC.  */
+ #define IEEE_FLOAT 1
+ #define TARGET_IBM_FLOAT           0
+ #define TARGET_IEEE_FLOAT          1 
+ 
  /* The current function count for create unique internal labels.  */
  
  extern int s390_function_count;
-- 
  Dr. Ulrich Weigand
  weigand@informatik.uni-erlangen.de


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]