Bug 516959 - PROGMEM broken in avr-gcc-4.3.3
Summary: PROGMEM broken in avr-gcc-4.3.3
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: avr-gcc
Version: 11
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Thibault North
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-08-12 02:47 UTC by Benedikt Gollatz
Modified: 2010-01-22 22:31 UTC (History)
2 users (show)

Fixed In Version: 4.3.3-3.fc11
Clone Of:
Environment:
Last Closed: 2010-01-20 21:43:38 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
patch from the GCC SVN that fixes the bug (1.12 KB, patch)
2009-08-12 02:47 UTC, Benedikt Gollatz
no flags Details | Diff

Description Benedikt Gollatz 2009-08-12 02:47:49 UTC
Created attachment 357104 [details]
patch from the GCC SVN that fixes the bug

Description of problem:

Programs using the PROGMEM macro -- which provides the essential functionality of storing constant data in the program segment -- don't compile when using optimization other than -O0 because of a bug in avr-gcc.

Version-Release number of selected component (if applicable):

avg-gcc-4.3.3-2.fc11.i586

How reproducible:

Always.

Steps to Reproduce:
1. Download http://www.tvbgone.com/mfaire/rgbwaveskit/rgb.c and http://www.tvbgone.com/mfaire/rgbwaveskit/Makefile
2. Run "make program-rgb"
  
Actual results:

<http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31644> occurs.

Expected results:

No compiler errors.

Additional info:

The chnages made in <http://gcc.gnu.org/viewcvs?view=rev&revision=140360> fix the problem. I have attached the patch that I added to the spec file to get a working version of the compiler.

Comment 1 Fedora Update System 2010-01-20 21:40:34 UTC
avr-gcc-4.3.3-3.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/avr-gcc-4.3.3-3.fc11

Comment 2 Thibault North 2010-01-20 21:43:38 UTC
Benedikt,
I just discovered this bug and didn't remember to read it. Now it is fixed, thanks for your patch. 
Anyway, avr-gcc was updated to 4.4 for F-12 and you certainly already use it.
Thank you very much,
Thibault

Comment 3 Fedora Update System 2010-01-22 22:31:00 UTC
avr-gcc-4.3.3-3.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.