Re: FW: RE: x86_64 port

2005-03-07 Thread Kurt Roeckx
On Mon, Mar 07, 2005 at 09:15:01AM -0800, David Brown wrote: > > gcc 3.3.4 on AMD64 appears to generate correct code when the dummy call is > present. Ick. It generates the following code here: subq$8, %rsp movl$g, %r13d movl$0, %eax calldummy

Re: FW: RE: x86_64 port

2005-03-07 Thread Kurt Roeckx
On Mon, Mar 07, 2005 at 11:47:31AM -, Simon Marlow wrote: > > $ cat bug.c > register void * R1 __asm__("%r13"); > > extern void g(void); > static void f(void) { > R1 = g; > goto *R1; > } > $ gcc -S -O bug.c > $ > > And take a look at the generated assembly for the function f: > > f: >

Re: FW: RE: x86_64 port

2005-03-07 Thread Kurt Roeckx
On Fri, Mar 04, 2005 at 11:13:28AM -0600, John Goerzen wrote: > Do any of you know if this is a known problem? > > - Forwarded message from Simon Marlow <[EMAIL PROTECTED]> - > > From: Simon Marlow <[EMAIL PROTECTED]> > Date: Fri, 4 Mar 2005 17:03:31 - > To: John Goerzen <[EMAIL PROTE