[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] Add builtins in avr target.

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 (Windows/20080213)


__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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]