#171 [pic14] init global variables

None
closed-fixed
None
5
2014-12-16
2012-01-13
Gerd
No

Initialization of global variables results in unexpected behavior. I recovered _sdcc_gsinit_startup failed to copy the init values due to (a bug?) in pointer arithmetic. See attached patchfile.
With this small workaround all variable init works for me.
concerns sdcc-3.1.1 Rev.7146

Discussion

  • Gerd

    Gerd - 2012-01-13

    _sdcc_gsinit_startup patch

     
  • Gerd

    Gerd - 2012-01-13
    • status: open --> open-works-for-me
     
  • Gerd

    Gerd - 2012-01-13

    Simply add the patched idata.c to your project so _sdcc_gsinit_startup is taken from working directory instead of libsdcc.

     
  • Borut Ražem

    Borut Ražem - 2012-12-25
    • status: open-works-for-me --> open-duplicate
     
  • Borut Ražem

    Borut Ražem - 2012-12-25

    This is probably a duplicate of bug #3521376 - "pic14 incorrect asm op code" which is already fixed.

    Gerd, can you please verify it?

    Borut

     
  • Gerd

    Gerd - 2013-05-23

    Since sdcc-3.2.0-8008 this error has gone.

     
  • Philipp Klaus Krause

    • status: open-duplicate --> closed-fixed
    • assigned_to: Philipp Klaus Krause
    • Group: -->
     
  • Philipp Klaus Krause

    Confirmed as fixed, closing now.

    Philipp

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks