Re: Using __attribute((packed))__ on picky architectures

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jan 16, 2009 at 10:33 AM, Ian Lance Taylor <iant@xxxxxxxxxx> wrote:

>> Is there some method to tell the compiler that *val may not be word
>> aligned, so the compiler can generate code to work around the
>> alignment issue (instead of assuming the *val will be word aligned)?
>
> No.  Avoid writing this sort of code.

I thought as much.

Then why is attribute((packed)) provided?  I really don't see a use
for it.  Why not rename it to __attribute__((addressviolation))?

Thanks.

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux