Fix UAE so that it will build under GCC 3.2.1. This is desirable
as we don't really want to force users to download and install
another compiler just to install a relatively small port.
Currently it won't, because the build process attempts to do some
voodoo on the CPU emulation code between compilation and assembly
in order to optimize it. AFAICT the optimization code makes a
number of naive assumptions about the generated assembly which
don't hold true anymore. The assembly GCC 3.2.1 generates causes
this process to abort and dump core, halting the build process.
Fix: Being of the firm belief that the compiler knows what it's doing
(and being unable to tell the difference between the unpatched
port under FreeBSD 4.x and my patches under -CURRENT), I think
that removing the offending black magic is an acceptable fix:
[New file 'patch-ab']
Then we can happily remove the dependency on GCC 2.95 from the
port's own Makefile:
How-To-Repeat: # cd /usr/ports/emulators/uae
# vi Makefile
dd:wq ( to remove the "USE_GCC" line )
Forgot to bump PORTREVISION - new diff attached, together with new patch.
Argh, I still didn't get this right! Revised patch-ab attached.
Committed, thanks !