[avr-libc-dev] [bug #30018] Errors in include files

2010-06-09 Thread Joerg Wunsch
Update of bug #30018 (project avr-libc): Status:None = Fixed Assigned to:None = joerg_wunsch Open/Closed:Open = Closed Fixed Release:

[avr-libc-dev] [bug #20778] strtod problems in ATmega2560

2010-06-09 Thread Joerg Wunsch
Update of bug #20778 (project avr-libc): Status:None = Works For Me Open/Closed:Open = Closed ___ Follow-up Comment #3: No feedback within

[avr-libc-dev] [bug #19178] Propose: Exact-Delay

2010-06-09 Thread Joerg Wunsch
Update of bug #19178 (project avr-libc): Status:None = Fixed Assigned to:None = joerg_wunsch Open/Closed:Open = Closed Release:

[avr-libc-dev] [bug #22163] Everytime ATOMIC_BLOCK(ATOMIC_RESTORESTATE) compiler generates warning - unused variable 'sreg_save'

2010-06-09 Thread Joerg Wunsch
Update of bug #22163 (project avr-libc): Severity: 3 - Normal = 4 - Important Priority: 3 - Low = 7 - High ___ Reply to this item at:

[avr-libc-dev] [bug #22539] GCC can't find AVR35 object files

2010-06-09 Thread Joerg Wunsch
Update of bug #22539 (project avr-libc): Status:None = Need Info Release:None = 1.6.1 ___ Follow-up Comment #1: We've never heard

[avr-libc-dev] Re: bug #22163 (atomic not working as expected in C++)

2010-06-09 Thread Dean Camera
Haven't tested it, however I can see how the C++ version would work. I'd argue that the version maintaining the same API as the C version should be the one adopted, since different APIs for C and C++ are a bad thing. - Dean -- From: Joerg Wunsch

Re: [avr-libc-dev] Re: bug #22163 (atomic not working as expected in C++)

2010-06-09 Thread Joerg Wunsch
As Dean Camera wrote: Haven't tested it, however I can see how the C++ version would work. I'd argue that the version maintaining the same API as the C version should be the one adopted, since different APIs for C and C++ are a bad thing. Of course, maintaining the same API as the C version

[avr-libc-dev] [bug #26995] .fuses and .bss overlap on the elf file

2010-06-09 Thread Joerg Wunsch
Update of bug #26995 (project avr-libc): Status:None = Need Info ___ Follow-up Comment #1: Not confirmed: $ cat bar.c #include avr/io.h FUSES = { .low = LFUSE_DEFAULT, .high =

[avr-libc-dev] [bug #28108] bug with winavr20090313

2010-06-09 Thread Joerg Wunsch
Update of bug #28108 (project avr-libc): Status:None = Invalid Open/Closed:Open = Closed ___ Follow-up Comment #5: The resulting code

[avr-libc-dev] [bug #26995] .fuses and .bss overlap on the elf file

2010-06-09 Thread Joerg Wunsch
Update of bug #26995 (project avr-libc): Status: Need Info = Works For Me Open/Closed:Open = Closed ___ Reply to this item at:

[avr-libc-dev] [bug #28921] pointer to function 128k flash

2010-06-09 Thread Joerg Wunsch
Update of bug #28921 (project avr-libc): Category:None = Documentation Item Group:None = Documentation Status:None = Fixed Assigned to:

[avr-libc-dev] Re: bug #22163 (atomic not working as expected in C++)

2010-06-09 Thread David Brown
On 09/06/2010 10:23, Joerg Wunsch wrote: https://savannah.nongnu.org/bugs/?22163 The bug looks serious enough to me so I'd like to include David's alternative C++ implementation. Did anyone else test this? Any objections? It's been a while since I wrote that code! Looking back at it,

[avr-libc-dev] RE: [bug #30091] Header file generation script could generate garbage

2010-06-09 Thread Weddington, Eric
Hi Joerg, I saw the issue but haven't looked into it yet. Is it a problem in the script generation? Or was the XML data file also bad? The script needs to be fixed to catch this issue in the verification step for sure. But I want to make sure that there isn't a problem in the XML. Eric

Re: [avr-gcc-list] Re: [avr-libc-dev] [bug #29774] prologue/epilogue stack pointer manipulation not interrupt safe in XMega

2010-06-09 Thread Matthew
On 6/8/2010 10:31 AM, Bob Paddock wrote: There are several places that handle SP adjustment: avr.c: output_movhi, expand_prologue, expand_epilogue avr.md: movhi_sp_r_irq_off, movhi_sp_r_irq_on (both generated in epilogue/prologue) libgcc.S: __prologue_saves__, __epilogue_restores__ For

RE: [avr-libc-dev] RE: [bug #30091] Header file generation script couldgenerate garbage

2010-06-09 Thread Weddington, Eric
The problem is actually in the original XML data, e.g., the ATtiny40.xml file. The data below has extra characters in it (parens, slash) that don't belong, which of course breaks any semblence of a correct format. VQFN NMB_PIN20/NMB_PIN PIN1 NAME[PCINT6:ADC6]/NAME

[avr-libc-dev] Re: bug #22163 (atomic not working as expected in C++)

2010-06-09 Thread Dean Camera
If the memory clobbers are added to the definitions of cli() and sei(), as well as an sreg set macro (or inline function), then these should be used in the code here instead of writing the inline assembly explicitly. I concur - it makes sense to move the memory barrier to the definitions of

[avr-libc-dev] [bug #22539] GCC can't find AVR35 object files

2010-06-09 Thread David A. Mellis
Follow-up Comment #2, bug #22539 (project avr-libc): I had a similar problem, which I think was due to an incorrect patch. There was a wildcard in one of the config / header files which incorrectly pulled some of the MCU types into the wrong AVR architecture group. When I replaced the wildcard

[avr-libc-dev] EEPROM with XMEGA ?

2010-06-09 Thread Moritz v. Buttlar
Hi, first of all thanks for the great work on AVR support. I'm trying to access the EEPROM of a xmega128A1 device using libc, but it's not working. Should it work in principle or is xmega support currently missing ? Best regards, Moritz ___

[avr-libc-dev] Re: bug #22163 (atomic not working as expected in C++)

2010-06-09 Thread Joerg Wunsch
As Dean Camera wrote: I concur - it makes sense to move the memory barrier to the definitions of the cli() and sei() macros, (where it is now) There's no good reason why the user would want the compiler to re-order the assembly around cli() and sei(), as that's just asking for trouble.

Re: [avr-libc-dev] EEPROM with XMEGA ?

2010-06-09 Thread Bob Paddock
On Wed, Jun 9, 2010 at 1:55 PM, Moritz v. Buttlar i...@baltic-microsolutions.de wrote: Hi, first of all thanks for the great work on AVR support. I'm trying to access the EEPROM of a xmega128A1 device using libc, but it's not working. Should it work in principle or is xmega support currently

RE: [avr-libc-dev] Re: bug #22163 (atomic not working as expected inC++)

2010-06-09 Thread Stu Bell
There's no good reason why the user would want the compiler to re-order the assembly around cli() and sei(), as that's just asking for trouble. There's a common miscomprehension: a memory barrier ensures that all write operations are committed to memory, and memory locations will

Re: [avr-libc-dev] Re: bug #22163 (atomic not working as expected inC++)

2010-06-09 Thread Joerg Wunsch
As Stu Bell wrote: Before the rant below, let me make sure: I interpret this command to mean that there is no way for the AVR GCC compiler writers to tell the optimizer, Thou Shalt Not Reorder Code Around This Boundary. Even more, there is no way for any mechanism (even #pragma?) for C

RE: [avr-libc-dev] Re: bug #22163 (atomic not working as expectedinC++)

2010-06-09 Thread Weddington, Eric
-Original Message- From: avr-libc-dev-bounces+eric.weddington=atmel@nongnu.org [mailto:avr-libc-dev-bounces+eric.weddington=atmel@nongnu. org] On Behalf Of Joerg Wunsch Sent: Wednesday, June 09, 2010 1:20 PM To: avr-libc-dev@nongnu.org Subject: Re: [avr-libc-dev] Re:

RE: [avr-libc-dev] Re: bug #22163 (atomic not working as expectedinC++)

2010-06-09 Thread Stu Bell
As Jorg Wunsch wrote: As Stu Bell wrote: Before the rant below, let me make sure: I interpret this command to mean that there is no way for the AVR GCC compiler writers to tell the optimizer, Thou Shalt Not Reorder Code Around This Boundary. Even more, there is no way for any

Re: [avr-libc-dev] Re: bug #22163 (atomic not working as expectedinC++)

2010-06-09 Thread Joerg Wunsch
As Weddington, Eric wrote: As a side note, wouldn't declaring some_temp_variable as volatile solve the issue above? I think it does, but it's another pessimization... It forces the function to get a stack frame even if it otherwise doesn't need it, and adds memory access cycles. The

RE: [avr-libc-dev] Re: bug #22163 (atomic not working asexpectedinC++)

2010-06-09 Thread Weddington, Eric
-Original Message- From: avr-libc-dev-bounces+eric.weddington=atmel@nongnu.org [mailto:avr-libc-dev-bounces+eric.weddington=atmel@nongnu. org] On Behalf Of Joerg Wunsch Sent: Wednesday, June 09, 2010 1:50 PM To: avr-libc-dev@nongnu.org Subject: Re: [avr-libc-dev] Re:

Re: [avr-libc-dev] Re: bug #22163 (atomic not working as expected inC++)

2010-06-09 Thread David Brown
Joerg Wunsch wrote: As Stu Bell wrote: Before the rant below, let me make sure: I interpret this command to mean that there is no way for the AVR GCC compiler writers to tell the optimizer, Thou Shalt Not Reorder Code Around This Boundary. Even more, there is no way for any mechanism (even

Re: [avr-libc-dev] Re: bug #22163 (atomic not working as expected inC++)

2010-06-09 Thread Joerg Wunsch
As David Brown wrote: Eric suggested making some_temp_variable volatile, which is the traditional way to enforce ordering in C programming. Strictly speaking, you don't have to make it volatile - it's enough to make sure it is in memory if cli() and sei() have memory blocks. Yes, but again:

Re: [avr-libc-dev] RE: [bug #30091] Header file generation script couldgenerate garbage

2010-06-09 Thread Joerg Wunsch
As Weddington, Eric wrote: The problem is actually in the original XML data, e.g., the ATtiny40.xml file. The data below has extra characters in it (parens, slash) that don't belong, which of course breaks any semblence of a correct format. PIN4 NAME[(PCINT3:ADC3]/NAME

[avr-libc-dev] Re: bug #22163 (atomic not working as expected in C++)

2010-06-09 Thread Joerg Wunsch
As David Brown wrote: It's been a while since I wrote that code! But I still don't know whether I should include it or not. ;-) -- cheers, Jorg .-.-. --... ...-- -.. . DL8DTL http://www.sax.de/~joerg/NIC: JW11-RIPE Never trust an operating system you

[avr-libc-dev] testsuite failures

2010-06-09 Thread Joerg Wunsch
With a bit of fiddling for those testscripts that failed in the AT90S8515 simulation due to resource exhaustion on that rather small controller, the testsuite now causes the following failures: Simulate: math/isinf-01.c atmega128 ... *** simulate failed: 22 Simulate: math/isinf-01.c at90s8515 ...

RE: [avr-libc-dev] RE: [bug #30091] Header file generation scriptcouldgenerate garbage

2010-06-09 Thread Weddington, Eric
-Original Message- From: avr-libc-dev-bounces+eric.weddington=atmel@nongnu.org [mailto:avr-libc-dev-bounces+eric.weddington=atmel@nongnu. org] On Behalf Of Joerg Wunsch Sent: Wednesday, June 09, 2010 3:08 PM To: avr-libc-dev@nongnu.org Subject: Re: [avr-libc-dev] RE:

[avr-libc-dev] [bug #29653] PUD bit missing for at90usb82

2010-06-09 Thread Eric Weddington
Update of bug #29653 (project avr-libc): Status:None = Fixed Percent Complete: 0% = 100% Assigned to:None = arcanum Open/Closed:

[avr-libc-dev] [bug #29502] literal error in iox128a1.h

2010-06-09 Thread Eric Weddington
Update of bug #29502 (project avr-libc): Status:None = Fixed Percent Complete: 0% = 100% Assigned to:None = arcanum Open/Closed:

[avr-libc-dev] [bug #30091] Header file generation script could generate garbage

2010-06-09 Thread Eric Weddington
Follow-up Comment #1, bug #30091 (project avr-libc): Another thing that needs to be changed in the convertor script is to be able to generate double-word registers. ___ Reply to this item at: http://savannah.nongnu.org/bugs/?30091

[avr-libc-dev] [bug #28582] XMEGA A3B, RTC32 not properly supported

2010-06-09 Thread Eric Weddington
Update of bug #28582 (project avr-libc): Status:None = Fixed Percent Complete: 0% = 100% Assigned to:None = arcanum Open/Closed:

[avr-libc-dev] [bug #28574] Xmega D ADC struct missing registers

2010-06-09 Thread Anitha Boyapati
Update of bug #28574 (project avr-libc): Open/Closed:Open = Closed ___ Reply to this item at: http://savannah.nongnu.org/bugs/?28574 ___