bugAVR C Runtime Library - Bugs: bug #24877, Long Multiply Does not work under...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #24877: Long Multiply Does not work under certain circumstances

Submitter:  John Tartar <john_tartar>
Submitted:  Wed 19 Nov 2008 04:09:38 AM UTC
   
 
Category:  Build Infrastructure Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Build system
Status:  Invalid Assigned to:  arcanum
Percent Complete:  0% Open/Closed:  Closed
Release:  Unknown Fixed Release:  None

Thu 26 Feb 2009 05:18:11 PM UTC, comment #4: 

Closing bug.

Eric Weddington <arcanum>
Group administrator
Wed 19 Nov 2008 04:10:09 PM UTC, comment #3: 

Thank you, I upgraded to 20080610 version, and it works fine now.

I read the bug report on the earlier version, which were quite disquieting. I'm surprised I didn't have other anomalies

John Tartar <john_tartar>
Wed 19 Nov 2008 12:44:32 PM UTC, comment #2: 

The 200804xx releases had wrong code bugs in them, and the code preceding the multiplications is important with respect to at least one of those bugs, which resulted in register corruption.  One of the bugs could easily account for what you are seeing.

I would suggest you upgrade your compiler to 20080610 and test your code with it as well.

Preston Wilson <rpwilsonjr>
Wed 19 Nov 2008 04:55:20 AM UTC, comment #1: 

Could you please provide a full,compilable test case, not just code snippets?

Thanks!

Eric Weddington <arcanum>
Group administrator
Wed 19 Nov 2008 04:09:38 AM UTC, original submission:  

Long multiply does not work, when one parameter is local and one is global.  ATMega 168, version 20080403

For example

long x=40000l, y=40000l;
long ten=10l;

int main(void)
{
.
.
.
}

void sub1(void)
x*=10;  Should multiply by 10, but doesn't

y*=ten;//works just fine.

John Tartar <john_tartar>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rpwilsonjr (Posted a comment)
  • -email is unavailable- added by arcanum (Posted a comment)
  • -email is unavailable- added by john_tartar (Submitted the item)
  • -email is unavailable- added by john_tartar
  •  

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-02-26 arcanum StatusNeed Info Invalid
        Assigned toNone arcanum
        Open/ClosedOpen Closed
    2008-11-19 arcanum StatusNone Need Info
    2008-11-19 john_tartar Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code