bugAVR C Runtime Library - Bugs: bug #24888, eeprom.h not compatible with...

 
 

bug #24888: eeprom.h not compatible with -mint8 compiler switch

Submitted by:  Ken Krieger <kenk>
Submitted on:  Thu 20 Nov 2008 07:58:06 AM UTC  
 
Category: HeaderSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Header files
Status: Wont FixPercent Complete: 0%
Assigned to: Eric Weddington <arcanum>Open/Closed: Closed
Release: 1.6.4Fixed Release: None

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Thu 20 Nov 2008 01:55:15 PM UTC, comment #2:

-mint8 is not supported in avr-libc. Closing bug as "Won't Fix".

Eric Weddington <arcanum>
Project AdministratorIn charge of this item.
Thu 20 Nov 2008 08:19:28 AM UTC, comment #1:

-mint8 is "not really supported" see:
http://www.nongnu.org/avr-libc/user-manual/using_tools.html

Wouter <wutje>
Thu 20 Nov 2008 07:58:06 AM UTC, original submission:

The function eeprom_write_byte() assigns the EEAR with the address passed in through the __p parameter. This parameter is declared as a pointer type in the function declaration, and then re-cast to "unsigned" at the assignment of it value to the EEAR.

when using the -mint8 compiler switch, "unsigned" becomes an 8-bit type, however, it is being assigned to a 16-bit location. The compiler throws a warning.

This is easily fixed by changing the "unsigned" casts to the proper "unint??_t"

Specifically, reference lines 308-312 of eeprom.h

Ken Krieger <kenk>

 

(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 arcanum (Posted a comment)
  • -unavailable- added by wutje (Posted a comment)
  • -unavailable- added by kenk (Submitted the item)
  •  

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

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 20 Nov 2008 01:55:15 PM UTCarcanumStatusNone=>Wont Fix
      Assigned toNone=>arcanum
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1