[Bug c/93910] -Waddress-of-packed-member triggered without actual access to a member or the address of a member

2020-02-26 Thread stephane.goujet at wanadoo dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93910 --- Comment #10 from stephane.goujet at wanadoo dot fr --- (In reply to stephane.goujet from comment #9) > 2. There are inconsistencies in the Warning: Another inconsistency: 2.c The documentation of the packed attribute says "This a

[Bug c/93910] -Waddress-of-packed-member triggered without actual access to a member or the address of a member

2020-02-25 Thread stephane.goujet at wanadoo dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93910 stephane.goujet at wanadoo dot fr changed: What|Removed |Added Status|RESOLVED|UNCONFIRMED

[Bug c/93910] -Waddress-of-packed-member triggered without actual access to a member or the address of a member

2020-02-24 Thread stephane.goujet at wanadoo dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93910 --- Comment #6 from stephane.goujet at wanadoo dot fr --- (In reply to Andreas Schwab from comment #5) > The packed attribute forces the alignment to 1, so there is no requirement > for its address to be aligned for its type. So one cou

[Bug c/93910] -Waddress-of-packed-member triggered without actual access to a member or the address of a member

2020-02-24 Thread stephane.goujet at wanadoo dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93910 --- Comment #3 from stephane.goujet at wanadoo dot fr --- (In reply to Mikael Pettersson from comment #2) > IMO the warning is correct. Simply _creating_ a misaligned pointer is > undefined behaviour, and there are machines where it can

[Bug c/93910] New: -Waddress-of-packed-member triggered without actual access to a member or the address of a member

2020-02-24 Thread stephane.goujet at wanadoo dot fr
Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: stephane.goujet at wanadoo dot fr Target Milestone: --- Hello, This warning is triggered when I just cast the address of a packed structure to an int