Re: sid doesn't build with gcc 4.0.x

"Frank Ch. Eigler" <[email protected]>
Newsgroups gmane.comp.emulators.sid.devel
Message-ID <[email protected]>
Hi -


aldyh wrote:

> Sid is not building with GCC 4.0 or above.  The problem is in
> component/cgen-cpu/cgen-cpu.h's use of reinterpret_cast.  The
> reinterpret_cast construct is not allowed amongst integers.

I'm checking in a variant of this code which uses pointer aliasing.
Some super-keener could make a union-based version (pre-approved).

> 	* component/interrupt/components.h (bus_size): Fix constructor to
> 	be legitimate C++.

This one is ok, feel free to commit.

> 	* component/cgen-cpu/cgen-cpu.h (GETMEMSF): Change
> 	reinterpret_cast to static_cast.
> 	(SETMEMSF): Same.
> 	(GETMEMDF): Same.
> 	(SETMEMDF): Same.

This one is not (but I will commit a better one).


- FChE
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCxFQqVZbdDOm/ZT0RAvY2AJ9CuIHj4xb6aLgb5Ws4d5sJSVSbtgCdE+44
fwQn1p1FqJfdKZ8pZqeVrgA=
=xcx3
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.