help-gplusplus
[Top][All Lists]
Advanced

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

Re: crash when calling __builtin_return_address


From: Paul Pluzhnikov
Subject: Re: crash when calling __builtin_return_address
Date: Wed, 14 Jun 2006 11:06:16 -0700
User-agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Jumbo Shrimp, linux)

Ulrich Lauther <ulrich.lauther@siemens.com> writes:

> on a AMD Opteron(tm) Processor 252 with gcc compiled for 
> x86_64-unknown-linux-gnu my program crashes when __builtin_return_address()
> is called.

With what parameter?
__builtin_return_address(0) should always work

> This happens only in 64-bit mode AND optimization switched on.
> The documentation says, __builtin_return_address may not work on all
> hosts, but it doesn't speak about crash.
>
> Any hints?

With non-zero parameter, the work __builtin_return_address()
has to do to work correctly (and not crash) is so complicated,
that you should abandon all hope.

Cheers,
-- 
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.


reply via email to

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