This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch]: Add support of new __int128 type for targets having 128-bit integer scalar support
- From: Dave Korn <dave dot korn dot cygwin at googlemail dot com>
- To: Kai Tietz <ktietz70 at googlemail dot com>
- Cc: "Joseph S. Myers" <joseph at codesourcery dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>, Nathan Sidwell <nathan at codesourcery dot com>
- Date: Thu, 06 May 2010 01:14:19 +0100
- Subject: Re: [patch]: Add support of new __int128 type for targets having 128-bit integer scalar support
- References: <s2x90baa01f1004080322k82ab08e0s4741cab8495c86a2@mail.gmail.com> <Pine.LNX.4.64.1004152051030.857@digraph.polyomino.org.uk> <r2q90baa01f1004160145g5eaf8f4cp1bc2435ce92d62d@mail.gmail.com> <Pine.LNX.4.64.1004161040510.8904@digraph.polyomino.org.uk> <p2o90baa01f1004160458jd7235899j417af1d8ffb68c5d@mail.gmail.com> <Pine.LNX.4.64.1004302021210.24006@digraph.polyomino.org.uk> <r2x90baa01f1005040657l3c17052cw90c572a64a1e357@mail.gmail.com> <Pine.LNX.4.64.1005041635140.6093@digraph.polyomino.org.uk> <x2k90baa01f1005050830x19ebfc24n30edaf9de1b93c9@mail.gmail.com>
On 05/05/2010 16:30, Kai Tietz wrote:
> 2010/5/4 Joseph S. Myers:
>> There are no current targets with non-8-bit-bytes. If such a target it
>> added, the existing
>>
>> #if HOST_BITS_PER_WIDE_INT >= 64
>> if (targetm.scalar_mode_supported_p (TImode))
>> ...
>> #endif
>>
>> conditionals are one of the many things that will need fixing.
>
> Well, I thought cray is one of those targets with non-8-bit-bytes, but
> well, maybe I am wrong here.
There may be(*) private targets with non 8-bit bytes, we should really try
not to embed any more CHAR_BIT==8 assumptions than already exist.
cheers,
DaveK
--
(*) - I recently needed to build a dummy compiler for just such a target: the
compiler did not need to work, just the driver needed to function enough for
Eclipse integration when 'compiling' *.s files. As it currently stands, I
only had to fix a few trivial problems to make that much work. There were
definitely further problems down the road had I had to go any further with it,
but it was enough to convince me that we're not in *too* bad shape w.r.t.
non-8-bit-bytes and it would be worth trying not to make it worse.