This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: using __builtin_return_address?


"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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]