Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#1076 pic 16: redefining symbol that cannot be redefined. (_g)

closed-fixed
nobody
5
2013-05-25
2006-03-05
Borut Ražem
No

1 - sample code:
--------------------------
void g (void)
{
}

void g (void);

void main(void)
{
g ();
}
--------------------------

2 - sdcc command:
$ sdcc -c -mpic16 t.c

3 - sdcc version:
$ sdcc -v
SDCC :
mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/ds400/hc08
2.5.4 #1216 (Mar 5 2006) (MINGW32)

4 - error message:
t.asm:46:Error [174] Duplicate label or redefining
symbol that cannot be redefined. (_g)

This caode is extracted from bug-716242.c regression test.

Borut

Discussion

  • Borut Ražem
    Borut Ražem
    2006-05-10

    Logged In: YES
    user_id=568035

    When the bug will be solved, the regression test
    bug-716242.c should be modified: #ifdefs around lines

    void g (int (*h) (int));

    should be removed.

    Borut

     
  • Raphael Neider
    Raphael Neider
    2006-06-19

    Logged In: YES
    user_id=1115835

    And there goes another one:
    Fixed in SDCC r4243 (for pic14 and pic16).

    Also updated bug-716242.c, removing the pic16 workaround.

     
  • Raphael Neider
    Raphael Neider
    2006-06-19

    • milestone: --> fixed
    • status: open --> closed-fixed