[Bug target/11535] __builtin_return_address may not work on ia64
hjl at lucon dot org
gcc-bugzilla@gcc.gnu.org
Fri Aug 1 20:28:00 GMT 2003
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.
More information about the Gcc-bugs
mailing list