#858 generated labels for static variables too long

closed-fixed
5
2005-01-08
2005-01-07
No

1)

----------------------------------
void my_test_function(void)
{
static unsigned char ctr1;
static unsigned char ctr2;

if( !++ctr1 ) ++ctr2;
}
----------------------------------

2)

sdcc -S -V -mpic16 -p18F452 main.c

3)

SDCC :
mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/ds400/hc08
2.4.7 #921 (Jan 6 2005) (MINGW32)

4)
Warning[208] D:\DATEN\SDCC\SKELETON.SDCC_BUG\MAIN.ASM
29 : Label truncated at 32 characters.
(udata_main__my_test_function_ctr1_1_1)
Warning[208] D:\DATEN\SDCC\SKELETON.SDCC_BUG\MAIN.ASM
32 : Label truncated at 32 characters.
(udata_main__my_test_function_ctr2_1_1)
Error[154] D:\DATEN\SDCC\SKELETON.SDCC_BUG\MAIN.ASM
32 : Each object file section must be contiguous
(section udata_main__my_test_function_ctr)

5)
Thorsten.Klose@gmx.de

Discussion

  • Raphael Neider

    Raphael Neider - 2005-01-08
    • assigned_to: nobody --> tecodev
     
  • Raphael Neider

    Raphael Neider - 2005-01-08
    • status: open --> closed
     
  • Raphael Neider

    Raphael Neider - 2005-01-08
    • status: closed --> closed-fixed
     
  • Raphael Neider

    Raphael Neider - 2005-01-08

    Logged In: YES
    user_id=1115835

    Fixed in build #922.

     

Log in to post a comment.