This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH, boehm-gc: silence warning
- From: Andrew Haley <aph at redhat dot com>
- To: Ben Elliston <bje at au1 dot ibm dot com>
- Cc: java <java at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 30 Nov 2009 10:07:07 +0000
- Subject: Re: PATCH, boehm-gc: silence warning
- References: <1259555306.23081.4.camel@bapbop>
Ben Elliston wrote:
> When compiling mark_rts.c, GCC warns about taking the address of a local
> variable. This is not a bug, but an explicit hack to get the
> approximate address of a new stack frame, to calculate the limits of the
> current frame. There is a cleaner way to do this with GCC: use
> __builtin_frame_address. My reading of the code suggests that this will
> work just as well.
>
> Tested with a bootstrap on x86_64-linux and a full regression testsuite
> run, including make check-target-boehm-gc. Okay for mainline?
OK, but make sure this goes upstream to gc@linux.hpl.hp.com
Andrew.