This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
c++/2986: __builtin_frame_address broken for MIPS
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/2986: __builtin_frame_address broken for MIPS
- From: ronald dot fischer dot gp at icn dot siemens dot de
- Date: 29 May 2001 07:12:39 -0000
- Cc: ronald_f at my-deja dot com
- Reply-To: ronald dot fischer dot gp at icn dot siemens dot de
>Number: 2986
>Category: c++
>Synopsis: __builtin_frame_address broken for MIPS
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue May 29 00:16:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Ronald Fischer
>Release: gcc 2.95.2
>Organization:
>Environment:
MIPS R4000, SVR4.2
>Description:
__builtin_frame_address returns 0, even if it is called with 0 as argument
(according to the info pages, __builtin_frame_address(LEVEL)
should work on all platforms, as long as LEVEL equals zero).
>How-To-Repeat:
Compile and run the enclosed program on a MIPS R4000 machine,
e.g.
g++ bfa.cc && a.out
and you will get the following output:
main:0
f:0
g:0
h:0
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="bfa.cc"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="bfa.cc"
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwojZGVmaW5lIEJGQShUKSAg
ICAgY291dCA8PCBUIDw8ICc6JyA8PCByZWludGVycHJldF9jYXN0PHVuc2lnbmVkIGxvbmc+KF9f
YnVpbHRpbl9mcmFtZV9hZGRyZXNzKDApKSA8PCBlbmRsCgp2b2lkIGgoKQp7CiAgICBCRkEoImgi
KTsKfQoKdm9pZCBnKGludCxpbnQsaW50KQp7CiAgICBpbnQgeFsxMzBdOwogICAgQkZBKCJnIik7
CiAgICBoKCk7Cn0KCnZvaWQgZigpCnsKICAgIEJGQSgiZiIpOwogICAgZygxLDIsMyk7Cn0KCgpp
bnQgbWFpbigpCnsKICAgIEJGQSgibWFpbiIpOwogICAgZigpOwogICAgcmV0dXJuIDA7Cn0KCiAg
ICAK