Vincent Snijders wrote:
Instead of testing for arm cpu, you could use FPC_REQUIRES_PROPER_ALIGNMENT too. So it is fixed for sparc as well.
yes, the changed patch is attached. Regards, Bernd.
Index: packages/graph/src/inc/gtext.inc =================================================================== --- packages/graph/src/inc/gtext.inc (Revision 10376) +++ packages/graph/src/inc/gtext.inc (Arbeitskopie) @@ -68,7 +68,12 @@ { pStroke = ^TStroke;} + +{$ifdef FPC_REQUIRES_PROPER_ALIGNMENT} + TStroke = record { avoid misaligned data access } +{$else} TStroke = packed record +{$endif FPC_REQUIRES_PROPER_ALIGNMENT} opcode: byte; x: smallint; { relative x offset character } y: smallint; { relative y offset character }
_______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel