Subject: Re: gcc-3.4 optimization kills "link sets"
To: None <M.Drochner@fz-juelich.de>
From: Jason Thorpe <thorpej@wasabisystems.com>
List: tech-toolchain
Date: 06/07/2004 11:00:46
--Apple-Mail-6-949864528
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII; format=flowed


On Jun 7, 2004, at 9:43 AM, Matthias Drochner wrote:

> Trying to build a kernel with gcc-3.4 I've found that the
> optimisation settings of the current default kernel Makefile
> cause unreferenced static variables to be optimized away,
> regardless of an __attribute__((unused)).

Does changing it to __attribute__((used)) fix the problem?

         -- Jason R. Thorpe <thorpej@wasabisystems.com>


--Apple-Mail-6-949864528
content-type: application/pgp-signature; x-mac-type=70674453;
	name=PGP.sig
content-description: This is a digitally signed message part
content-disposition: inline; filename=PGP.sig
content-transfer-encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (Darwin)

iD8DBQFAxK1TOpVKkaBm8XkRAlvRAJ4uknqPNTKGIzhmEiLRblNnDyeeBQCgq5XV
Q8BdWT4VAHlM55gNO/8AUhc=
=ypO/
-----END PGP SIGNATURE-----

--Apple-Mail-6-949864528--