This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
__builtin_return_address for ARM
- From: Uwe Kleine-König <u dot kleine-koenig at pengutronix dot de>
- To: gcc at gcc dot gnu dot org
- Cc: Mikael Pettersson <mikpe at it dot uu dot se>
- Date: Wed, 25 Feb 2009 10:24:48 +0100
- Subject: __builtin_return_address for ARM
Hello,
currently[1] __builtin_return_address for ARM only works with level == 0.
For ftrace in the linux kernel it would be great to implement that for
level > 0 (provided that framepointers or unwind information are
available of course). On the linux-arm-kernel ML Mikael Pettersson[2]
said that "__builtin_return_address(N) where N>0 should never have been
introduced into gcc.". Is that the general view for
__builtin_return_address or would a patch be accepted?
Up to now I only had a quick glance at gcc sources and after that I'm
not sure if I even find the place where to put an implementation, so any
help is welcome.
Best regards
Uwe
[1] at least in gcc 4.3.2 that I'm using.
[2] http://thread.gmane.org/gmane.linux.ports.arm.kernel/52061/focus=52116
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | http://www.pengutronix.de/ |