Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • sac2c sac2c
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 394
    • Issues 394
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 25
    • Merge requests 25
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • sac-group
  • sac2csac2c
  • Merge requests
  • !74

disable GNU #line macros, add flag to activate it

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Hans-Nikolai Viessmann requested to merge hans/sac2c:hans-gnu-debug-flag into develop Oct 12, 2018
  • Overview 0
  • Commits 1
  • Changes 4

This commit disables an internal feature in print.c that adds GNU #line macros to the generated C source code. This macro includes the source line indicated and stores this in place of the actual source line being called. With this one can map SAC code to segments of C code.

It is not entirely clear how this is useful, and under most circumstances this leads to confusion as C source lines do not line-up with SAC code (mostly).

Rather then removing this from print.c, this commit introduces the -gg flag to activate the #line macro feature (in addition to what is include normally with -g).

Edited Oct 12, 2018 by Hans-Nikolai Viessmann
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: hans-gnu-debug-flag