This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Does weak work on PPC with -O2?
- To: Franz Sirl <Franz dot Sirl-kernel at lauterbach dot com>
- Subject: Re: Does weak work on PPC with -O2?
- From: Bernd Schmidt <bernds at cambridge dot redhat dot com>
- Date: Tue, 13 Mar 2001 15:41:42 +0000 (GMT)
- Cc: Geoff Keating <geoffk at geoffk dot org>, <gcc-bugs at gcc dot gnu dot org>
On Tue, 13 Mar 2001, Franz Sirl wrote:
> > Hey, that's really clever. I didn't think of using VOLATILE. It
> > even makes sense...
>
> And it seems to work nicely with the testcase :-). I think I need to use
> FRAME_RELATED as a flag though, cause VOLATIL is already used for
> SYMBOL_REF_FLAG, I overlooked that.
I think you want to make the MEM volatile, not the SYMBOL_REF. Then you
don't have to modify rtx_addr_can_trap_p.
Bernd