RE: [avr-gcc-list] Warnings with virtual methods in avr-g++
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] org] On Behalf Of Steve Franks Sent: Monday, February 26, 2007 11:22 AM To: avr-gcc-list@nongnu.org Subject: [avr-gcc-list] Warnings with virtual methods in avr-g++ Eric/Joerg/et.al : seeing as I now have a functional freebsd system and a current build of avr-g++, so I could potentially test fix, does anyone have a pointer (no pun intended) to where in the code one might start looking for that 'bug'? Hi Steve, Sorry, I don't know where you could start looking for that. I don't think that Joerg and I have had much of a chance to delve into C++ at all. So if you started looking into it, you would be the 'resident expert'. ;-) Eric ___ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list
Re: [avr-gcc-list] Warnings with virtual methods in avr-g++
Hello, I expect that this error message stems from the assembler. Try to compile the sources with -S and I expect that you won't see this error. I expect that the virtual tables are aligned on a 4-byte boundary (as usually is useful for 32 bit systems). Bjoern. Thanks for your time Bjoern, I tried with -S option, but the warning continue tu appear: avr-g++ -S ieee1451dot1/types/ObjectTag.cc ieee1451dot1/types/ObjectTag.h:20: warning: alignment of 'ieee1451dot1::types::ObjectTag::_ZTVN12ieee1451dot15types9ObjectTagE' is greater than maximum object file alignment. Using 1 Sorry, that's a known issue. Have it still in the latest 4.1.x build on my unix. I think the problem is due to the 8-bit nature of the avr. I have been getting it for several years, with no bugs traceable to it, so it appears harmless. There is no c++ maintainer for avr-g++ currently, so it should persist... Eric/Joerg/et.al : seeing as I now have a functional freebsd system and a current build of avr-g++, so I could potentially test fix, does anyone have a pointer (no pun intended) to where in the code one might start looking for that 'bug'? Steve These are good news :). It's good to know that the warnings seems to not produce collateral problems. In my tests, my software seems to run run well too. Thanks to all. -- ### #Gervasio Varela # #[EMAIL PROTECTED] # #http://www.picandocodigo.com # ### ___ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list
[avr-gcc-list] Warnings with virtual methods in avr-g++
Message: 1 Date: Sun, 25 Feb 2007 19:16:11 +0100 From: Gervasio Varela [EMAIL PROTECTED] Subject: [avr-gcc-list] Warnings with virtual methods in avr-g++ To: avr-gcc-list@nongnu.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=iso-8859-1 Hello all, I'm getting an extrange warning in all classes that have virtual methods when compiling with AVR-G++ (version 3.4.6): aligment of 'x' is greater than maximum object file aligment .. Sorry, that's a known issue. Have it still in the latest 4.1.x build on my unix. I think the problem is due to the 8-bit nature of the avr. I have been getting it for several years, with no bugs traceable to it, so it appears harmless. There is no c++ maintainer for avr-g++ currently, so it should persist... Eric/Joerg/et.al : seeing as I now have a functional freebsd system and a current build of avr-g++, so I could potentially test fix, does anyone have a pointer (no pun intended) to where in the code one might start looking for that 'bug'? Steve ___ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list
[avr-gcc-list] Warnings with virtual methods in avr-g++
Hello all, I'm getting an extrange warning in all classes that have virtual methods when compiling with AVR-G++ (version 3.4.6): aligment of 'x' is greater than maximum object file aligment Somebody could explain me this error? Searching on google I found that there is a bug posted in the bugzilla por GCC with this issue, somebody knows if this is solved in recent versions of GCC (4.x)? (I'm using Nut/OS and Ethernut, and it doesn't compile under GCC 4.x) Finally, the program seems to run well even with the warnings, but they are very annoying :D Thanks in advance. Best regards. PDT: Sorry for my english, I'm not a native english speaker. -- ### #Gervasio Varela # #[EMAIL PROTECTED] # #http://www.picandocodigo.com # ### ___ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list