This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/11535] __builtin_return_address may not work on ia64
- From: "hjl at lucon dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Aug 2003 20:28:01 -0000
- Subject: [Bug target/11535] __builtin_return_address may not work on ia64
- References: <20030716003740.11535.hjl@lucon.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11535
hjl at lucon dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sje at cup dot hp dot com
------- Additional Comments From hjl at lucon dot org 2003-08-01 20:27 -------
Another testcase. Steve Ellcey's patch doesn't work.
[hjl@gnu rp]$ cat y.c
#include <stdio.h>
int addr_foo [1];
int addr_bar;
void
foo ()
{
volatile long long a = __builtin_return_address (0);
addr_foo [0] = (int) (long long) a;
printf("0x%x\n", addr_foo [0]);
}
[hjl@gnu rp]$ /export/build/linux/tools-3.3-redhat/build-ia64-linux/gcc/xgcc
-B/export/build/linux/tools-3.3-redhat/build-ia64-linux/gcc/ -I. -Wall -O y.c -S
y.c: In function `foo':
y.c:9: warning: initialization makes integer from pointer without a cast
y.c:12: internal compiler error: in instantiate_virtual_regs_lossage, at
function.c:3777
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.