This is the mail archive of the gcc@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]

Re: EP9312 gcc: undefined reference to __divdf3


On Wed, 2004-06-30 at 11:54, Wouter van Heyst wrote:
> Would another configuration give integer register
> passing _and_ MaverickCrunch support?
> 

I'm not aware of one.

> > 
> > The best solution would be to tell the compiler that all floating point
> > compiler support functions return values in integer registers, but
> > before we can do that we have to re-implement a couple of support calls
> > that are currently coded in C (and thus use normal register passing
> > conventions).
> 
> How do you determine what support calls need to be reimplemented?
> 

Internal knowledge of the functions and what they do; plus some testing
:-)

> Since it's more than just an undefined reference, how do you suggest the
> bug be worded? Something like "floating point support function should
> return values in integer registers"? 

No need to go that far.  Just make the subject exactly the same as your
subject line above.  Set the target to arm-elf.  And provide a small
test case -- that's easy, something like

double x, y;  float a, b;

int main () { a = a/b; x = x /y; exit 0;}

should amply demonstrate the problem.

R.


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