------- Comment #10 from ah dot linder at arcor dot de  2010-08-19 22:23 -------
Created an attachment (id=21525)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21525&action=view)
preprocessor output for augi.cpp

I have the same problem on Fedora 13,

avr-gcc-c++-4.5.1-1.fc13.x86_64
avr-gcc-4.5.1-1.fc13.x86_64
avr-binutils-2.20-2.fc13.x86_64
avr-libc-1.6.7-2.fc13.noarch

Using built-in specs.
COLLECT_GCC=/usr/bin/avr-g++
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/avr/4.5.1/lto-wrapper
Target: avr
Configured with: ../gcc-4.5.1/configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --target=avr --enable-languages=c,c++ --disable-nls
--disable-libssp --with-system-zlib --enable-version-specific-runtime-libs
--with-pkgversion='Fedora 4.5.1-1.fc13'
--with-bugurl=https://bugzilla.redhat.com/
Thread model: single
gcc version 4.5.1 (Fedora 4.5.1-1.fc13)

avr-g++ -c -g -w -v -fno-exceptions -mmcu=atmega1280 -DF_CPU=16000000L augi.cpp
-oaugi.cpp.o

avr-g++ -g -v -Wall -mmcu=atmega1280  -Wl,-Map,augi.map -o augi.elf augi.cpp.o

avr-objcopy -v -j .text -j .data -O ihex augi.elf augi.hex

The source file is a simplified version of the arduino sketch of comment#6 (got
rid of the arduino specific stuff and the interrupt code), the problem is
triggered by the second "Serial" Dummy Object. With avr-g++ 4.5.1, I don't get
any output, with avr-gcc-c++-4.3.3-3.fc13.x86_64 & avr-gcc-4.3.3-3.fc13.x86_64
I get a stream of 'A' as expected.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44617

Reply via email to