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

Close

#1897 Function pointer problem

closed-rejected
Maarten Brock
hc08 port (43)
5
2013-05-25
2011-12-21
No

For support/regression/tests/gcc-torture-execute-func-ptr-1.c I get the following error message:
"Functions called via pointers must be 'reentrant' to take this many arguments", even though there is just a single argument. The reproduce: Remove the #ifndef SDCC_hc08.

Philipp

Discussion

  • Maarten Brock
    Maarten Brock
    2011-12-22

    Even though there is only one argument it is still more than 2 bytes which is the max the hc08 supports (registers A and X). At best the error message is not descriptive enough.

    And why not make the test function explicitly reentrant using the __reentrant keyword? What is this test trying to test anyway that isn't covered yet?

     
  • Maarten Brock
    Maarten Brock
    2011-12-22

    • milestone: --> non_bugs
    • assigned_to: nobody --> maartenbrock
    • status: open --> closed-rejected