This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: attribute((mode(byte))) no longer works in typedef
On Jun 17, 2011, at 2:15 PM, Richard Henderson wrote:
> On 06/17/2011 08:54 AM, Paul Koning wrote:
>> In GCC 3.3.3, I had a typedef with attribute((mode(byte))) on it. That worked (the resulting type had size 1).
>>
>> In GCC 4.5.1, this no longer works; the attribute is silently ignored.
>
> It certainly does work. libgcc relies on it.
>
> You'll have to file a proper bug report for your case.
I did some more testing. The actual answer is that the compiler has the correct sizeof() but GDB no longer does. This causes value printing in gdb to get messed up.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49459
paul