This is the mail archive of the crossgcc@cygnus.com mailing list for the crossgcc project.


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

Re: Need help with -m68060 switch on egcs-1.1b




On Wed, 2 Dec 1998, Jyrki O Saarinen wrote:

> 
> > I agree that this is undesirable behavior on an embedded system and should
> > be reported.  
> > 
> > So this is a bug in gcc 2.x, not in egcs, right?
> 
> Right, egcs doesn't use 32x32->64 muls for int-int muls. I wonder
> why gcc did that.. wastes one register for the upper 32 bits of the
> result for nothing. This would be different:
> 
> long long result = (long long)(a * b);
> /* a, b are ints */

It also makes it impossible to look at a piece of code and say
definitively that it does not use the FPU.

--joel

_______________________________________________
New CrossGCC FAQ: http://www.objsw.com/CrossGCC
_______________________________________________
To remove yourself from the crossgcc list, send
mail to crossgcc-request@cygnus.com with the
text 'unsubscribe' (without the quotes) in the
body of the message.