Jump to content

tony_kirke

Members
  • Content Count

    3
  • Joined

  • Last visited

  1. tony_kirke

    gcc 4.6.0 warning messages for SystemC 2.2.0

    Thanks everyone for the replies. I'm sorry if i rubbed anyone the wrong way. I did misunderstand how this standard/organisation worked and thought the code was the standard. I think a 2.2.1 would have solved my issues in that 1) next updates of most HLS tools would probably include it. 2) it could be downloaded and installed as a known entity company wide. Otherwise I have to request HLS vendors that bundle SystemC to each make changes to their installs so I can also compile code with GCC 4.6.0 and then also update our own separate installs. Since I thought the code was the standard this didn't seem to be either feasible or make sense. But as a PoC I think it's fine to do this as needed. Does anyone know the right fixes for the parenthesis issues (in first post)? I'm afraid I might get the operator precedence incorrect and not sure where the parenthesis should go to avoid the warnings. Thanks again
  2. Hi I know people are aware of 2.2.0 compiler warnings, etc for recent gcc versions such as 4.6 or greater and that these have been addressed in SystemC 2.3.0 However, because various HLS synthesis tools only support 2.2.0 at the moment and there will be a delayed movement to 2.3.0, we are left with these warnings if we want to do a system simulation where we need to use a more modern version gcc and not a tool specific version. Also given that people often use -Wall, this is a problem Would it possible to release at 2.2.1 version of SystemC that just addresses these compiler issues? Below are the warnings that I'm seeing with gcc 4.6.0. The fixes should only take someone familiar with the code a few minutes, but if you are not clear about operator precedence the -Wparentheses warnings are a little more tricky to fix. /tools/systemc/2.2.0/src/sysc/datatypes/bit/sc_bit_proxies.h:1193:18: warning: reference 'm_left' cannot be declared 'mutable' [-fpermissive] /tools/systemc/2.2.0/src/sysc/datatypes/bit/sc_bit_proxies.h:1194:18: warning: reference 'm_right' cannot be declared 'mutable' [-fpermissive] /tools/systemc/2.2.0/src/sysc/datatypes/bit/sc_bit_proxies.h:1196:18: warning: reference 'm_refs' cannot be declared 'mutable' [-fpermissive] /tools/systemc/2.2.0/src/sysc/datatypes/bit/sc_bit_proxies.h:716:16: warning: reference 'm_obj' cannot be declared 'mutable' [-fpermissivIn /tools/systemc/2.2.0/src/sysc/datatypes/bit/sc_bit_proxies.h:716:16: warning: reference 'm_obj' cannot be declared 'mutable' [-fpermissive] /tools/systemc/2.2.0/src/sysc/datatypes/bit/sc_lv_base.h:310:33: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] /tools/systemc/2.2.0/src/sysc/datatypes/bit/sc_proxy.h:1002:51: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] /tools/systemc/2.2.0/src/sysc/datatypes/bit/sc_proxy.h:1003:28: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] /tools/systemc/2.2.0/src/sysc/datatypes/bit/sc_proxy.h:1026:53: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] /tools/systemc/2.2.0/src/sysc/datatypes/bit/sc_proxy.h:1051:28: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] /tools/systemc/2.2.0/src/sysc/datatypes/fx/scfx_utils.h:141:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses] /tools/systemc/2.2.0/src/sysc/datatypes/fx/scfx_utils.h:145:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses] /tools/systemc/2.2.0/src/sysc/datatypes/fx/scfx_utils.h:155:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses] /tools/systemc/2.2.0/src/sysc/datatypes/fx/scfx_utils.h:159:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses] /tools/systemc/2.2.0/src/sysc/datatypes/fx/scfx_utils.h:169:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses] /tools/systemc/2.2.0/src/sysc/datatypes/fx/scfx_utils.h:173:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses] /tools/systemc/2.2.0/src/sysc/datatypes/fx/scfx_utils.h:189:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses] Thanks Tony
×