------- Additional Comments From tsandnes at atmel dot no  2004-12-20 13:40 
-------
Subject: Re:  Overflowed address in dwarf debug line information

pinskia at gcc dot gnu dot org wrote:
> ------- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-20 
> 12:53 -------
> Can you attach a preprocessed source?

Hmm, That will probably be a problem.
I have just piled together a lot of generated code and a library to be able to 
create an object with this much program memory. Would the preprocessed source 
(of the file with main()) be of use anyway?

The library is a trick to fool avr-gcc into creating the object without failing.
If I just put it all in one file and try to compile it I get errors like these:

 >avr-gcc -Wall -gdwarf-2 -mmcu=atmega128 -O0 largeandsimple.c -o 
 >largeandsimple.elf
c:\DOCUME~1\tsandnes\LOCALS~1\Temp/ccewaaaa.s: Assembler messages:
c:\DOCUME~1\tsandnes\LOCALS~1\Temp/ccewaaaa.s:55075: Error: value of 66702 too 
large for field of 2 bytes at 16
c:\DOCUME~1\tsandnes\LOCALS~1\Temp/ccewaaaa.s:92562: Error: value of 66702 too 
large for field of 2 bytes at 52828
c:\DOCUME~1\tsandnes\LOCALS~1\Temp/ccewaaaa.s:54188: Error: value of 65542 too 
large for field of 2 bytes at 10009
...

Hmm, come to think of it, maybe I should report this as a bug too?

Torleif


-- 


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

Reply via email to