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/ |