Description of problem: In gcc/config/avr/libgcc.S, revision 143306, a change to __do_global_ctors & __do_global_dtors was made which makes use of register r20. This register can be used to pass parameters to the constructors, but it is not pushed/popped from the stack, so it will get clobbered if a constructor uses that register. Version-Release number of selected component (if applicable): 4.5.1 How reproducible: Very Steps to Reproduce: 1. Compile testcase submitted at http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45263 Actual results: AVR microcontroller continually reboots when running the compiled binary Expected results: AVR microcontroller executes code as expected Additional info: A patch has been supplied in the above bug which works around the problem.
avr-gcc-4.5.1-2.fc14 has been submitted as an update for Fedora 14. https://admin.fedoraproject.org/updates/avr-gcc-4.5.1-2.fc14
Thanks for your report. Please test the new package avr-gcc-4.5.1-2 (or here for F-13: http://koji.fedoraproject.org/koji/taskinfo?taskID=2487224 ) I would love to know if it actually fixes the problem (I can't test it here). Thanks, Thibault
avr-gcc-4.5.1-2.fc14 has been pushed to the Fedora 14 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update avr-gcc'. You can provide feedback for this update here: https://admin.fedoraproject.org/updates/avr-gcc-4.5.1-2.fc14
Tested & confirmed working on Fedora 13
Great, thanks a lot for your help !
avr-gcc-4.5.1-2.fc14 has been pushed to the Fedora 14 stable repository. If problems still persist, please make note of it in this bug report.