I have noticed that recently the compiler nowadays issues many notes about
variable alignment, for example: test.pp(6,3) Note: Variable "A" has align
directive larger than system maximum alignment for variables.

This is quite annoying for the AVR architecture, which uses byte aligned
data access.  This means that for any variable larger than 1 byte in size
this message is generated. Would it make sense to suppress this message
(and the similar message for local variable alignment) for 8 bit targets?
Or maybe only show the note when the memory alignment is explicitly
specified by the user? Or am I missing some Pascal data alignment rule that
gets violated, hence the requirement of informing the user?

Best regards,
Christo
_______________________________________________
fpc-devel maillist  -  [email protected]
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to