[fpc-devel] Note message scanner_n_alignment_larger_than_max generates many messages for 8 bit AVR
Christo Crause
christo.crause at gmail.com
Thu Dec 25 08:54:59 CET 2025
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20251225/acda1069/attachment.htm>
More information about the fpc-devel
mailing list