public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/2986: __builtin_frame_address broken for MIPS
@ 2001-05-29 0:16 ronald.fischer.gp
0 siblings, 0 replies; only message in thread
From: ronald.fischer.gp @ 2001-05-29 0:16 UTC (permalink / raw)
To: gcc-gnats; +Cc: ronald_f
>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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-05-29 0:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-05-29 0:16 c++/2986: __builtin_frame_address broken for MIPS ronald.fischer.gp
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).