sac2c issueshttps://gitlab.sac-home.org/sac-group/sac2c/-/issues2020-01-28T15:54:26Zhttps://gitlab.sac-home.org/sac-group/sac2c/-/issues/2251print N_assign always prints instruction2020-01-28T15:54:26ZHans-Nikolai Viessmannprint N_assign always prints instructionI was tracing problem in print.c when I came across the follow code in `PRTassign`:
```c
instr = ASSIGN_STMT (arg_node);
DBUG_ASSERT (instr != NULL, "instruction of N_assign is NULL");
trav_instr = TRUE;
if (NODE_TYPE (instr) == N_anno...I was tracing problem in print.c when I came across the follow code in `PRTassign`:
```c
instr = ASSIGN_STMT (arg_node);
DBUG_ASSERT (instr != NULL, "instruction of N_assign is NULL");
trav_instr = TRUE;
if (NODE_TYPE (instr) == N_annotate) {
if (global.compiler_phase < PH_cg) {
trav_instr = FALSE;
trav_instr = TRUE;
}
DBUG_EXECUTE_TAG ("PRINT_PROFILE", trav_instr = TRUE);
}
```
I am assuming that when we encounter an N_annotate within the ASSIGN_STMT, we should not traverse through it and print it. Yet here we are overriding the `trav_instr` to be always true, meaning we do. This change was added in commit a0d6a84f51.
Is this intentional?https://gitlab.sac-home.org/sac-group/sac2c/-/issues/1132-printfun option is limited to one function2017-11-19T20:24:02ZClemens Grelck-printfun option is limited to one function| | |
| --- | --- |
| Bugzilla Link | [1010](http://bugs.sac-home.org/show_bug.cgi?id=1010) |
| Created on | Jul 31, 2012 19:06 |
| Version | svn |
| OS | Linux |
| Architecture | PC |
## Extended Description
<pre>This is admittedly ...| | |
| --- | --- |
| Bugzilla Link | [1010](http://bugs.sac-home.org/show_bug.cgi?id=1010) |
| Created on | Jul 31, 2012 19:06 |
| Version | svn |
| OS | Linux |
| Architecture | PC |
## Extended Description
<pre>This is admittedly rather a feature request than a bug, but we use SacZilla for both.
It would be very helpful if one could select multiple functions for printing. The easiest implementation would probably be to support multiple occurences of the -printfun option on one command line and store a list of function names internally.</pre>BugZillaBugZillahttps://gitlab.sac-home.org/sac-group/sac2c/-/issues/1131-printfun option fails to print LaC funs2017-11-19T20:23:59ZClemens Grelck-printfun option fails to print LaC funs| | |
| --- | --- |
| Bugzilla Link | [1009](http://bugs.sac-home.org/show_bug.cgi?id=1009) |
| Created on | Jul 31, 2012 19:03 |
| Version | svn |
| OS | Linux |
| Architecture | PC |
## Extended Description
<pre>The -printfun optio...| | |
| --- | --- |
| Bugzilla Link | [1009](http://bugs.sac-home.org/show_bug.cgi?id=1009) |
| Created on | Jul 31, 2012 19:03 |
| Version | svn |
| OS | Linux |
| Architecture | PC |
## Extended Description
<pre>The -printfun option fails to print LaC funs. Looking into the code, there seems to be steps taken to print LaC funs while they are grouped as local functions, but this holds for hardly more than optimisation cycles. Thus for large parts of the compilation process, subordinate loop and conditional functions are not printed.</pre>BugZillaBugZillahttps://gitlab.sac-home.org/sac-group/sac2c/-/issues/1075Numerical constants printed without qualifier2017-11-19T20:20:42ZClemens GrelckNumerical constants printed without qualifier| | |
| --- | --- |
| Bugzilla Link | [715](http://bugs.sac-home.org/show_bug.cgi?id=715) |
| Created on | May 28, 2010 08:45 |
| Version | svn |
| OS | Linux |
| Architecture | PC |
## Extended Description
<pre>Numerical constants o...| | |
| --- | --- |
| Bugzilla Link | [715](http://bugs.sac-home.org/show_bug.cgi?id=715) |
| Created on | May 28, 2010 08:45 |
| Version | svn |
| OS | Linux |
| Architecture | PC |
## Extended Description
<pre>Numerical constants of the new built-in types short/long/unsigned/etc
are printed without the agree character extension. That makes them difficult
to distinguish from standard int constants and is incompatible to the
parser.</pre>BugZillaBugZilla