This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH] Fix frame ID comparison problem on s390
Daniel Jacobowitz <drow@false.org> writes:
>> + /* Flags to indicate the above fields have valid contents. */
>> + int stack_addr_p : 1;
>> + int code_addr_p : 1;
>> + int special_addr_p : 1;
>> };
>>
>> /* Methods for constructing and comparing Frame IDs.
>
> Some future version of GCC will warn about this mistake. The only
> valid values for "int : 1" are 0 and -1.
Actually it can be both 0/-1 and 0/1, since it is implementation defined
whether unadorned int bitfields are signed or unsigned.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."