[Scummvm-tracker] [ScummVM :: Bugs] #13090: SYMBIAN: Build Failure Due to Certain Array Declaration Formats

ScummVM :: Bugs trac at scummvm.org
Thu Jan 20 19:50:12 UTC 2022


#13090: SYMBIAN: Build Failure Due to Certain Array Declaration Formats
-----------------------------+---------------------------------------------
Reporter:  fedor4ever        |       Owner:  sev-
    Type:  defect            |      Status:  new
Priority:  normal            |   Component:  Engine: Ultima
 Version:                    |  Resolution:
Keywords:  Symbian, build    |        Game:  Ultima IV: Quest of the Avatar
  error                      |
-----------------------------+---------------------------------------------
Comment (by fedor4ever):

 As said in GCC email packed Item struct has 41 byte size. Compiler
 generates right code and Symbian toolchain is fine too. GCC padding holes
 between word unaligned members if packing removed.

 That code broken for all ARM 32 bit before ARMv7. These cpu lacking
 unaligned data access.

 I play little with small test and found two solution:
 1. Do not use packing at all. I hope this doesn't break engines or cause
 big memory usage.
 2. Add compile-time check and fix them. For example making last member in
 ItemLocation 4 byte making struct size 44 bytes. Buid successful.
-- 
Ticket URL: <https://bugs.scummvm.org/ticket/13090#comment:19>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM


More information about the Scummvm-tracker mailing list