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 c++]: PR c++/44294 abi/bitfield12.C regression


On Thu, May 27, 2010 at 10:52 AM, H.J. Lu <hjl.tools@gmail.com> wrote:
> On Thu, May 27, 2010 at 10:33 AM, H.J. Lu <hjl.tools@gmail.com> wrote:
>> On Thu, May 27, 2010 at 10:24 AM, H.J. Lu <hjl.tools@gmail.com> wrote:
>>> On Thu, May 27, 2010 at 8:02 AM, Kai Tietz <ktietz70@googlemail.com> wrote:
>>>> Hello,
>>>>
>>>> the issue is here that in class.c function layout_class_type an
>>>> underflow of itk could be produced, when first enumerator is already
>>>> end-criteria.
>>>>
>>>> ChangeLog
>>>>
>>>> 2010-05-27 ?Kai Tietz
>>>>
>>>> ? ? ? ?PR c++/44294
>>>> ? ? ? ?* class.c (layout_class_type): Prevent underflow for itk.
>>>>
>>>> Tested for x86_64-pc-linux-gnu and x86_64-w64-mingw32. Ok for apply?
>>>>
>>>
>>> I am not sure if it is correct.. We now use __int128 for the type of bitfield.
>>>
>>
>
> MAX_FIXED_MODE_SIZE is wrong when __int128 is available.
>

Here is a patch.  OK to install?

Thanks.

-- 
H.J.
---
2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>

	PR c++/44294
	* stor-layout.c (MAX_FIXED_MODE_SIZE): Set to TImode if __int128
	is available.

Attachment: gcc-pr44294-1.patch
Description: Text document


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