pupa-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Weird behavior of nested functions


From: Jeroen Dekkers
Subject: Re: Weird behavior of nested functions
Date: Mon, 10 Nov 2003 16:57:45 +0100
User-agent: Mutt/1.5.4i

On Mon, Nov 10, 2003 at 03:42:17PM +0100, Jeroen Dekkers wrote:
> On Mon, Nov 10, 2003 at 10:10:52AM +0100, Yoshinori K. Okuji wrote:
> > On Monday 10 November 2003 00:11, Marco Gerards wrote:
> > > Is it possible that some object files for the utils and pupa mix up?
> > 
> > No. The files in utils are compiled without -mrtd or -mregparm, because 
> > otherwise they are incompatible against your C library. So it is necessary 
> > to 
> > compile files in PUPA in per-target basis.
> > 
> > BTW, are you good at reading assembly code generated by GCC? For this kind 
> > of 
> > problem, it is inevitable to take a look at what GCC produced. I myself 
> > will 
> > try your code as soon as possible.
> 
> It's a gcc bug triggered by the combination of -mregparm=3 and nested
> functions. The problem is that it wants to put the address of test in
> %ecx but that register is also used for the third argument with
> -mregparm=3. Below is a copy of the assembly code generated by gcc.

And the bug is already reported by somebody else:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12329

Jeroen Dekkers




reply via email to

[Prev in Thread] Current Thread [Next in Thread]