|
|
Bugzilla Link |
1134 |
Created on |
Sep 19, 2014 14:38 |
Version |
svn |
OS |
All |
Architecture |
PC |
Attachments |
1134.sac, bound.sac
|
Extended Description
Created an attachment (id=1021)
source code
attached code fails if taking away the inline of the fold function:
sac2c-d -v1 -mt -doWLLO -minmtsize 40 -o lib -Llib 1134.sac -noprelude
warning: Module/class 'maxclique` should be in a file named "maxclique.sac" instead of "1134.sac"
fun1.c:2217:7: warning: incompatible pointer to integer conversion assigning to 'int' from 'bool *' (aka 'int *'); dereference with * [-Wint-conversion]
SAC_MT_SYNC_FOLD_out( SACf_maxclique_CL_ST___mtspmdf_272_expandFS__bl_300__bl_300__SACt_bound__bound, 1, (SACl_cs, (AKD, (NHD, (NUQ, (INT, (GLO, (NON, (NOT, )))))))), (SACp_mtspmdfanon_271_scs__SSA0_2, (SCL, (NHD, (NUQ, (INT, (GLO, (NON, (NOT, ))))))))...
^
/Volumes/Users/sbs/sac2c//include/sac.h:4167:72: note: expanded from macro 'SAC_MT_SYNC_FOLD_out'
#define SAC_MT_SYNC_FOLD_out( arg1, arg2, nt , gra1, gra2, gra3, gra4) CAT_M4_mt_gen_19(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:4186:32: note: expanded from macro 'CAT_M4_mt_gen_19'
#define CAT_M4_mt_gen_19(x, y) xCAT_M4_mt_gen_19(x, y)
^
/Volumes/Users/sbs/sac2c//include/sac.h:4187:33: note: expanded from macro 'xCAT_M4_mt_gen_19'
#define xCAT_M4_mt_gen_19(x, y) x##y
^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
/Volumes/Users/sbs/sac2c//include/sac.h:4174:42: note: expanded from macro 'SAC_MT_SYNC_FOLD_out_AKDNHD'
#define SAC_MT_SYNC_FOLD_out_AKDNHD(...) SAC_MT_SYNC_FOLD_out__DESC(__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Volumes/Users/sbs/sac2c//include/sac.h:3922:93: note: expanded from macro 'SAC_MT_SYNC_FOLD_out__DESC'
#define SAC_MT_SYNC_FOLD_out__DESC( spmdfun, num, accu_NT, val_NT, basetype, tag, foldfun) SAC_MT_RECEIVE_RESULT_out__DESC( spmdfun, SAC_MT_son_id, num, val_NT); SAC_##tag##_FUNAP2( foldfun, SAC_ND_ARG_out( accu_NT, basetype), SAC_ND_ARG_in( accu_NT, baset...
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Volumes/Users/sbs/sac2c//include/sac.h:3913:99: note: expanded from macro 'SAC_MT_RECEIVE_RESULT_out__DESC'
#define SAC_MT_RECEIVE_RESULT_out__DESC( spmdfun, local_id, num, var_NT) SAC_ND_A_FIELD( var_NT) = rdata[local_id].in_##num; SAC_ND_A_DESC( var_NT) = rdata[local_id].in_##num##_desc;
^ ~~~~~~~~~~~~~~~~~~~~~~~~
fun1.c:2217:7: error: use of undeclared identifier '_ICM_IS_UNDEFINED_'
/Volumes/Users/sbs/sac2c//include/sac.h:4167:72: note: expanded from macro 'SAC_MT_SYNC_FOLD_out'
#define SAC_MT_SYNC_FOLD_out( arg1, arg2, nt , gra1, gra2, gra3, gra4) CAT_M4_mt_gen_19(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:4186:32: note: expanded from macro 'CAT_M4_mt_gen_19'
#define CAT_M4_mt_gen_19(x, y) xCAT_M4_mt_gen_19(x, y)
^
/Volumes/Users/sbs/sac2c//include/sac.h:4187:33: note: expanded from macro 'xCAT_M4_mt_gen_19'
#define xCAT_M4_mt_gen_19(x, y) x##y
^
note: (skipping 8 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
/Volumes/Users/sbs/sac2c//include/sac.h:1015:38: note: expanded from macro 'SAC_ND_A_DESC_SCLNHDNUQ'
#define SAC_ND_A_DESC_SCLNHDNUQ(...) SAC_ND_A_DESC__UNDEF(__VA_ARGS__)
^
/Volumes/Users/sbs/sac2c//include/sac.h:686:40: note: expanded from macro 'SAC_ND_A_DESC__UNDEF'
#define SAC_ND_A_DESC__UNDEF( var_NT) SAC_ICM_UNDEF()
^
/Volumes/Users/sbs/sac2c//include/sac.h:3066:26: note: expanded from macro 'SAC_ICM_UNDEF'
#define SAC_ICM_UNDEF() _ICM_IS_UNDEFINED_
^
fun1.c:2217:7: error: too few arguments to function call, expected 7, have 6
...SAC_MT_SYNC_FOLD_out( SACf_maxclique_CL_ST___mtspmdf_272_expandFS__bl_300__bl_300__SACt_bound__bound, 1, (SACl_cs, (AKD, (NHD, (NUQ, (INT, (GLO, (NON, (NOT, )))))))), (SACp_mtspmdfanon_271_scs__SSA0_2, (SCL, (NHD, (NUQ, (INT, (GLO, (NON, (NOT, )))))))), bool, MT, SACf_maxclique_CL_MT__maxsum__bl_X__bl_X);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Volumes/Users/sbs/sac2c//include/sac.h:4167:72: note: expanded from macro 'SAC_MT_SYNC_FOLD_out'
#define SAC_MT_SYNC_FOLD_out( arg1, arg2, nt , gra1, gra2, gra3, gra4) CAT_M4_mt_gen_19(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:4186:32: note: expanded from macro 'CAT_M4_mt_gen_19'
#define CAT_M4_mt_gen_19(x, y) xCAT_M4_mt_gen_19(x, y)
^
/Volumes/Users/sbs/sac2c//include/sac.h:4187:33: note: expanded from macro 'xCAT_M4_mt_gen_19'
#define xCAT_M4_mt_gen_19(x, y) x##y
^
note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
/Volumes/Users/sbs/sac2c//include/sac.h:3922:165: note: expanded from macro 'SAC_MT_SYNC_FOLD_out__DESC'
#define SAC_MT_SYNC_FOLD_out__DESC( spmdfun, num, accu_NT, val_NT, basetype, tag, foldfun) SAC_MT_RECEIVE_RESULT_out__DESC( spmdfun, SAC_MT_son_id, num, val_NT); SAC_##tag##_FUNAP2( foldfun, SAC_ND_ARG_out( accu_NT, basetype), SAC_ND_ARG_in( accu_NT, baset...
^
:95:1: note: expanded from here
SAC_MT_FUNAP2
^
/Volumes/Users/sbs/sac2c//include/sac.h:3924:65: note: expanded from macro 'SAC_MT_FUNAP2'
#define SAC_MT_FUNAP2( name, ...) name( SAC_MT_self, __VA_ARGS__);
^
./header.h:318:1: note: 'SACf_maxclique_CL_MT__maxsum__bl_X__bl_X' declared here
SAC_C_EXTERN
^
./header.h:81:32: note: expanded from macro 'SAC_C_EXTERN'
#define SAC_C_EXTERN extern
^
1 warning and 2 errors generated.
abort: System failed to execute shell command
abort: cd /tmp/SAC_y2ljku; gcc -pedantic -Wall -Wno-unused -fno-builtin -march=native -mtune=native -I$SAC2CBASE/include/ -c fun1.c -o fun1_nonpic.o
abort: with exit code 1
compilation failed while Creating binary code, 1 warning(s).
-sbs-Bodos-IMac->