This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch, rfa] rewrite TPF OS handling
- From: Ulrich Weigand <uweigand at de dot ibm dot com>
- To: krebbel1 at de dot ibm dot com (Andreas Krebbel)
- Cc: echristo at redhat dot com (Eric Christopher), gcc-patches at gcc dot gnu dot org
- Date: Thu, 14 Jul 2005 23:06:35 +0200 (CEST)
- Subject: Re: [patch, rfa] rewrite TPF OS handling
Andreas Krebbel wrote:
> s390 and s390x do not bootstrap with your recent tpf changes. You have included
> tpf.md in s390.md so the tpf options should also be available for s390.
On the other hand, the point of introducing tpf.opt in the first place
was to not even offer TPF options to Linux users ...
I've applied the following patch instead, which simply provides a default
definition of TARGET_TPF_PROFILING if not defined in options.h.
Bootstrapped/regtested on s390-ibm-linux and s390x-ibm-linux,
committed to mainline.
Eric Christoper wrote:
>Unless someone else can come up with the machinery for multiple md files
>in config.gcc, e.g.
>
>md_file="config/s390/s390.md config/s390/tpf.md"
>
>to work. Then I wouldn't need to include it at all...
This would sure be nice. On the other hand, TARGET_TPF_PROFILING is
referenced in s390.c too, so something like the below would still be
necessary ...
Bye,
Ulrich
ChangeLog:
* config/s390/s390.h (TARGET_TPF_PROFILING): Add default definition.
Index: gcc/config/s390/s390.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/s390/s390.h,v
retrieving revision 1.143
diff -c -p -r1.143 s390.h
*** gcc/config/s390/s390.h 29 Jun 2005 15:21:42 -0000 1.143
--- gcc/config/s390/s390.h 13 Jul 2005 22:23:18 -0000
*************** extern enum processor_flags s390_arch_fl
*** 71,76 ****
--- 71,81 ----
/* Run-time target specification. */
+ /* Defaults for option flags defined only on some subtargets. */
+ #ifndef TARGET_TPF_PROFILING
+ #define TARGET_TPF_PROFILING 0
+ #endif
+
/* This will be overridden by OS headers. */
#define TARGET_TPF 0
--
Dr. Ulrich Weigand
Linux on zSeries Development
Ulrich.Weigand@de.ibm.com