diff mbox

[s390] Revert TPF C++ library changes

Message ID 201506052240.t55Mebfa024719@greed.delorie.com
State New
Headers show

Commit Message

DJ Delorie June 5, 2015, 10:40 p.m. UTC
IBM made changes to no longer require 2 versions of libstdc++, so this
patch changes things back to the previous (compatible) way.

Also, TPF debuggers don't support discriminators, despite what GAS
supports, so disable them.

Ok?

	* config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
	(LIB_SPEC): Add.
	(SUPPORTS_DISCRIMINATOR): Define.

Comments

Jeff Law June 25, 2015, 5:11 p.m. UTC | #1
On 06/05/2015 04:40 PM, DJ Delorie wrote:
> IBM made changes to no longer require 2 versions of libstdc++, so this
> patch changes things back to the previous (compatible) way.
>
> Also, TPF debuggers don't support discriminators, despite what GAS
> supports, so disable them.
>
> Ok?
>
> 	* config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
> 	(LIB_SPEC): Add.
> 	(SUPPORTS_DISCRIMINATOR): Define.
But don't we need to support the older system (with 2 libstdc++s) and 
the newer system (just one libstdc++)?  Which implies these changes need 
to be conditional, right?

The SUPPORTS_DISCRIMINATOR change seems independent and is OK as-is.

jeff
DJ Delorie June 30, 2015, 1 a.m. UTC | #2
> But don't we need to support the older system (with 2 libstdc++s) and 
> the newer system (just one libstdc++)?  Which implies these changes need 
> to be conditional, right?

The CPP2 configuration was never shipped to TPF customers, so there's
no need to retain both ways.
Jeff Law June 30, 2015, 5:08 a.m. UTC | #3
On 06/29/2015 07:00 PM, DJ Delorie wrote:
>> But don't we need to support the older system (with 2 libstdc++s) and
>> the newer system (just one libstdc++)?  Which implies these changes need
>> to be conditional, right?
>
> The CPP2 configuration was never shipped to TPF customers, so there's
> no need to retain both ways.
Ah, then approved.

Jeff
DJ Delorie July 1, 2015, 8:19 p.m. UTC | #4
> Ah, then approved.

Thanks, committed.
diff mbox

Patch

Index: config/s390/tpf.h
===================================================================
--- config/s390/tpf.h	(revision 224174)
+++ config/s390/tpf.h	(working copy)
@@ -91,12 +91,16 @@  along with GCC; see the file COPYING3.  
 #define CPLUSPLUS_CPP_SPEC "-D_GNU_SOURCE %(cpp)"
 
 #undef ASM_SPEC
 #define ASM_SPEC "%{m31&m64}%{mesa&mzarch}%{march=*} \
                   -alshd=%b.lst"
 
+#undef LIB_SPEC
+#define LIB_SPEC "-lCTIS -lCISO -lCLBM -lCTAL -lCFVS -lCTBX -lCTXO \
+                  -lCJ00 -lCTDF -lCOMX -lCOMS -lCTHD -lCTAD -lTPFSTUB"
+
 #define ENTRY_SPEC "%{mmain:-entry=_start} \
                     %{!mmain:-entry=0}"
 
 /* All linking is done shared on TPF-OS.  */
 /* FIXME: When binutils patch for new emulation is committed
    then change emulation to elf64_s390_tpf.  */
@@ -107,12 +111,15 @@  along with GCC; see the file COPYING3.  
    %{shared: -shared} \
    %{!shared:-shared} \
    %(entry_spec)"
 
 /* IBM copies these libraries over with these names.  */
 #define MATH_LIBRARY "CLBM"
-#define LIBSTDCXX "CPP2"
+#define LIBSTDCXX "CPP1"
 
 #undef TARGET_LIBC_HAS_FUNCTION
 #define TARGET_LIBC_HAS_FUNCTION gnu_libc_has_function
 
+/* GAS supports it, but the debuggers don't, so avoid it.  */
+#define SUPPORTS_DISCRIMINATOR 0
+
 #endif /* ! _TPF_H */