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 16
    • Merge requests 16
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • sac-group
  • sac2csac2c
  • Issues
  • #1169
Closed
Open
Created Sep 19, 2014 by Sven-Bodo Scholz@sbsOwner

reference parameters and propagate break

Bugzilla Link 1133
Created on Sep 19, 2014 12:47
Version svn
OS All
Architecture PC
Attachments 1130.sac, bound.sac

Extended Description

Created an attachment (id=1019)
source code that fails; requires further class
The attached example breaks upon
 sac2c -v1 -mt -doWLLO -minmtsize 40 -o lib -Llib 1130.sac
with 
warning: Module/class 'maxclique` should be in a file named "maxclique.sac" instead of "1130.sac"
fun3.c:1293:7: error: use of undeclared identifier 'SACl_scs__p'
      SAC_ND_PROP_OBJ_UNBOX( (SACl_scs, (SCL, (NHD, (NUQ, (INT, (GLO, (FPM, (NOT, )))))))), (SACl_scs, (SCL, (NH...
      ^
/Volumes/Users/sbs/sac2c//include/sac.h:3958:77: note: expanded from macro 'SAC_ND_PROP_OBJ_UNBOX'
#define SAC_ND_PROP_OBJ_UNBOX( unboxed, boxed)  SAC_ND_A_FIELD( unboxed) = *SAC_NAMEP( SAC_ND_A_FIELD( boxed));
                                                                            ^
/Volumes/Users/sbs/sac2c//include/sac.h:785:27: note: expanded from macro 'SAC_NAMEP'
#define SAC_NAMEP( name)  CAT0( name, __p)
                          ^
/Volumes/Users/sbs/sac2c//include/sac.h:250:21: note: expanded from macro 'CAT0'
#define CAT0( x, y) xCAT0( x, y)
                    ^
/Volumes/Users/sbs/sac2c//include/sac.h:251:22: note: expanded from macro 'xCAT0'
#define xCAT0( x, y) x##y
                     ^
:18:1: note: expanded from here
SACl_scs__p
^
fun3.c:1298:7: error: use of undeclared identifier 'SACl_scs__p'
      SAC_ND_PROP_OBJ_BOX( (SACl_scs, (SCL, (NHD, (NUQ, (INT, (GLO, (FPM, (NOT, )))))))), (SACl_scs, (SCL, (NHD...
      ^
/Volumes/Users/sbs/sac2c//include/sac.h:3959:48: note: expanded from macro 'SAC_ND_PROP_OBJ_BOX'
#define SAC_ND_PROP_OBJ_BOX( boxed, unboxed)  *SAC_NAMEP( SAC_ND_A_FIELD( boxed)) = SAC_ND_A_FIELD( unboxed);
                                               ^
/Volumes/Users/sbs/sac2c//include/sac.h:785:27: note: expanded from macro 'SAC_NAMEP'
#define SAC_NAMEP( name)  CAT0( name, __p)
                          ^
/Volumes/Users/sbs/sac2c//include/sac.h:250:21: note: expanded from macro 'CAT0'
#define CAT0( x, y) xCAT0( x, y)
                    ^
/Volumes/Users/sbs/sac2c//include/sac.h:251:22: note: expanded from macro 'xCAT0'
#define xCAT0( x, y) x##y
                     ^
:18:1: note: expanded from here
SACl_scs__p
^
fun3.c:1362:261: warning: implicit declaration of function 'NONE' is invalid in C99 [-Wimplicit-function-declaration]
  ...(NOT, )))))))), (SACp_mtspmdfanon_2734_scs, (SCL, (NHD, (NUQ, (INT, (GLO, (NON, (NOT, )))))))), int, ND, NONE);
                                                                                                              ^
/Volumes/Users/sbs/sac2c//include/sac.h:4167:190: note: expanded from macro 'SAC_MT_SYNC_FOLD_out'
  ...CAT_M4_mt_gen_20(NT_SHP(nt), NT_HID(nt)))( arg1, arg2, nt , gra1, gra2, gra3, gra4)
                                                                                   ^
/Volumes/Users/sbs/sac2c//include/sac.h:4168:71: note: expanded from macro 'SAC_MT_SYNC_FOLD_out_SCLNHD'
#define SAC_MT_SYNC_FOLD_out_SCLNHD(...) SAC_MT_SYNC_FOLD_out__NODESC(__VA_ARGS__)
                                                                      ^
/Volumes/Users/sbs/sac2c//include/sac.h:3920:189: note: expanded from macro 'SAC_MT_SYNC_FOLD_out__NODESC'
  ...foldfun)  SAC_MT_RECEIVE_RESULT_out__NODESC( spmdfun, SAC_MT_son_id, num, val_NT);  SAC_##tag##_FUNAP2( foldfun...
                                                                                                             ^
/Volumes/Users/sbs/sac2c//include/sac.h:661:35: note: expanded from macro 'SAC_ND_FUNAP2'
#define SAC_ND_FUNAP2( name, ...) name(__VA_ARGS__);
                                  ^
1 warning and 2 errors generated.
abort: System failed to execute shell command
abort: cd /tmp/SAC_trU5a4; gcc -pedantic -Wall -Wno-unused -fno-builtin  -march=native -mtune=native
abort: -I$SAC2CBASE/include/  -O3  -c fun3.c -o fun3_nonpic.o
abort: with exit code 1
compilation failed while Creating binary code, 1 warning(s).
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking