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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93910
stephane.goujet at wanadoo dot fr changed:
What|Removed |Added
Status|RESOLVED|UNCONFIRMED
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
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
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