|
From: | Andy H |
Subject: | Re: [avr-gcc-list] Add builtins in avr target. |
Date: | Sun, 06 Apr 2008 10:55:50 -0400 |
User-agent: | Thunderbird 2.0.0.12 (Windows/20080213) |
Anatoly,__builtin_return_address is extremely useful for target error reporting. e.g. a function can be called(or trapped) to report error in another part of program. This allows such routines to determine the address of the caller without using naked asm functions.
You are correct, that return address will only give 16bit pointer. But that covers most uses.
It would seem easier to implement than create documents and disable all current and future testcases that use it. That would seem to be confirmed by the fact that bug reports have been outstanding since 2005.
Of course, Eric and other AVR users may disagree. Andy
[Prev in Thread] | Current Thread | [Next in Thread] |