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



> 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 */


_______________________________________________
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.