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]
Other format: [Raw text]

Re: [patch mingw]: Add multilib support for i?86-w64-mingw32 target


2009/9/13 Joseph S. Myers <joseph@codesourcery.com>:
> On Sun, 13 Sep 2009, Kai Tietz wrote:
>
>> See for this comment in hwint.h of gcc.
>>
>> "With a sane ABI, 'long' is the largest efficient host integer type.
>> Thus, we use that unless we have to use 'long long' or '__int64'
>> because we're targeting a 64-bit machine from a 32-bit host. ?"
>
> That comment is about the setting of HOST_WIDE_INT. ?The change I think is
> wrong is that relating to HOST_WIDEST_FAST_INT, to which that comment is
> irrelevant.
>
> --
> Joseph S. Myers
> joseph@codesourcery.com
>

Hmm, well for x64 it has to be set (in hwint.h and
USE_LONG_LONG_FOR_WIDEST_FAST_INT) HOST_WIDEST_FAST_INT is defined as
long, and HOST_BITS_PER_WIDEST_FAST_INT as HOST_BITS_PER_LONG, which
is at least wrong for w64. As this flag is controlled by the
config.host, we have here just the choice of setting it, or not.
Btw this was the intention of my question, if cygwin host should have
this setting too, or not.

Cheers,
Kai

-- 
|  (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination


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