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]

Re: [v3] limits cleanups: move to cpu_limits.h, os/cpu sep, removal



Benjamin Kosnik wrote:

>> We could either keep the #ifdef or make a new s390x/ subdirectory;
>> I didn't do that originally only because the atomicity.h file can
>> be used on both s390 and s390x without changes, so there was no
>> necessity ...
>
>Let's try to avoid a new directory. What #ifdef?

This should work (similar to what you have for powerpc64):

#ifdef __s390x__
#define __glibcpp_long_bits 64
#endif

B.t.w. why did you keep the powerpc64 and sparc64 cases in the generic
gnu-linux/bits/os_define.h instead of using the arch headers?  Do we need
to do this for s390x as well or can the #ifdef be in
s390/bits/cpu_limits.h?


Mit freundlichen Gruessen / Best Regards

Ulrich Weigand

--
  Dr. Ulrich Weigand
  Linux for S/390 Design & Development
  IBM Deutschland Entwicklung GmbH, Schoenaicher Str. 220, 71032 Boeblingen
  Phone: +49-7031/16-3727   ---   Email: Ulrich.Weigand@de.ibm.com


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