public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [Committed] S/390 TPF: Fix target default flags
@ 2009-10-07  9:15 Andreas Krebbel
  2009-10-07 12:25 ` Joseph S. Myers
  0 siblings, 1 reply; 3+ messages in thread
From: Andreas Krebbel @ 2009-10-07  9:15 UTC (permalink / raw)
  To: gcc-patches

Hi,

when the S/390 back-end options were moved to s390.opt we forgot to
adjust the tpf default flags accordingly.

Done with the attached patch.

Committed to 4.3, 4.4 and mainline.

Bye,

-Andreas-


2009-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

	* config/s390/tpf.h (TARGET_DEFAULT): Remove MASK_HARD_FLOAT and
	add MASK_HARD_DFP.


Index: gcc/config/s390/tpf.h
===================================================================
*** gcc/config/s390/tpf.h.orig	2009-10-05 16:48:41.000000000 +0200
--- gcc/config/s390/tpf.h	2009-10-06 09:34:01.000000000 +0200
*************** along with GCC; see the file COPYING3.  
*** 55,61 ****
     enable TPF profiling support and the standard backchain by default.  */
  #undef TARGET_DEFAULT
  #define TARGET_DEFAULT (MASK_TPF_PROFILING | MASK_64BIT | MASK_ZARCH \
! 			| MASK_HARD_FLOAT | MASK_BACKCHAIN)
  
  /* Exception handling.  */
  
--- 55,61 ----
     enable TPF profiling support and the standard backchain by default.  */
  #undef TARGET_DEFAULT
  #define TARGET_DEFAULT (MASK_TPF_PROFILING | MASK_64BIT | MASK_ZARCH \
! 			| MASK_HARD_DFP | MASK_BACKCHAIN)
  
  /* Exception handling.  */
  

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Committed] S/390 TPF: Fix target default flags
  2009-10-07  9:15 [Committed] S/390 TPF: Fix target default flags Andreas Krebbel
@ 2009-10-07 12:25 ` Joseph S. Myers
  2009-11-09 11:16   ` Andreas Krebbel
  0 siblings, 1 reply; 3+ messages in thread
From: Joseph S. Myers @ 2009-10-07 12:25 UTC (permalink / raw)
  To: Andreas Krebbel; +Cc: gcc-patches

On Wed, 7 Oct 2009, Andreas Krebbel wrote:

> Hi,
> 
> when the S/390 back-end options were moved to s390.opt we forgot to
> adjust the tpf default flags accordingly.
> 
> Done with the attached patch.

If you're maintaining the TPF target, could you add the stdint.h type 
configuration for it to GCC?  Of the OSes listed in 
<http://gcc.gnu.org/ml/gcc/2009-07/msg00625.html> as needing it added, I 
think only OpenBSD has so far had it added since then.

-- 
Joseph S. Myers
joseph@codesourcery.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Committed] S/390 TPF: Fix target default flags
  2009-10-07 12:25 ` Joseph S. Myers
@ 2009-11-09 11:16   ` Andreas Krebbel
  0 siblings, 0 replies; 3+ messages in thread
From: Andreas Krebbel @ 2009-11-09 11:16 UTC (permalink / raw)
  To: Joseph S. Myers; +Cc: gcc-patches

Hi Joseph,

> If you're maintaining the TPF target, could you add the stdint.h type 
> configuration for it to GCC?  Of the OSes listed in 
> <http://gcc.gnu.org/ml/gcc/2009-07/msg00625.html> as needing it added, I 
> think only OpenBSD has so far had it added since then.

I'm not actually maintaining the TPF back-end. I just take care of it
since it is part of the s390 Linux back-end.  TPF does not use glibc
but they use the glibc stdint.h header so it should be correct to
simply use the glibc-stdint.h definitions.

Bye,

-Andreas-


Perhaps like this:

Index: gcc/config.gcc
===================================================================
--- gcc/config.gcc.orig 2009-11-09 11:13:25.000000000 +0100
+++ gcc/config.gcc      2009-11-09 11:13:34.000000000 +0100
@@ -2093,7 +2093,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 svr4.h s390/tpf.h glibc-stdint.h"
         tm_p_file=s390/s390-protos.h
         md_file=s390/s390.md
         extra_modes=s390/s390-modes.def
@@ -2101,6 +2101,7 @@ s390x-ibm-tpf*)
         extra_parts="crtbeginS.o crtendS.o"
         thread_file='tpf'
        extra_options="${extra_options} s390/tpf.opt"
+       use_gcc_stdint=wrap
        ;;
 score-*-elf)
         tm_file="dbxelf.h elfos.h score/elf.h score/score.h newlib-stdint.h"

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-11-09 10:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-07  9:15 [Committed] S/390 TPF: Fix target default flags Andreas Krebbel
2009-10-07 12:25 ` Joseph S. Myers
2009-11-09 11:16   ` Andreas Krebbel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).