diff options
author | Yotam Barnoy | 2010-08-31 15:24:08 +0000 |
---|---|---|
committer | Yotam Barnoy | 2010-08-31 15:24:08 +0000 |
commit | b5a17ca628e984fa13190c64fb5caef6108369ca (patch) | |
tree | 1a050aa7a615667131d7e05fcd167858879f99a1 /engines/cruise | |
parent | c0b119feda86ea4bc3246868e59e583354656d70 (diff) | |
download | scummvm-rg350-b5a17ca628e984fa13190c64fb5caef6108369ca.tar.gz scummvm-rg350-b5a17ca628e984fa13190c64fb5caef6108369ca.tar.bz2 scummvm-rg350-b5a17ca628e984fa13190c64fb5caef6108369ca.zip |
PSP: fix BS2 crash by disabling strict aliasing
The problem that caused the crash in BS2 had to do with GCC making improper assumptions about our code. Specifically, the alignment trick we use for READ_UINT32/16 allows some targets(e.g. MIPS) to generate better code, but it also goes against ANSI C aliasing rules, which prohibit the sharing of addresses between a struct and another variable value. Using -fno-strict-aliasing tells GCC not to assume strict ANSI C aliasing and also unfortunately prevents it from making some good optimizations.
This change is probably needed for other platforms as well -- the crash on the PSP was simply a very rare coincidence.
svn-id: r52473
Diffstat (limited to 'engines/cruise')
0 files changed, 0 insertions, 0 deletions