Re: Tuple and changes for m68k with -malign-int

Richard via Libc-help <libc-help-9JcytcrH/[email protected]>
Newsgroups gmane.comp.lib.glibc.user,gmane.linux.debian.ports.68k,gmane.linux.debian.ports.68k,gmane.linux.ports.m68k
Message-ID <[email protected]>

On August 28, 2023 11:26:58 AM UTC, Richard <[email protected]> wrote:
>
>
>
>On August 28, 2023 7:00:07 AM UTC, Geert Uytterhoeven <[email protected]> wrote:
>>On Sun, Aug 27, 2023 at 11:36 AM James Le Cuirot
>><[email protected]> wrote:
>>> On Sun, 2023-08-27 at 10:46 +1000, Finn Thain wrote:

>>
>>Perhaps we need a new compiler warning: "hole in structure due to
>>non-natural alignment, please consider adding explicit padding"?
>
>Sounds reasonable but I am afraid in 99% of cases this would be completely irrelevant and not break anything so the acceptance would be pretty low. 

On a second thought, that warning might get some acceptance if it is formulated slightly differently.. making it more clear that the way the struct is arranged will waste memory in addition to creating potential portability problems?


Richard
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.