This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GC changes
- To: amylaar at cambridge dot redhat dot com, egcs at tantalophile dot demon dot co dot uk
- Subject: Re: GC changes
- From: Mike Stump <mrs at windriver dot com>
- Date: Sun, 14 Jan 2001 18:55:37 -0800 (PST)
- Cc: gcc at gcc dot gnu dot org, geoffk at geoffk dot org, tej at melbpc dot org dot au
> From: Joern Rennecke <amylaar@cambridge.redhat.com>
> To: egcs@tantalophile.demon.co.uk (Jamie Lokier)
> Date: Sun, 14 Jan 2001 23:03:51 +0000 (GMT)
> That is not safe. You can't predict what kind of address arithmetic
> the compiler will make. For example, strength reduction could cause
> a pointer to be pointing into the middle of an array, or worse,
> somewhere beyond it (incorporating some constant adjustments).
We already need a switch to disable GC unfriendly optimizations.