This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
S/390: Define ASM_SPEC for TPF
- From: Ulrich Weigand <uweigand at de dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: jtison at us dot ibm dot com
- Date: Fri, 8 Apr 2005 19:07:59 +0200 (CEST)
- Subject: S/390: Define ASM_SPEC for TPF
Hello,
this adds the correct ASM_SPEC define to tpf.h to enable passing
relevant options through to the assembler. The macro is defined
the same way as in linux.h.
This fixes problems on TFP when building with -march=z990,
reported by Jim Tison.
Applied to mainline, 4.0 branch and 3.4 branch.
Bye,
Ulrich
ChangeLog:
* config/s390/tpf.h (ASM_SPEC): Define.
Index: gcc/config/s390/tpf.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/s390/tpf.h,v
retrieving revision 1.5
diff -c -p -r1.5 tpf.h
*** gcc/config/s390/tpf.h 23 Nov 2004 17:39:59 -0000 1.5
--- gcc/config/s390/tpf.h 8 Apr 2005 16:42:27 -0000
*************** Software Foundation, 59 Temple Place - S
*** 101,106 ****
--- 101,109 ----
#undef CPLUSPLUS_CPP_SPEC
#define CPLUSPLUS_CPP_SPEC "-D_GNU_SOURCE %(cpp)"
+ #undef ASM_SPEC
+ #define ASM_SPEC "%{m31&m64}%{mesa&mzarch}%{march=*}"
+
#undef LIB_SPEC
#define LIB_SPEC "%{pthread:-lpthread} -lc"
--
Dr. Ulrich Weigand
Linux on zSeries Development
Ulrich.Weigand@de.ibm.com