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

 
 

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

Submitted by:  John Tartar <john_tartar>
Submitted on:  Wed 19 Nov 2008 04:09:38 AM UTC  
 
Category: Build InfrastructureSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Build system
Status: InvalidPercent Complete: 0%
Assigned to: Eric Weddington <arcanum>Open/Closed: Closed
Release: UnknownFixed Release: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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

Closing bug.

Eric Weddington <arcanum>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.
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.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 26 Feb 2009 05:18:11 PM UTCarcanumStatusNeed Info=>Invalid
      Assigned toNone=>arcanum
      Open/ClosedOpen=>Closed
    Wed 19 Nov 2008 04:55:20 AM UTCarcanumStatusNone=>Need Info
    Wed 19 Nov 2008 04:09:38 AM UTCjohn_tartarCarbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1