This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/11535] __builtin_return_address may not work on ia64


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]