This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: using __builtin_return_address?
- To: "Marty Leisner" <leisner at rochester dot rr dot com>
- Subject: Re: using __builtin_return_address?
- From: Andreas Schwab <schwab at suse dot de>
- Date: 26 Jul 1999 10:18:39 +0200
- Cc: egcs at egcs dot cygnus dot com
- References: <199907252236.SAA27707@rochester.rr.com>
"Marty Leisner" <leisner@rochester.rr.com> writes:
|> Also, not sure why it says:
|> "A non-zero argument should be used"
|> if that's the only thing which works...
This sentence:
|> This function should only be used with a non-zero argument for
|> debugging purposes.
means that __builtin_return_address with a non-zero argument works
unreliably (not at all on some targets) and should be used only for
debugging purpose (when you know what you do).
Andreas.
--
Andreas Schwab "And now for something
schwab@suse.de completely different."
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg