This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: patch for label handling in flow
- To: Philip Blundell <philb at gnu dot org>, egcs-patches at cygnus dot com
- Subject: Re: patch for label handling in flow
- From: Richard Henderson <rth at cygnus dot com>
- Date: Mon, 25 Jan 1999 20:12:33 -0800
- References: <E104sZO-0003wa-00@kings-cross.london.uk.eu.org>
- Reply-To: Richard Henderson <rth at cygnus dot com>
On Mon, Jan 25, 1999 at 08:25:13PM +0100, Philip Blundell wrote:
> Normally if a label has its address taken, flow will consider it to be a
> potential target for any computed goto. Unfortunately on the ARM port the
> prologue used for functions compiled as PIC includes such a label.
I don't see how the arm port is using ".+4" and ".+8" without doing
anything to make certain that those instructions really stay together.
Seems like scheduling could really mess that up. Could be the only
reason this hasn't shown up earlier is the protection given by the
erroneous CFG. Or perhaps I miss something?
FWIW, the sparc port uses a symbol_ref in its gp load sequence.
r~