Changeset 04e367c
- Timestamp:
- Jul 30, 2018, 4:49:40 PM (6 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
- Children:
- 3537dd7, 3bbd012
- Parents:
- ba4a1d8 (diff), a4248de1 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Files:
-
- 29 edited
Legend:
- Unmodified
- Added
- Removed
-
.gitignore
rba4a1d8 r04e367c 8 8 config.status 9 9 config.log 10 config.py 10 11 stamp-h1 11 12 /Makefile -
Jenkinsfile
rba4a1d8 r04e367c 174 174 175 175 def notify_server(int wait) { 176 sh """curl -- data "wait=${wait}" -X POST https://cforall.uwaterloo.ca:8082/jenkins/notify > /dev/null || true"""176 sh """curl --silent --show-error --data "wait=${wait}" -X POST https://cforall.uwaterloo.ca:8082/jenkins/notify > /dev/null || true""" 177 177 return 178 178 } … … 260 260 def install_dir = pwd tmp: true 261 261 262 //Output compiler version to help with debug 263 echo """C++ Compiler :""" 264 sh "which ${compiler.cpp_cc} && ${compiler.cpp_cc} --version" 265 echo """C Compiler :""" 266 sh "which ${compiler.cfa_cc} && ${compiler.cfa_cc} --version" 267 268 //Configure the conpilation (Output is not relevant) 269 //Use the current directory as the installation target so nothing escapes the sandbox 270 //Also specify the compiler by hand 271 sh "./configure CXX=${compiler.cpp_cc} ${architecture} --with-backend-compiler=${compiler.cfa_cc} --prefix=${install_dir} --enable-silent-rules --quiet" 272 273 //Compile the project 274 sh 'make -j 8 --no-print-directory V=0 install' 262 // Build outside of the src tree to ease cleaning 263 sh "mkdir -p build" 264 dir ('build') { 265 //Configure the conpilation (Output is not relevant) 266 //Use the current directory as the installation target so nothing escapes the sandbox 267 //Also specify the compiler by hand 268 sh "../configure CXX=${compiler.cpp_cc} ${architecture} --with-backend-compiler=${compiler.cfa_cc} --prefix=${install_dir} --enable-silent-rules --quiet" 269 270 //Compile the project 271 sh 'make -j 8 --no-print-directory' 272 } 275 273 } 276 274 } … … 281 279 //Run the tests from the tests directory 282 280 if ( do_alltests ) { 283 sh 'make -C src/tests all-tests debug=yes --no-print-directory'284 sh 'make -C src/tests all-tests debug=no --no-print-directory'281 sh 'make -C build/src/tests all-tests debug=yes --no-print-directory' 282 sh 'make -C build/src/tests all-tests debug=no --no-print-directory' 285 283 } 286 284 else { 287 sh 'make -C src/tests --no-print-directory'285 sh 'make -C build/src/tests --no-print-directory' 288 286 } 289 287 } … … 296 294 297 295 //Append bench results 298 sh 'make -C src/benchmark --no-print-directory jenkins githash=' + gitRefNewValue + ' arch=' + arch_name + ' | tee bench.json'296 sh 'make -C build/src/benchmark --no-print-directory jenkins githash=' + gitRefNewValue + ' arch=' + arch_name + ' | tee bench.json' 299 297 } 300 298 } … … 302 300 def clean() { 303 301 build_stage('Cleanup') { 304 305 //do a maintainer-clean to make sure we need to remake from scratch 306 sh 'make maintainer-clean > /dev/null' 302 // clean the build by wipping the build directory 303 sh 'rm -rf build' 307 304 } 308 305 } … … 329 326 330 327 //Then publish the results 331 sh 'curl - H \'Content-Type: application/json\' --data @bench.json https://cforall.uwaterloo.ca:8082/jenkins/publish > /dev/null || true'328 sh 'curl --silent --show-error -H \'Content-Type: application/json\' --data @bench.json https://cforall.uwaterloo.ca:8082/jenkins/publish > /dev/null || true' 332 329 } 333 330 } -
Makefile.in
rba4a1d8 r04e367c 290 290 LTLIBOBJS = @LTLIBOBJS@ 291 291 MACHINE_TYPE = @MACHINE_TYPE@ 292 MAINT = @MAINT@293 292 MAKEINFO = @MAKEINFO@ 294 293 MKDIR_P = @MKDIR_P@ … … 372 371 am--refresh: Makefile 373 372 @: 374 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@$(srcdir)/Makefile.am $(am__configure_deps)373 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) 375 374 @for dep in $?; do \ 376 375 case '$(am__configure_deps)' in \ … … 398 397 $(SHELL) ./config.status --recheck 399 398 400 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@$(am__configure_deps)399 $(top_srcdir)/configure: $(am__configure_deps) 401 400 $(am__cd) $(srcdir) && $(AUTOCONF) 402 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@$(am__aclocal_m4_deps)401 $(ACLOCAL_M4): $(am__aclocal_m4_deps) 403 402 $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) 404 403 $(am__aclocal_m4_deps): … … 411 410 @rm -f stamp-h1 412 411 cd $(top_builddir) && $(SHELL) ./config.status config.h 413 $(top_srcdir)/src/config.h.in: @MAINTAINER_MODE_TRUE@$(am__configure_deps)412 $(top_srcdir)/src/config.h.in: $(am__configure_deps) 414 413 ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) 415 414 rm -f stamp-h1 -
aclocal.m4
rba4a1d8 r04e367c 703 703 AC_SUBST([am__leading_dot])]) 704 704 705 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-706 # From Jim Meyering707 708 # Copyright (C) 1996-2014 Free Software Foundation, Inc.709 #710 # This file is free software; the Free Software Foundation711 # gives unlimited permission to copy and/or distribute it,712 # with or without modifications, as long as this notice is preserved.713 714 # AM_MAINTAINER_MODE([DEFAULT-MODE])715 # ----------------------------------716 # Control maintainer-specific portions of Makefiles.717 # Default is to disable them, unless 'enable' is passed literally.718 # For symmetry, 'disable' may be passed as well. Anyway, the user719 # can override the default with the --enable/--disable switch.720 AC_DEFUN([AM_MAINTAINER_MODE],721 [m4_case(m4_default([$1], [disable]),722 [enable], [m4_define([am_maintainer_other], [disable])],723 [disable], [m4_define([am_maintainer_other], [enable])],724 [m4_define([am_maintainer_other], [enable])725 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])726 AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])727 dnl maintainer-mode's default is 'disable' unless 'enable' is passed728 AC_ARG_ENABLE([maintainer-mode],729 [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],730 am_maintainer_other[ make rules and dependencies not useful731 (and sometimes confusing) to the casual installer])],732 [USE_MAINTAINER_MODE=$enableval],733 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))734 AC_MSG_RESULT([$USE_MAINTAINER_MODE])735 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])736 MAINT=$MAINTAINER_MODE_TRUE737 AC_SUBST([MAINT])dnl738 ]739 )740 741 705 # Check to see how 'make' treats includes. -*- Autoconf -*- 742 706 -
configure
rba4a1d8 r04e367c 691 691 BACKEND_CC 692 692 CFA_NAME 693 MAINT694 MAINTAINER_MODE_FALSE695 MAINTAINER_MODE_TRUE696 693 am__untar 697 694 am__tar … … 764 761 enable_option_checking 765 762 enable_silent_rules 766 enable_maintainer_mode767 763 with_cfa_name 768 764 with_backend_compiler … … 1419 1415 --enable-silent-rules less verbose build output (undo: "make V=1") 1420 1416 --disable-silent-rules verbose build output (undo: "make V=0") 1421 --disable-maintainer-mode1422 disable make rules and dependencies not useful (and1423 sometimes confusing) to the casual installer1424 1417 --enable-target-release Build and install the release target 1425 1418 --enable-target-debug Build and install the debug target … … 3075 3068 3076 3069 3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&53078 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }3079 # Check whether --enable-maintainer-mode was given.3080 if test "${enable_maintainer_mode+set}" = set; then :3081 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval3082 else3083 USE_MAINTAINER_MODE=yes3084 fi3085 3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&53087 $as_echo "$USE_MAINTAINER_MODE" >&6; }3088 if test $USE_MAINTAINER_MODE = yes; then3089 MAINTAINER_MODE_TRUE=3090 MAINTAINER_MODE_FALSE='#'3091 else3092 MAINTAINER_MODE_TRUE='#'3093 MAINTAINER_MODE_FALSE=3094 fi3095 3096 MAINT=$MAINTAINER_MODE_TRUE3097 3098 # may require auto* software to be installed3099 3100 3070 # Allow program name tansformation 3101 3071 # will fill program_transform_name with appropriate sed regex … … 6295 6265 6296 6266 6267 ac_config_links="$ac_config_links src/tests/test.py:src/tests/test.py" 6268 6269 6297 6270 ac_config_files="$ac_config_files src/tests/config.py" 6298 6271 … … 6422 6395 fi 6423 6396 6424 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then6425 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.6426 Usually this means the macro was only invoked conditionally." "$LINENO" 56427 fi6428 6397 if test -z "${BUILD_RELEASE_TRUE}" && test -z "${BUILD_RELEASE_FALSE}"; then 6429 6398 as_fn_error $? "conditional \"BUILD_RELEASE\" was never defined. … … 6882 6851 config_files="$ac_config_files" 6883 6852 config_headers="$ac_config_headers" 6853 config_links="$ac_config_links" 6884 6854 config_commands="$ac_config_commands" 6885 6855 … … 6911 6881 Configuration headers: 6912 6882 $config_headers 6883 6884 Configuration links: 6885 $config_links 6913 6886 6914 6887 Configuration commands: … … 7063 7036 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; 7064 7037 "tools/prettyprinter/Makefile") CONFIG_FILES="$CONFIG_FILES tools/prettyprinter/Makefile" ;; 7038 "src/tests/test.py") CONFIG_LINKS="$CONFIG_LINKS src/tests/test.py:src/tests/test.py" ;; 7065 7039 "src/tests/config.py") CONFIG_FILES="$CONFIG_FILES src/tests/config.py" ;; 7066 7040 … … 7077 7051 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 7078 7052 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 7053 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links 7079 7054 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 7080 7055 fi … … 7374 7349 7375 7350 7376 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"7351 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS" 7377 7352 shift 7378 7353 for ac_tag … … 7651 7626 s/.*/./; q'`/stamp-h$_am_stamp_count 7652 7627 ;; 7653 7628 :L) 7629 # 7630 # CONFIG_LINK 7631 # 7632 7633 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then 7634 : 7635 else 7636 # Prefer the file from the source tree if names are identical. 7637 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then 7638 ac_source=$srcdir/$ac_source 7639 fi 7640 7641 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5 7642 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;} 7643 7644 if test ! -r "$ac_source"; then 7645 as_fn_error $? "$ac_source: file not found" "$LINENO" 5 7646 fi 7647 rm -f "$ac_file" 7648 7649 # Try a relative symlink, then a hard link, then a copy. 7650 case $ac_source in 7651 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;; 7652 *) ac_rel_source=$ac_top_build_prefix$ac_source ;; 7653 esac 7654 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null || 7655 ln "$ac_source" "$ac_file" 2>/dev/null || 7656 cp -p "$ac_source" "$ac_file" || 7657 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5 7658 fi 7659 ;; 7654 7660 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 7655 7661 $as_echo "$as_me: executing $ac_file commands" >&6;} -
configure.ac
rba4a1d8 r04e367c 10 10 11 11 AM_INIT_AUTOMAKE([subdir-objects]) 12 AM_MAINTAINER_MODE(enable) # may require auto* software to be installed13 12 14 13 # Allow program name tansformation … … 251 250 ]) 252 251 252 AC_CONFIG_LINKS([src/tests/test.py:src/tests/test.py]) 253 253 254 AC_OUTPUT(src/tests/config.py) 254 255 -
doc/user/Makefile
rba4a1d8 r04e367c 51 51 # File Dependencies # 52 52 53 build/version: ../../configure | ${Build} 54 ../../configure --version | grep "cfa-cc configure" | grep -oEe "([0-9]+\.)+[0-9]+" > $@ 55 53 56 ${DOCUMENT} : ${BASE}.ps 54 57 ps2pdf $< … … 58 61 59 62 ${BASE}.dvi : Makefile ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} \ 60 ${Macros}/common.tex ${Macros}/lstlang.sty ${Macros}/indexstyle ../bibliography/pl.bib | ${Build}63 ${Macros}/common.tex ${Macros}/lstlang.sty ${Macros}/indexstyle ../bibliography/pl.bib build/version | ${Build} 61 64 # Conditionally create an empty *.ind (index) file for inclusion until makeindex is run. 62 65 if [ ! -r ${basename $@}.ind ] ; then touch ${Build}/${basename $@}.ind ; fi -
doc/user/user.tex
rba4a1d8 r04e367c 1 1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -*- Mode: Latex -*- %%%%%%%%%%%%%%%%%%%%%%%%%%%% 2 %% 2 %% 3 3 %% Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo 4 4 %% 5 5 %% The contents of this file are covered under the licence agreement in the 6 6 %% file "LICENCE" distributed with Cforall. 7 %% 8 %% user.tex -- 9 %% 7 %% 8 %% user.tex -- 9 %% 10 10 %% Author : Peter A. Buhr 11 11 %% Created On : Wed Apr 6 14:53:29 2016 … … 72 72 73 73 % Names used in the document. 74 \newcommand{\Version}{\input{ ../../version}}74 \newcommand{\Version}{\input{build/version}} 75 75 \newcommand{\Textbf}[2][red]{{\color{#1}{\textbf{#2}}}} 76 76 \newcommand{\Emph}[2][red]{{\color{#1}\textbf{\emph{#2}}}} … … 430 430 #endif 431 431 \end{cfa} 432 which conditionally includes the correct header file, if the program is compiled using \Indexc{gcc} or \Indexc{cfa}. 432 which conditionally includes the correct header file, if the program is compiled using \Indexc{gcc} or \Indexc{cfa}. 433 433 434 434 … … 1447 1447 \end{cfa} 1448 1448 Algol68 infers the following dereferencing ©*p2 = *p1 + x©, because adding the arbitrary integer value in ©x© to the address of ©p1© and storing the resulting address into ©p2© is an unlikely operation. 1449 Unfortunately, automatic dereferencing does not work in all cases, and so some mechanism is necessary to fix incorrect choices. 1449 Unfortunately, automatic dereferencing does not work in all cases, and so some mechanism is necessary to fix incorrect choices. 1450 1450 1451 1451 Rather than inferring dereference, most programming languages pick one implicit dereferencing semantics, and the programmer explicitly indicates the other to resolve address-duality. … … 2282 2282 struct T t; 2283 2283 } s; 2284 2284 2285 2285 2286 2286 … … 2354 2354 } 2355 2355 \end{cfa} 2356 because 2356 because 2357 2357 2358 2358 Currently, there are no \Index{lambda} expressions, \ie unnamed routines because routine names are very important to properly select the correct routine. … … 3394 3394 sout | sepDisable | 1 | 2 | 3 | endl; // globally turn off implicit separator 3395 3395 sout | sepEnable | 1 | 2 | 3 | endl; // globally turn on implicit separator 3396 3396 3397 3397 sout | 1 | sepOff | 2 | 3 | endl; // locally turn on implicit separator 3398 3398 sout | sepDisable | 1 | sepOn | 2 | 3 | endl; // globally turn off implicit separator -
src/Makefile.in
rba4a1d8 r04e367c 299 299 am__v_CXXLD_0 = @echo " CXXLD " $@; 300 300 am__v_CXXLD_1 = 301 @MAINTAINER_MODE_FALSE@am__skiplex = test -f $@ ||302 301 LEXCOMPILE = $(LEX) $(AM_LFLAGS) $(LFLAGS) 303 302 AM_V_LEX = $(am__v_LEX_@AM_V@) … … 306 305 am__v_LEX_1 = 307 306 YLWRAP = $(top_srcdir)/automake/ylwrap 308 @MAINTAINER_MODE_FALSE@am__skipyacc = test -f $@ ||309 307 am__yacc_c2h = sed -e s/cc$$/hh/ -e s/cpp$$/hpp/ -e s/cxx$$/hxx/ \ 310 308 -e s/c++$$/h++/ -e s/c$$/h/ … … 414 412 LTLIBOBJS = @LTLIBOBJS@ 415 413 MACHINE_TYPE = @MACHINE_TYPE@ 416 MAINT = @MAINT@417 414 MAKEINFO = @MAKEINFO@ 418 415 MKDIR_P = @MKDIR_P@ … … 557 554 .SUFFIXES: 558 555 .SUFFIXES: .cc .ll .o .obj .yy 559 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@$(srcdir)/Makefile.am $(srcdir)/CodeGen/module.mk $(srcdir)/CodeTools/module.mk $(srcdir)/Concurrency/module.mk $(srcdir)/Common/module.mk $(srcdir)/ControlStruct/module.mk $(srcdir)/GenPoly/module.mk $(srcdir)/InitTweak/module.mk $(srcdir)/Parser/module.mk $(srcdir)/ResolvExpr/module.mk $(srcdir)/SymTab/module.mk $(srcdir)/SynTree/module.mk $(srcdir)/Tuples/module.mk $(srcdir)/Validate/module.mk $(srcdir)/Virtual/module.mk $(am__configure_deps)556 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(srcdir)/CodeGen/module.mk $(srcdir)/CodeTools/module.mk $(srcdir)/Concurrency/module.mk $(srcdir)/Common/module.mk $(srcdir)/ControlStruct/module.mk $(srcdir)/GenPoly/module.mk $(srcdir)/InitTweak/module.mk $(srcdir)/Parser/module.mk $(srcdir)/ResolvExpr/module.mk $(srcdir)/SymTab/module.mk $(srcdir)/SynTree/module.mk $(srcdir)/Tuples/module.mk $(srcdir)/Validate/module.mk $(srcdir)/Virtual/module.mk $(am__configure_deps) 560 557 @for dep in $?; do \ 561 558 case '$(am__configure_deps)' in \ … … 582 579 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 583 580 584 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@$(am__configure_deps)581 $(top_srcdir)/configure: $(am__configure_deps) 585 582 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 586 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@$(am__aclocal_m4_deps)583 $(ACLOCAL_M4): $(am__aclocal_m4_deps) 587 584 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 588 585 $(am__aclocal_m4_deps): -
src/benchmark/Makefile.am
rba4a1d8 r04e367c 17 17 # applies to both programs 18 18 CFLAGS = 19 AM_CFLAGS = -g -Wall -Wno-unused-function -O2 20 CC = @CFA_BINDIR@/@CFA_NAME@ 19 AM_CFLAGS = \ 20 -XCFA \ 21 -t \ 22 -B${abs_top_builddir}/src/driver \ 23 -g \ 24 -O2 \ 25 -Wall \ 26 -Wno-unused-function \ 27 -quiet \ 28 -I$(srcdir) \ 29 -L${abs_top_builddir}/src/libcfa \ 30 -I${abs_top_srcdir}/src/libcfa \ 31 -I${abs_top_srcdir}/src/libcfa/containers \ 32 -I${abs_top_srcdir}/src/libcfa/concurrency \ 33 -I${abs_top_srcdir}/src/libcfa/stdhdr 34 35 CC = ${top_builddir}/src/driver/cfa 21 36 TOOLSDIR = ${abs_top_srcdir}/tools/ 22 37 REPEAT = ${TOOLSDIR}repeat … … 93 108 ## ========================================================================================================= 94 109 loop$(EXEEXT): 95 @@BACKEND_CC@ loop.c -DBENCH_N=5000000000 -I .-lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags}110 @@BACKEND_CC@ loop.c -DBENCH_N=5000000000 -I$(srcdir) -lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags} 96 111 97 112 function$(EXEEXT): 98 @@BACKEND_CC@ function.c -DBENCH_N=5000000000 -I .-lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags}113 @@BACKEND_CC@ function.c -DBENCH_N=5000000000 -I$(srcdir) -lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags} 99 114 100 115 fetch_add$(EXEEXT): 101 @@BACKEND_CC@ fetch_add.c -DBENCH_N=500000000 -I .-lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags}116 @@BACKEND_CC@ fetch_add.c -DBENCH_N=500000000 -I$(srcdir) -lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags} 102 117 103 118 ## ========================================================================================================= … … 118 133 119 134 ctxswitch-pthread$(EXEEXT): 120 @@BACKEND_CC@ ctxswitch/pthreads.c -DBENCH_N=50000000 -I.-lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags}135 @@BACKEND_CC@ $(srcdir)/ctxswitch/pthreads.c -DBENCH_N=50000000 -I$(srcdir) -lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags} 121 136 122 137 ctxswitch-cfa_coroutine$(EXEEXT): 123 @${CC} ctxswitch/cfa_cor.c -DBENCH_N=50000000 -I.-nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}138 @${CC} $(srcdir)/ctxswitch/cfa_cor.c -DBENCH_N=50000000 -I$(srcdir) -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 124 139 125 140 ctxswitch-cfa_thread$(EXEEXT): 126 @${CC} ctxswitch/cfa_thrd.c -DBENCH_N=50000000 -I.-nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}141 @${CC} $(srcdir)/ctxswitch/cfa_thrd.c -DBENCH_N=50000000 -I$(srcdir) -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 127 142 128 143 ctxswitch-cfa_thread2$(EXEEXT): 129 @${CC} ctxswitch/cfa_thrd2.c -DBENCH_N=50000000 -I.-nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}144 @${CC} $(srcdir)/ctxswitch/cfa_thrd2.c -DBENCH_N=50000000 -I$(srcdir) -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 130 145 131 146 ctxswitch-upp_coroutine$(EXEEXT): 132 @u++ ctxswitch/upp_cor.cc -DBENCH_N=50000000 -I.-nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags}147 @u++ $(srcdir)/ctxswitch/upp_cor.cc -DBENCH_N=50000000 -I$(srcdir) -nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags} 133 148 134 149 ctxswitch-upp_thread$(EXEEXT): 135 @u++ ctxswitch/upp_thrd.cc -DBENCH_N=50000000 -I.-nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags}150 @u++ $(srcdir)/ctxswitch/upp_thrd.cc -DBENCH_N=50000000 -I$(srcdir) -nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags} 136 151 137 152 ctxswitch-kos_fibre$(EXEEXT): 138 @${CXX} ctxswitch/kos_fibre.cpp -DBENCH_N=50000000 -I.-I/home/tdelisle/software/KOS/src/ -g -O2 -lfibre -lpthread -lrt153 @${CXX} $(srcdir)/ctxswitch/kos_fibre.cpp -DBENCH_N=50000000 -I$(srcdir) -I/home/tdelisle/software/KOS/src/ -g -O2 -lfibre -lpthread -lrt 139 154 140 155 ctxswitch-kos_fibre2$(EXEEXT): 141 @${CXX} ctxswitch/kos_fibre2.cpp -DBENCH_N=50000000 -I.-I/home/tdelisle/software/KOS/src/ -g -O2 -lfibre -lpthread -lrt156 @${CXX} $(srcdir)/ctxswitch/kos_fibre2.cpp -DBENCH_N=50000000 -I$(srcdir) -I/home/tdelisle/software/KOS/src/ -g -O2 -lfibre -lpthread -lrt 142 157 143 158 ctxswitch-goroutine$(EXEEXT): 144 @go build -o a.out ctxswitch/goroutine.go159 @go build -o a.out $(srcdir)/ctxswitch/goroutine.go 145 160 146 161 ctxswitch-java_thread$(EXEEXT): 147 @javac ctxswitch/JavaThread.java162 @javac $(srcdir)/ctxswitch/JavaThread.java 148 163 @echo "#!/bin/sh" > a.out 149 164 @echo "cd ctxswitch && java JavaThread" >> a.out … … 163 178 164 179 mutex-pthread_lock$(EXEEXT): 165 @@BACKEND_CC@ mutex/pthreads.c -DBENCH_N=50000000 -I.-lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags}180 @@BACKEND_CC@ $(srcdir)/mutex/pthreads.c -DBENCH_N=50000000 -I$(srcdir) -lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags} 166 181 167 182 mutex-upp$(EXEEXT): 168 @u++ mutex/upp.cc -DBENCH_N=50000000 -I.-nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags}183 @u++ $(srcdir)/mutex/upp.cc -DBENCH_N=50000000 -I$(srcdir) -nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags} 169 184 170 185 mutex-cfa1$(EXEEXT): 171 @${CC} mutex/cfa1.c -DBENCH_N=5000000 -I.-nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}186 @${CC} $(srcdir)/mutex/cfa1.c -DBENCH_N=5000000 -I$(srcdir) -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 172 187 173 188 mutex-cfa2$(EXEEXT): 174 @${CC} mutex/cfa2.c -DBENCH_N=5000000 -I.-nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}189 @${CC} $(srcdir)/mutex/cfa2.c -DBENCH_N=5000000 -I$(srcdir) -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 175 190 176 191 mutex-cfa4$(EXEEXT): 177 @${CC} mutex/cfa4.c -DBENCH_N=5000000 -I.-nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}192 @${CC} $(srcdir)/mutex/cfa4.c -DBENCH_N=5000000 -I$(srcdir) -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 178 193 179 194 mutex-java_thread$(EXEEXT): 180 @javac mutex/JavaThread.java195 @javac $(srcdir)/mutex/JavaThread.java 181 196 @echo "#!/bin/sh" > a.out 182 197 @echo "cd mutex && java JavaThread" >> a.out … … 193 208 194 209 signal-pthread_cond$(EXEEXT): 195 @@BACKEND_CC@ schedint/pthreads.c -DBENCH_N=500000 -I.-lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags}210 @@BACKEND_CC@ $(srcdir)/schedint/pthreads.c -DBENCH_N=500000 -I$(srcdir) -lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags} 196 211 197 212 signal-upp$(EXEEXT): 198 @u++ schedint/upp.cc -DBENCH_N=5000000 -I.-nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags}213 @u++ $(srcdir)/schedint/upp.cc -DBENCH_N=5000000 -I$(srcdir) -nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags} 199 214 200 215 signal-cfa1$(EXEEXT): 201 @${CC} schedint/cfa1.c -DBENCH_N=500000 -I.-nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}216 @${CC} $(srcdir)/schedint/cfa1.c -DBENCH_N=500000 -I$(srcdir) -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 202 217 203 218 signal-cfa2$(EXEEXT): 204 @${CC} schedint/cfa2.c -DBENCH_N=500000 -I.-nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}219 @${CC} $(srcdir)/schedint/cfa2.c -DBENCH_N=500000 -I$(srcdir) -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 205 220 206 221 signal-cfa4$(EXEEXT): 207 @${CC} schedint/cfa4.c -DBENCH_N=500000 -I.-nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}222 @${CC} $(srcdir)/schedint/cfa4.c -DBENCH_N=500000 -I$(srcdir) -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 208 223 209 224 signal-java_thread$(EXEEXT): 210 @javac schedint/JavaThread.java225 @javac $(srcdir)/schedint/JavaThread.java 211 226 @echo "#!/bin/sh" > a.out 212 227 @echo "cd schedint && java JavaThread" >> a.out … … 222 237 223 238 waitfor-upp$(EXEEXT): 224 @u++ schedext/upp.cc -DBENCH_N=5000000 -I.-nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags}239 @u++ $(srcdir)/schedext/upp.cc -DBENCH_N=5000000 -I$(srcdir) -nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags} 225 240 226 241 waitfor-cfa1$(EXEEXT): 227 @${CC} schedext/cfa1.c -DBENCH_N=500000 -I.-nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}242 @${CC} $(srcdir)/schedext/cfa1.c -DBENCH_N=500000 -I$(srcdir) -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 228 243 229 244 waitfor-cfa2$(EXEEXT): 230 @${CC} schedext/cfa2.c -DBENCH_N=500000 -I.-nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}245 @${CC} $(srcdir)/schedext/cfa2.c -DBENCH_N=500000 -I$(srcdir) -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 231 246 232 247 waitfor-cfa4$(EXEEXT): 233 @${CC} schedext/cfa4.c -DBENCH_N=500000 -I.-nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}248 @${CC} $(srcdir)/schedext/cfa4.c -DBENCH_N=500000 -I$(srcdir) -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 234 249 235 250 ## ========================================================================================================= … … 245 260 246 261 creation-cfa_coroutine$(EXEEXT): 247 @${CC} creation/cfa_cor.c -DBENCH_N=10000000 -I.-nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}262 @${CC} $(srcdir)/creation/cfa_cor.c -DBENCH_N=10000000 -I$(srcdir) -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 248 263 249 264 creation-cfa_coroutine_eager$(EXEEXT): 250 @${CC} creation/cfa_cor.c -DBENCH_N=10000000 -I.-nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} -DEAGER265 @${CC} $(srcdir)/creation/cfa_cor.c -DBENCH_N=10000000 -I$(srcdir) -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} -DEAGER 251 266 252 267 creation-cfa_thread$(EXEEXT): 253 @${CC} creation/cfa_thrd.c -DBENCH_N=10000000 -I.-nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}268 @${CC} $(srcdir)/creation/cfa_thrd.c -DBENCH_N=10000000 -I$(srcdir) -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 254 269 255 270 creation-upp_coroutine$(EXEEXT): 256 @u++ creation/upp_cor.cc -DBENCH_N=50000000 -I.-nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags}271 @u++ $(srcdir)/creation/upp_cor.cc -DBENCH_N=50000000 -I$(srcdir) -nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags} 257 272 258 273 creation-upp_thread$(EXEEXT): 259 @u++ creation/upp_thrd.cc -DBENCH_N=50000000 -I.-nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags}274 @u++ $(srcdir)/creation/upp_thrd.cc -DBENCH_N=50000000 -I$(srcdir) -nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags} 260 275 261 276 creation-pthread$(EXEEXT): 262 @@BACKEND_CC@ creation/pthreads.c -DBENCH_N=250000 -I.-lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags}277 @@BACKEND_CC@ $(srcdir)/creation/pthreads.c -DBENCH_N=250000 -I$(srcdir) -lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags} 263 278 264 279 creation-goroutine$(EXEEXT): 265 @go build -o a.out creation/goroutine.go280 @go build -o a.out $(srcdir)/creation/goroutine.go 266 281 267 282 creation-java_thread$(EXEEXT): 268 @javac creation/JavaThread.java283 @javac $(srcdir)/creation/JavaThread.java 269 284 @echo "#!/bin/sh" > a.out 270 285 @echo "cd creation && java JavaThread" >> a.out … … 284 299 285 300 301 testdir = $(top_srcdir)/src/tests 302 286 303 compile-array$(EXEEXT): 287 @${CC} -quiet -fsyntax-only -w ../tests/array.c@CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}304 @${CC} -quiet -fsyntax-only -w $(testdir)/array.c @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 288 305 289 306 compile-attributes$(EXEEXT): 290 @${CC} -quiet -fsyntax-only -w ../tests/attributes.c@CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}307 @${CC} -quiet -fsyntax-only -w $(testdir)/attributes.c @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 291 308 292 309 compile-empty$(EXEEXT): 293 @${CC} -quiet -fsyntax-only -w compile/empty.c@CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}310 @${CC} -quiet -fsyntax-only -w $(srcdir)/compile/empty.c @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 294 311 295 312 compile-expression$(EXEEXT): 296 @${CC} -quiet -fsyntax-only -w ../tests/expression.c@CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}313 @${CC} -quiet -fsyntax-only -w $(testdir)/expression.c @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 297 314 298 315 compile-io$(EXEEXT): 299 @${CC} -quiet -fsyntax-only -w ../tests/io1.c @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}316 @${CC} -quiet -fsyntax-only -w $(testdir)/io1.c @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 300 317 301 318 compile-monitor$(EXEEXT): 302 @${CC} -quiet -fsyntax-only -w ../tests/concurrent/monitor.c @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}319 @${CC} -quiet -fsyntax-only -w $(testdir)/concurrent/monitor.c @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 303 320 304 321 compile-operators$(EXEEXT): 305 @${CC} -quiet -fsyntax-only -w ../tests/operators.c @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}322 @${CC} -quiet -fsyntax-only -w $(testdir)/operators.c @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 306 323 307 324 compile-thread$(EXEEXT): 308 @${CC} -quiet -fsyntax-only -w ../tests/concurrent/thread.c@CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}325 @${CC} -quiet -fsyntax-only -w $(testdir)/concurrent/thread.c @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 309 326 310 327 compile-typeof$(EXEEXT): 311 @${CC} -quiet -fsyntax-only -w ../tests/typeof.c @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}312 328 @${CC} -quiet -fsyntax-only -w $(testdir)/typeof.c @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 329 -
src/benchmark/Makefile.in
rba4a1d8 r04e367c 135 135 AWK = @AWK@ 136 136 BACKEND_CC = @BACKEND_CC@ 137 CC = @CFA_BINDIR@/@CFA_NAME@137 CC = ${top_builddir}/src/driver/cfa 138 138 CCAS = @CCAS@ 139 139 CCASDEPMODE = @CCASDEPMODE@ … … 177 177 LTLIBOBJS = @LTLIBOBJS@ 178 178 MACHINE_TYPE = @MACHINE_TYPE@ 179 MAINT = @MAINT@180 179 MAKEINFO = @MAKEINFO@ 181 180 MKDIR_P = @MKDIR_P@ … … 248 247 top_builddir = @top_builddir@ 249 248 top_srcdir = @top_srcdir@ 250 AM_CFLAGS = -g -Wall -Wno-unused-function -O2 249 AM_CFLAGS = \ 250 -XCFA \ 251 -t \ 252 -B${abs_top_builddir}/src/driver \ 253 -g \ 254 -O2 \ 255 -Wall \ 256 -Wno-unused-function \ 257 -quiet \ 258 -I$(srcdir) \ 259 -L${abs_top_builddir}/src/libcfa \ 260 -I${abs_top_srcdir}/src/libcfa \ 261 -I${abs_top_srcdir}/src/libcfa/containers \ 262 -I${abs_top_srcdir}/src/libcfa/concurrency \ 263 -I${abs_top_srcdir}/src/libcfa/stdhdr 264 251 265 TOOLSDIR = ${abs_top_srcdir}/tools/ 252 266 REPEAT = ${TOOLSDIR}repeat … … 256 270 TIME_FORMAT = "%E" 257 271 PRINT_FORMAT = %20s: #Comments needed for spacing 272 testdir = $(top_srcdir)/src/tests 258 273 all: all-am 259 274 260 275 .SUFFIXES: 261 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@$(srcdir)/Makefile.am $(am__configure_deps)276 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) 262 277 @for dep in $?; do \ 263 278 case '$(am__configure_deps)' in \ … … 283 298 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 284 299 285 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@$(am__configure_deps)300 $(top_srcdir)/configure: $(am__configure_deps) 286 301 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 287 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@$(am__aclocal_m4_deps)302 $(ACLOCAL_M4): $(am__aclocal_m4_deps) 288 303 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 289 304 $(am__aclocal_m4_deps): … … 506 521 507 522 loop$(EXEEXT): 508 @@BACKEND_CC@ loop.c -DBENCH_N=5000000000 -I .-lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags}523 @@BACKEND_CC@ loop.c -DBENCH_N=5000000000 -I$(srcdir) -lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags} 509 524 510 525 function$(EXEEXT): 511 @@BACKEND_CC@ function.c -DBENCH_N=5000000000 -I .-lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags}526 @@BACKEND_CC@ function.c -DBENCH_N=5000000000 -I$(srcdir) -lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags} 512 527 513 528 fetch_add$(EXEEXT): 514 @@BACKEND_CC@ fetch_add.c -DBENCH_N=500000000 -I .-lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags}529 @@BACKEND_CC@ fetch_add.c -DBENCH_N=500000000 -I$(srcdir) -lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags} 515 530 516 531 ctxswitch$(EXEEXT): \ … … 530 545 531 546 ctxswitch-pthread$(EXEEXT): 532 @@BACKEND_CC@ ctxswitch/pthreads.c -DBENCH_N=50000000 -I.-lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags}547 @@BACKEND_CC@ $(srcdir)/ctxswitch/pthreads.c -DBENCH_N=50000000 -I$(srcdir) -lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags} 533 548 534 549 ctxswitch-cfa_coroutine$(EXEEXT): 535 @${CC} ctxswitch/cfa_cor.c -DBENCH_N=50000000 -I.-nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}550 @${CC} $(srcdir)/ctxswitch/cfa_cor.c -DBENCH_N=50000000 -I$(srcdir) -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 536 551 537 552 ctxswitch-cfa_thread$(EXEEXT): 538 @${CC} ctxswitch/cfa_thrd.c -DBENCH_N=50000000 -I.-nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}553 @${CC} $(srcdir)/ctxswitch/cfa_thrd.c -DBENCH_N=50000000 -I$(srcdir) -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 539 554 540 555 ctxswitch-cfa_thread2$(EXEEXT): 541 @${CC} ctxswitch/cfa_thrd2.c -DBENCH_N=50000000 -I.-nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}556 @${CC} $(srcdir)/ctxswitch/cfa_thrd2.c -DBENCH_N=50000000 -I$(srcdir) -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 542 557 543 558 ctxswitch-upp_coroutine$(EXEEXT): 544 @u++ ctxswitch/upp_cor.cc -DBENCH_N=50000000 -I.-nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags}559 @u++ $(srcdir)/ctxswitch/upp_cor.cc -DBENCH_N=50000000 -I$(srcdir) -nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags} 545 560 546 561 ctxswitch-upp_thread$(EXEEXT): 547 @u++ ctxswitch/upp_thrd.cc -DBENCH_N=50000000 -I.-nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags}562 @u++ $(srcdir)/ctxswitch/upp_thrd.cc -DBENCH_N=50000000 -I$(srcdir) -nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags} 548 563 549 564 ctxswitch-kos_fibre$(EXEEXT): 550 @${CXX} ctxswitch/kos_fibre.cpp -DBENCH_N=50000000 -I.-I/home/tdelisle/software/KOS/src/ -g -O2 -lfibre -lpthread -lrt565 @${CXX} $(srcdir)/ctxswitch/kos_fibre.cpp -DBENCH_N=50000000 -I$(srcdir) -I/home/tdelisle/software/KOS/src/ -g -O2 -lfibre -lpthread -lrt 551 566 552 567 ctxswitch-kos_fibre2$(EXEEXT): 553 @${CXX} ctxswitch/kos_fibre2.cpp -DBENCH_N=50000000 -I.-I/home/tdelisle/software/KOS/src/ -g -O2 -lfibre -lpthread -lrt568 @${CXX} $(srcdir)/ctxswitch/kos_fibre2.cpp -DBENCH_N=50000000 -I$(srcdir) -I/home/tdelisle/software/KOS/src/ -g -O2 -lfibre -lpthread -lrt 554 569 555 570 ctxswitch-goroutine$(EXEEXT): 556 @go build -o a.out ctxswitch/goroutine.go571 @go build -o a.out $(srcdir)/ctxswitch/goroutine.go 557 572 558 573 ctxswitch-java_thread$(EXEEXT): 559 @javac ctxswitch/JavaThread.java574 @javac $(srcdir)/ctxswitch/JavaThread.java 560 575 @echo "#!/bin/sh" > a.out 561 576 @echo "cd ctxswitch && java JavaThread" >> a.out … … 574 589 575 590 mutex-pthread_lock$(EXEEXT): 576 @@BACKEND_CC@ mutex/pthreads.c -DBENCH_N=50000000 -I.-lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags}591 @@BACKEND_CC@ $(srcdir)/mutex/pthreads.c -DBENCH_N=50000000 -I$(srcdir) -lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags} 577 592 578 593 mutex-upp$(EXEEXT): 579 @u++ mutex/upp.cc -DBENCH_N=50000000 -I.-nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags}594 @u++ $(srcdir)/mutex/upp.cc -DBENCH_N=50000000 -I$(srcdir) -nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags} 580 595 581 596 mutex-cfa1$(EXEEXT): 582 @${CC} mutex/cfa1.c -DBENCH_N=5000000 -I.-nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}597 @${CC} $(srcdir)/mutex/cfa1.c -DBENCH_N=5000000 -I$(srcdir) -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 583 598 584 599 mutex-cfa2$(EXEEXT): 585 @${CC} mutex/cfa2.c -DBENCH_N=5000000 -I.-nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}600 @${CC} $(srcdir)/mutex/cfa2.c -DBENCH_N=5000000 -I$(srcdir) -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 586 601 587 602 mutex-cfa4$(EXEEXT): 588 @${CC} mutex/cfa4.c -DBENCH_N=5000000 -I.-nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}603 @${CC} $(srcdir)/mutex/cfa4.c -DBENCH_N=5000000 -I$(srcdir) -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 589 604 590 605 mutex-java_thread$(EXEEXT): 591 @javac mutex/JavaThread.java606 @javac $(srcdir)/mutex/JavaThread.java 592 607 @echo "#!/bin/sh" > a.out 593 608 @echo "cd mutex && java JavaThread" >> a.out … … 603 618 604 619 signal-pthread_cond$(EXEEXT): 605 @@BACKEND_CC@ schedint/pthreads.c -DBENCH_N=500000 -I.-lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags}620 @@BACKEND_CC@ $(srcdir)/schedint/pthreads.c -DBENCH_N=500000 -I$(srcdir) -lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags} 606 621 607 622 signal-upp$(EXEEXT): 608 @u++ schedint/upp.cc -DBENCH_N=5000000 -I.-nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags}623 @u++ $(srcdir)/schedint/upp.cc -DBENCH_N=5000000 -I$(srcdir) -nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags} 609 624 610 625 signal-cfa1$(EXEEXT): 611 @${CC} schedint/cfa1.c -DBENCH_N=500000 -I.-nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}626 @${CC} $(srcdir)/schedint/cfa1.c -DBENCH_N=500000 -I$(srcdir) -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 612 627 613 628 signal-cfa2$(EXEEXT): 614 @${CC} schedint/cfa2.c -DBENCH_N=500000 -I.-nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}629 @${CC} $(srcdir)/schedint/cfa2.c -DBENCH_N=500000 -I$(srcdir) -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 615 630 616 631 signal-cfa4$(EXEEXT): 617 @${CC} schedint/cfa4.c -DBENCH_N=500000 -I.-nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}632 @${CC} $(srcdir)/schedint/cfa4.c -DBENCH_N=500000 -I$(srcdir) -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 618 633 619 634 signal-java_thread$(EXEEXT): 620 @javac schedint/JavaThread.java635 @javac $(srcdir)/schedint/JavaThread.java 621 636 @echo "#!/bin/sh" > a.out 622 637 @echo "cd schedint && java JavaThread" >> a.out … … 630 645 631 646 waitfor-upp$(EXEEXT): 632 @u++ schedext/upp.cc -DBENCH_N=5000000 -I.-nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags}647 @u++ $(srcdir)/schedext/upp.cc -DBENCH_N=5000000 -I$(srcdir) -nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags} 633 648 634 649 waitfor-cfa1$(EXEEXT): 635 @${CC} schedext/cfa1.c -DBENCH_N=500000 -I.-nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}650 @${CC} $(srcdir)/schedext/cfa1.c -DBENCH_N=500000 -I$(srcdir) -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 636 651 637 652 waitfor-cfa2$(EXEEXT): 638 @${CC} schedext/cfa2.c -DBENCH_N=500000 -I.-nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}653 @${CC} $(srcdir)/schedext/cfa2.c -DBENCH_N=500000 -I$(srcdir) -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 639 654 640 655 waitfor-cfa4$(EXEEXT): 641 @${CC} schedext/cfa4.c -DBENCH_N=500000 -I.-nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}656 @${CC} $(srcdir)/schedext/cfa4.c -DBENCH_N=500000 -I$(srcdir) -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 642 657 643 658 creation$(EXEEXT) :\ … … 652 667 653 668 creation-cfa_coroutine$(EXEEXT): 654 @${CC} creation/cfa_cor.c -DBENCH_N=10000000 -I.-nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}669 @${CC} $(srcdir)/creation/cfa_cor.c -DBENCH_N=10000000 -I$(srcdir) -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 655 670 656 671 creation-cfa_coroutine_eager$(EXEEXT): 657 @${CC} creation/cfa_cor.c -DBENCH_N=10000000 -I.-nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} -DEAGER672 @${CC} $(srcdir)/creation/cfa_cor.c -DBENCH_N=10000000 -I$(srcdir) -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} -DEAGER 658 673 659 674 creation-cfa_thread$(EXEEXT): 660 @${CC} creation/cfa_thrd.c -DBENCH_N=10000000 -I.-nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}675 @${CC} $(srcdir)/creation/cfa_thrd.c -DBENCH_N=10000000 -I$(srcdir) -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 661 676 662 677 creation-upp_coroutine$(EXEEXT): 663 @u++ creation/upp_cor.cc -DBENCH_N=50000000 -I.-nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags}678 @u++ $(srcdir)/creation/upp_cor.cc -DBENCH_N=50000000 -I$(srcdir) -nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags} 664 679 665 680 creation-upp_thread$(EXEEXT): 666 @u++ creation/upp_thrd.cc -DBENCH_N=50000000 -I.-nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags}681 @u++ $(srcdir)/creation/upp_thrd.cc -DBENCH_N=50000000 -I$(srcdir) -nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags} 667 682 668 683 creation-pthread$(EXEEXT): 669 @@BACKEND_CC@ creation/pthreads.c -DBENCH_N=250000 -I.-lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags}684 @@BACKEND_CC@ $(srcdir)/creation/pthreads.c -DBENCH_N=250000 -I$(srcdir) -lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags} 670 685 671 686 creation-goroutine$(EXEEXT): 672 @go build -o a.out creation/goroutine.go687 @go build -o a.out $(srcdir)/creation/goroutine.go 673 688 674 689 creation-java_thread$(EXEEXT): 675 @javac creation/JavaThread.java690 @javac $(srcdir)/creation/JavaThread.java 676 691 @echo "#!/bin/sh" > a.out 677 692 @echo "cd creation && java JavaThread" >> a.out … … 689 704 690 705 compile-array$(EXEEXT): 691 @${CC} -quiet -fsyntax-only -w ../tests/array.c@CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}706 @${CC} -quiet -fsyntax-only -w $(testdir)/array.c @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 692 707 693 708 compile-attributes$(EXEEXT): 694 @${CC} -quiet -fsyntax-only -w ../tests/attributes.c@CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}709 @${CC} -quiet -fsyntax-only -w $(testdir)/attributes.c @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 695 710 696 711 compile-empty$(EXEEXT): 697 @${CC} -quiet -fsyntax-only -w compile/empty.c@CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}712 @${CC} -quiet -fsyntax-only -w $(srcdir)/compile/empty.c @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 698 713 699 714 compile-expression$(EXEEXT): 700 @${CC} -quiet -fsyntax-only -w ../tests/expression.c@CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}715 @${CC} -quiet -fsyntax-only -w $(testdir)/expression.c @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 701 716 702 717 compile-io$(EXEEXT): 703 @${CC} -quiet -fsyntax-only -w ../tests/io1.c @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}718 @${CC} -quiet -fsyntax-only -w $(testdir)/io1.c @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 704 719 705 720 compile-monitor$(EXEEXT): 706 @${CC} -quiet -fsyntax-only -w ../tests/concurrent/monitor.c @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}721 @${CC} -quiet -fsyntax-only -w $(testdir)/concurrent/monitor.c @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 707 722 708 723 compile-operators$(EXEEXT): 709 @${CC} -quiet -fsyntax-only -w ../tests/operators.c @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}724 @${CC} -quiet -fsyntax-only -w $(testdir)/operators.c @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 710 725 711 726 compile-thread$(EXEEXT): 712 @${CC} -quiet -fsyntax-only -w ../tests/concurrent/thread.c@CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}727 @${CC} -quiet -fsyntax-only -w $(testdir)/concurrent/thread.c @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 713 728 714 729 compile-typeof$(EXEEXT): 715 @${CC} -quiet -fsyntax-only -w ../tests/typeof.c @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}730 @${CC} -quiet -fsyntax-only -w $(testdir)/typeof.c @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 716 731 717 732 # Tell versions [3.59,3.63) of GNU make to not export all variables. -
src/driver/Makefile.in
rba4a1d8 r04e367c 221 221 LTLIBOBJS = @LTLIBOBJS@ 222 222 MACHINE_TYPE = @MACHINE_TYPE@ 223 MAINT = @MAINT@224 223 MAKEINFO = @MAKEINFO@ 225 224 MKDIR_P = @MKDIR_P@ … … 306 305 .SUFFIXES: 307 306 .SUFFIXES: .cc .o .obj 308 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@$(srcdir)/Makefile.am $(am__configure_deps)307 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) 309 308 @for dep in $?; do \ 310 309 case '$(am__configure_deps)' in \ … … 330 329 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 331 330 332 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@$(am__configure_deps)331 $(top_srcdir)/configure: $(am__configure_deps) 333 332 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 334 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@$(am__aclocal_m4_deps)333 $(ACLOCAL_M4): $(am__aclocal_m4_deps) 335 334 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 336 335 $(am__aclocal_m4_deps): -
src/driver/cfa.cc
rba4a1d8 r04e367c 343 343 args[nargs] = "--undefined=__cfaabi_interpose_startup"; 344 344 nargs += 1; 345 args[nargs] = "-Xlinker"; 346 nargs += 1; 347 args[nargs] = "--undefined=__cfaabi_appready_startup"; 348 nargs += 1; 345 349 346 350 // include the cfa library in case it's needed -
src/examples/Makefile.in
rba4a1d8 r04e367c 231 231 LTLIBOBJS = @LTLIBOBJS@ 232 232 MACHINE_TYPE = @MACHINE_TYPE@ 233 MAINT = @MAINT@234 233 MAKEINFO = @MAKEINFO@ 235 234 MKDIR_P = @MKDIR_P@ … … 310 309 .SUFFIXES: 311 310 .SUFFIXES: .c .o .obj 312 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@$(srcdir)/Makefile.am $(am__configure_deps)311 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) 313 312 @for dep in $?; do \ 314 313 case '$(am__configure_deps)' in \ … … 334 333 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 335 334 336 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@$(am__configure_deps)335 $(top_srcdir)/configure: $(am__configure_deps) 337 336 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 338 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@$(am__aclocal_m4_deps)337 $(ACLOCAL_M4): $(am__aclocal_m4_deps) 339 338 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 340 339 $(am__aclocal_m4_deps): -
src/libcfa/Makefile.am
rba4a1d8 r04e367c 55 55 56 56 libobjs = ${headers:=.o} 57 libsrc = libcfa-prelude.c interpose.c bits/debug.c assert.c exception.c virtual.c heap.c startup.c \57 libsrc = libcfa-prelude.c startup.c interpose.c bits/debug.c assert.c exception.c virtual.c heap.c \ 58 58 ${headers:=.c} 59 59 … … 64 64 65 65 # extensionless header files are overridden by -o flag in default makerule => explicitly override default rule to silently do nothing 66 # SKULLDUGGERY in order to make sure this isn't called make the rule always fail but also create a rule for headers 66 67 % : %.c 67 @true 68 echo "Dummy rule, should never be called" 69 false 70 71 # This rule should always match headers and since it has no prerequisite it will never be called 72 $(addprefix $(srcdir)/,$(headers)): 73 echo "Dummy rule, should never be called" 74 false 68 75 69 76 concurrency/libcfa_a-invoke.o : concurrency/invoke.c -
src/libcfa/Makefile.in
rba4a1d8 r04e367c 148 148 libcfa_d_a_AR = $(AR) $(ARFLAGS) 149 149 libcfa_d_a_LIBADD = 150 am__libcfa_d_a_SOURCES_DIST = libcfa-prelude.c interpose.c \151 bits/debug.c assert.c exception.c virtual.c heap.c startup.c \152 fstream.c iostream.c iterator.c limits.c rational.c time.c \153 stdlib.ccommon.c containers/maybe.c containers/pair.c \150 am__libcfa_d_a_SOURCES_DIST = libcfa-prelude.c startup.c interpose.c \ 151 bits/debug.c assert.c exception.c virtual.c heap.c fstream.c \ 152 iostream.c iterator.c limits.c rational.c time.c stdlib.c \ 153 common.c containers/maybe.c containers/pair.c \ 154 154 containers/result.c containers/vector.c \ 155 155 concurrency/coroutine.c concurrency/thread.c \ … … 177 177 @BUILD_CONCURRENCY_TRUE@ concurrency/libcfa_d_a-preemption.$(OBJEXT) 178 178 am__objects_4 = libcfa_d_a-libcfa-prelude.$(OBJEXT) \ 179 libcfa_d_a- interpose.$(OBJEXT) bits/libcfa_d_a-debug.$(OBJEXT) \180 libcfa_d_a-assert.$(OBJEXT) libcfa_d_a-exception.$(OBJEXT) \181 libcfa_d_a- virtual.$(OBJEXT) libcfa_d_a-heap.$(OBJEXT) \182 libcfa_d_a- startup.$(OBJEXT) $(am__objects_2) $(am__objects_3)179 libcfa_d_a-startup.$(OBJEXT) libcfa_d_a-interpose.$(OBJEXT) \ 180 bits/libcfa_d_a-debug.$(OBJEXT) libcfa_d_a-assert.$(OBJEXT) \ 181 libcfa_d_a-exception.$(OBJEXT) libcfa_d_a-virtual.$(OBJEXT) \ 182 libcfa_d_a-heap.$(OBJEXT) $(am__objects_2) $(am__objects_3) 183 183 am_libcfa_d_a_OBJECTS = $(am__objects_4) 184 184 libcfa_d_a_OBJECTS = $(am_libcfa_d_a_OBJECTS) 185 185 libcfa_a_AR = $(AR) $(ARFLAGS) 186 186 libcfa_a_LIBADD = 187 am__libcfa_a_SOURCES_DIST = libcfa-prelude.c interpose.c bits/debug.c \188 assert.c exception.c virtual.c heap.c startup.c fstream.c \187 am__libcfa_a_SOURCES_DIST = libcfa-prelude.c startup.c interpose.c \ 188 bits/debug.c assert.c exception.c virtual.c heap.c fstream.c \ 189 189 iostream.c iterator.c limits.c rational.c time.c stdlib.c \ 190 190 common.c containers/maybe.c containers/pair.c \ … … 212 212 @BUILD_CONCURRENCY_TRUE@ concurrency/libcfa_a-preemption.$(OBJEXT) 213 213 am__objects_8 = libcfa_a-libcfa-prelude.$(OBJEXT) \ 214 libcfa_a- interpose.$(OBJEXT) bits/libcfa_a-debug.$(OBJEXT) \215 libcfa_a-assert.$(OBJEXT) libcfa_a-exception.$(OBJEXT) \216 libcfa_a- virtual.$(OBJEXT) libcfa_a-heap.$(OBJEXT) \217 libcfa_a- startup.$(OBJEXT) $(am__objects_6) $(am__objects_7)214 libcfa_a-startup.$(OBJEXT) libcfa_a-interpose.$(OBJEXT) \ 215 bits/libcfa_a-debug.$(OBJEXT) libcfa_a-assert.$(OBJEXT) \ 216 libcfa_a-exception.$(OBJEXT) libcfa_a-virtual.$(OBJEXT) \ 217 libcfa_a-heap.$(OBJEXT) $(am__objects_6) $(am__objects_7) 218 218 am_libcfa_a_OBJECTS = $(am__objects_8) 219 219 libcfa_a_OBJECTS = $(am_libcfa_a_OBJECTS) … … 347 347 LTLIBOBJS = @LTLIBOBJS@ 348 348 MACHINE_TYPE = @MACHINE_TYPE@ 349 MAINT = @MAINT@350 349 MAKEINFO = @MAKEINFO@ 351 350 MKDIR_P = @MKDIR_P@ … … 429 428 containers/vector $(am__append_3) 430 429 libobjs = ${headers:=.o} 431 libsrc = libcfa-prelude.c interpose.c bits/debug.c assert.c \ 432 exception.c virtual.c heap.c startup.c ${headers:=.c} \ 433 $(am__append_4) 430 libsrc = libcfa-prelude.c startup.c interpose.c bits/debug.c assert.c \ 431 exception.c virtual.c heap.c ${headers:=.c} $(am__append_4) 434 432 libcfa_a_SOURCES = ${libsrc} 435 433 libcfa_a_CFLAGS = -nodebug -O2 … … 456 454 .SUFFIXES: 457 455 .SUFFIXES: .S .c .o .obj 458 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@$(srcdir)/Makefile.am $(am__configure_deps)456 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) 459 457 @for dep in $?; do \ 460 458 case '$(am__configure_deps)' in \ … … 480 478 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 481 479 482 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@$(am__configure_deps)480 $(top_srcdir)/configure: $(am__configure_deps) 483 481 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 484 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@$(am__aclocal_m4_deps)482 $(ACLOCAL_M4): $(am__aclocal_m4_deps) 485 483 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 486 484 $(am__aclocal_m4_deps): … … 709 707 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcfa_d_a_CFLAGS) $(CFLAGS) -c -o libcfa_d_a-libcfa-prelude.obj `if test -f 'libcfa-prelude.c'; then $(CYGPATH_W) 'libcfa-prelude.c'; else $(CYGPATH_W) '$(srcdir)/libcfa-prelude.c'; fi` 710 708 709 libcfa_d_a-startup.o: startup.c 710 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcfa_d_a_CFLAGS) $(CFLAGS) -MT libcfa_d_a-startup.o -MD -MP -MF $(DEPDIR)/libcfa_d_a-startup.Tpo -c -o libcfa_d_a-startup.o `test -f 'startup.c' || echo '$(srcdir)/'`startup.c 711 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libcfa_d_a-startup.Tpo $(DEPDIR)/libcfa_d_a-startup.Po 712 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='startup.c' object='libcfa_d_a-startup.o' libtool=no @AMDEPBACKSLASH@ 713 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 714 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcfa_d_a_CFLAGS) $(CFLAGS) -c -o libcfa_d_a-startup.o `test -f 'startup.c' || echo '$(srcdir)/'`startup.c 715 716 libcfa_d_a-startup.obj: startup.c 717 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcfa_d_a_CFLAGS) $(CFLAGS) -MT libcfa_d_a-startup.obj -MD -MP -MF $(DEPDIR)/libcfa_d_a-startup.Tpo -c -o libcfa_d_a-startup.obj `if test -f 'startup.c'; then $(CYGPATH_W) 'startup.c'; else $(CYGPATH_W) '$(srcdir)/startup.c'; fi` 718 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libcfa_d_a-startup.Tpo $(DEPDIR)/libcfa_d_a-startup.Po 719 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='startup.c' object='libcfa_d_a-startup.obj' libtool=no @AMDEPBACKSLASH@ 720 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 721 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcfa_d_a_CFLAGS) $(CFLAGS) -c -o libcfa_d_a-startup.obj `if test -f 'startup.c'; then $(CYGPATH_W) 'startup.c'; else $(CYGPATH_W) '$(srcdir)/startup.c'; fi` 722 711 723 libcfa_d_a-interpose.o: interpose.c 712 724 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcfa_d_a_CFLAGS) $(CFLAGS) -MT libcfa_d_a-interpose.o -MD -MP -MF $(DEPDIR)/libcfa_d_a-interpose.Tpo -c -o libcfa_d_a-interpose.o `test -f 'interpose.c' || echo '$(srcdir)/'`interpose.c … … 779 791 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcfa_d_a_CFLAGS) $(CFLAGS) -c -o libcfa_d_a-heap.obj `if test -f 'heap.c'; then $(CYGPATH_W) 'heap.c'; else $(CYGPATH_W) '$(srcdir)/heap.c'; fi` 780 792 781 libcfa_d_a-startup.o: startup.c782 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcfa_d_a_CFLAGS) $(CFLAGS) -MT libcfa_d_a-startup.o -MD -MP -MF $(DEPDIR)/libcfa_d_a-startup.Tpo -c -o libcfa_d_a-startup.o `test -f 'startup.c' || echo '$(srcdir)/'`startup.c783 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libcfa_d_a-startup.Tpo $(DEPDIR)/libcfa_d_a-startup.Po784 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='startup.c' object='libcfa_d_a-startup.o' libtool=no @AMDEPBACKSLASH@785 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@786 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcfa_d_a_CFLAGS) $(CFLAGS) -c -o libcfa_d_a-startup.o `test -f 'startup.c' || echo '$(srcdir)/'`startup.c787 788 libcfa_d_a-startup.obj: startup.c789 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcfa_d_a_CFLAGS) $(CFLAGS) -MT libcfa_d_a-startup.obj -MD -MP -MF $(DEPDIR)/libcfa_d_a-startup.Tpo -c -o libcfa_d_a-startup.obj `if test -f 'startup.c'; then $(CYGPATH_W) 'startup.c'; else $(CYGPATH_W) '$(srcdir)/startup.c'; fi`790 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libcfa_d_a-startup.Tpo $(DEPDIR)/libcfa_d_a-startup.Po791 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='startup.c' object='libcfa_d_a-startup.obj' libtool=no @AMDEPBACKSLASH@792 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@793 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcfa_d_a_CFLAGS) $(CFLAGS) -c -o libcfa_d_a-startup.obj `if test -f 'startup.c'; then $(CYGPATH_W) 'startup.c'; else $(CYGPATH_W) '$(srcdir)/startup.c'; fi`794 795 793 libcfa_d_a-fstream.o: fstream.c 796 794 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcfa_d_a_CFLAGS) $(CFLAGS) -MT libcfa_d_a-fstream.o -MD -MP -MF $(DEPDIR)/libcfa_d_a-fstream.Tpo -c -o libcfa_d_a-fstream.o `test -f 'fstream.c' || echo '$(srcdir)/'`fstream.c … … 1073 1071 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcfa_a_CFLAGS) $(CFLAGS) -c -o libcfa_a-libcfa-prelude.obj `if test -f 'libcfa-prelude.c'; then $(CYGPATH_W) 'libcfa-prelude.c'; else $(CYGPATH_W) '$(srcdir)/libcfa-prelude.c'; fi` 1074 1072 1073 libcfa_a-startup.o: startup.c 1074 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcfa_a_CFLAGS) $(CFLAGS) -MT libcfa_a-startup.o -MD -MP -MF $(DEPDIR)/libcfa_a-startup.Tpo -c -o libcfa_a-startup.o `test -f 'startup.c' || echo '$(srcdir)/'`startup.c 1075 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libcfa_a-startup.Tpo $(DEPDIR)/libcfa_a-startup.Po 1076 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='startup.c' object='libcfa_a-startup.o' libtool=no @AMDEPBACKSLASH@ 1077 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 1078 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcfa_a_CFLAGS) $(CFLAGS) -c -o libcfa_a-startup.o `test -f 'startup.c' || echo '$(srcdir)/'`startup.c 1079 1080 libcfa_a-startup.obj: startup.c 1081 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcfa_a_CFLAGS) $(CFLAGS) -MT libcfa_a-startup.obj -MD -MP -MF $(DEPDIR)/libcfa_a-startup.Tpo -c -o libcfa_a-startup.obj `if test -f 'startup.c'; then $(CYGPATH_W) 'startup.c'; else $(CYGPATH_W) '$(srcdir)/startup.c'; fi` 1082 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libcfa_a-startup.Tpo $(DEPDIR)/libcfa_a-startup.Po 1083 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='startup.c' object='libcfa_a-startup.obj' libtool=no @AMDEPBACKSLASH@ 1084 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 1085 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcfa_a_CFLAGS) $(CFLAGS) -c -o libcfa_a-startup.obj `if test -f 'startup.c'; then $(CYGPATH_W) 'startup.c'; else $(CYGPATH_W) '$(srcdir)/startup.c'; fi` 1086 1075 1087 libcfa_a-interpose.o: interpose.c 1076 1088 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcfa_a_CFLAGS) $(CFLAGS) -MT libcfa_a-interpose.o -MD -MP -MF $(DEPDIR)/libcfa_a-interpose.Tpo -c -o libcfa_a-interpose.o `test -f 'interpose.c' || echo '$(srcdir)/'`interpose.c … … 1142 1154 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 1143 1155 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcfa_a_CFLAGS) $(CFLAGS) -c -o libcfa_a-heap.obj `if test -f 'heap.c'; then $(CYGPATH_W) 'heap.c'; else $(CYGPATH_W) '$(srcdir)/heap.c'; fi` 1144 1145 libcfa_a-startup.o: startup.c1146 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcfa_a_CFLAGS) $(CFLAGS) -MT libcfa_a-startup.o -MD -MP -MF $(DEPDIR)/libcfa_a-startup.Tpo -c -o libcfa_a-startup.o `test -f 'startup.c' || echo '$(srcdir)/'`startup.c1147 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libcfa_a-startup.Tpo $(DEPDIR)/libcfa_a-startup.Po1148 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='startup.c' object='libcfa_a-startup.o' libtool=no @AMDEPBACKSLASH@1149 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@1150 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcfa_a_CFLAGS) $(CFLAGS) -c -o libcfa_a-startup.o `test -f 'startup.c' || echo '$(srcdir)/'`startup.c1151 1152 libcfa_a-startup.obj: startup.c1153 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcfa_a_CFLAGS) $(CFLAGS) -MT libcfa_a-startup.obj -MD -MP -MF $(DEPDIR)/libcfa_a-startup.Tpo -c -o libcfa_a-startup.obj `if test -f 'startup.c'; then $(CYGPATH_W) 'startup.c'; else $(CYGPATH_W) '$(srcdir)/startup.c'; fi`1154 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libcfa_a-startup.Tpo $(DEPDIR)/libcfa_a-startup.Po1155 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='startup.c' object='libcfa_a-startup.obj' libtool=no @AMDEPBACKSLASH@1156 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@1157 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcfa_a_CFLAGS) $(CFLAGS) -c -o libcfa_a-startup.obj `if test -f 'startup.c'; then $(CYGPATH_W) 'startup.c'; else $(CYGPATH_W) '$(srcdir)/startup.c'; fi`1158 1156 1159 1157 libcfa_a-fstream.o: fstream.c … … 1678 1676 1679 1677 # extensionless header files are overridden by -o flag in default makerule => explicitly override default rule to silently do nothing 1678 # SKULLDUGGERY in order to make sure this isn't called make the rule always fail but also create a rule for headers 1680 1679 % : %.c 1681 @true 1680 echo "Dummy rule, should never be called" 1681 false 1682 1683 # This rule should always match headers and since it has no prerequisite it will never be called 1684 $(addprefix $(srcdir)/,$(headers)): 1685 echo "Dummy rule, should never be called" 1686 false 1682 1687 1683 1688 concurrency/libcfa_a-invoke.o : concurrency/invoke.c -
src/libcfa/heap.c
rba4a1d8 r04e367c 10 10 // Created On : Tue Dec 19 21:58:35 2017 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Jul 25 16:42:02201813 // Update Count : 4 3812 // Last Modified On : Thu Jul 26 22:28:23 2018 13 // Update Count : 449 14 14 // 15 15 … … 111 111 // return temp; 112 112 // } // prtHeapTermOff 113 114 115 #ifdef __CFA_DEBUG__ 116 static unsigned int allocfree; // running total of allocations minus frees 117 static unsigned int appStart; // storage allocation when application starts 118 119 static void checkUnfreed() { 120 unsigned int total = allocfree - appStart; 121 if ( total != 0 ) { 122 // DO NOT USE STREAMS AS THEY MAY BE UNAVAILABLE AT THIS POINT. 123 // char helpText[512]; 124 // int len = snprintf( helpText, 512, "CFA warning (UNIX pid:%ld) : program terminating with %u(0x%x) bytes of storage allocated but not freed.\n" 125 // "Possible cause is unfreed storage allocated by the program or system/library routines called from the program.\n", 126 // (long int)getpid(), total, total ); // always print the UNIX pid 127 // __cfaabi_dbg_bits_write( helpText, len ); 128 } // if 129 } // checkUnfreed 130 131 extern "C" { 132 void heapAppStart() { // called by __cfaabi_appready_startup 133 appStart = allocfree; 134 } // heapAppStart 135 136 void heapAppStop() { // called by __cfaabi_appready_startdown 137 checkUnfreed(); 138 } // heapAppStop 139 } // extern "C" 140 #endif // __CFA_DEBUG__ 113 141 114 142 … … 139 167 static int mmapFd = -1; // fake or actual fd for anonymous file 140 168 141 static unsigned int allocfree; // running total of allocations minus frees142 static unsigned int appStart; // storage allocation when application starts143 144 static void checkUnfreed() {145 #ifdef __CFA_DEBUG__146 unsigned int total = allocfree - appStart;147 if ( total != 0 ) {148 // DO NOT USE STREAMS AS THEY MAY BE UNAVAILABLE AT THIS POINT.149 // char helpText[512];150 // int len = snprintf( helpText, 512, "CFA warning (UNIX pid:%ld) : program terminating with %u(0x%x) bytes of storage allocated but not freed.\n"151 // "Possible cause is unfreed storage allocated by the program or system/library routines called from the program.\n",152 // (long int)getpid(), total, total ); // always print the UNIX pid153 // __cfaabi_dbg_bits_write( helpText, len );154 } // if155 #endif // __CFA_DEBUG__156 } // checkUnfreed157 158 #ifdef __CFA_DEBUG__159 extern "C" {160 void heapAppStart() { // called by __cfaabi_appready_startup161 appStart = allocfree;162 } // heapAppStart163 164 void heapAppStop() { // called by __cfaabi_appready_startdown165 checkUnfreed();166 } // heapAppStop167 } // extern "C"168 #endif // __CFA_DEBUG__169 170 169 171 170 struct HeapManager { … … 178 177 union { 179 178 struct { // 32-bit word => 64-bit header, 64-bit word => 128-bit header 180 #if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ && __ U_WORDSIZE__ == 32179 #if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ && __SIZEOF_POINTER__ == 4 181 180 uint32_t padding; // unused, force home/blocksize to overlay alignment in fake header 182 #endif // __ U_WORDSIZE__ == 32&& __U_WORDSIZE__ == 32181 #endif // __ORDER_BIG_ENDIAN__ && __U_WORDSIZE__ == 32 183 182 184 183 union { … … 191 190 }; 192 191 193 #if __BYTE_ORDER__ == __ORDER_ BIG_ENDIAN__ && __U_WORDSIZE__ == 32192 #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ && __SIZEOF_POINTER__ == 4 194 193 uint32_t padding; // unused, force home/blocksize to overlay alignment in fake header 195 #endif // __ U_WORDSIZE__ == 32&& __U_WORDSIZE__ == 32194 #endif // __ORDER_LITTLE_ENDIAN__ && __U_WORDSIZE__ == 32 196 195 197 196 }; … … 204 203 #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ 205 204 uint32_t alignment; // low-order bits of home/blockSize used for tricks 206 #endif // __ BYTE_ORDER__205 #endif // __ORDER_LITTLE_ENDIAN__ 207 206 208 207 uint32_t offset; … … 210 209 #if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ 211 210 uint32_t alignment; // low-order bits of home/blockSize used for tricks 212 #endif // __ BYTE_ORDER__211 #endif // __ORDER_BIG_ENDIAN__ 213 212 } fake; 214 213 } kind; … … 305 304 #endif // __CFA_DEBUG__ 306 305 306 assert( heapManager.heapBegin == 0 ); 307 307 heapManager{}; 308 308 } // memory_startup … … 672 672 673 673 static inline void * malloc2( size_t size ) { // necessary for malloc statistics 674 assert( heapManager.heapBegin != 0 ) ; // heap started 674 assert( heapManager.heapBegin != 0 ); 675 675 void * area = doMalloc( size ); 676 676 if ( unlikely( area == 0 ) ) errno = ENOMEM; // POSIX -
src/libcfa/startup.c
rba4a1d8 r04e367c 1 // 1 // 2 2 // Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo 3 3 // 4 4 // The contents of this file are covered under the licence agreement in the 5 5 // file "LICENCE" distributed with Cforall. 6 // 7 // startup.c -- 8 // 6 // 7 // startup.c -- 8 // 9 9 // Author : Peter A. Buhr 10 10 // Created On : Tue Jul 24 16:21:57 2018 … … 12 12 // Last Modified On : Wed Jul 25 16:42:01 2018 13 13 // Update Count : 11 14 // 14 // 15 15 16 16 #include "startup.h" … … 39 39 } // extern "C" 40 40 41 struct __spinlock_t; 42 void __cfaabi_dbg_record(struct __spinlock_t & this, const char * prev_name) __attribute__(( weak )) {} 43 41 44 // Local Variables: // 42 45 // mode: c // -
src/libcfa/stdlib
rba4a1d8 r04e367c 10 10 // Created On : Thu Jan 28 17:12:35 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon Jul 23 07:44:47201813 // Update Count : 34 112 // Last Modified On : Fri Jul 27 07:21:36 2018 13 // Update Count : 345 14 14 // 15 15 … … 19 19 extern "C" { 20 20 void * memalign( size_t align, size_t size ); // malloc.h 21 void * memset( void * dest, int c, size_t size );// string.h21 void * memset( void * dest, int fill, size_t size ); // string.h 22 22 void * memcpy( void * dest, const void * src, size_t size ); // string.h 23 23 void * cmemalign( size_t alignment, size_t noOfElems, size_t elemSize ); // CFA … … 127 127 // data, non-array types 128 128 129 T * memset( T * dest, char c) {130 return (T *)memset( dest, c, sizeof(T) );129 T * memset( T * dest, char fill ) { 130 return (T *)memset( dest, fill, sizeof(T) ); 131 131 } // memset 132 132 … … 139 139 // data, array types 140 140 141 T * memset( T dest[], size_t dim, char c) {142 return (T *)(void *)memset( dest, c, dim * sizeof(T) );// C memset143 } // memset144 145 T * memcpy( T dest[], const T src[], size_t dim ) {141 T * amemset( T dest[], char fill, size_t dim ) { 142 return (T *)(void *)memset( dest, fill, dim * sizeof(T) ); // C memset 143 } // amemset 144 145 T * amemcpy( T dest[], const T src[], size_t dim ) { 146 146 return (T *)(void *)memcpy( dest, src, dim * sizeof(T) ); // C memcpy 147 } // memcpy147 } // amemcpy 148 148 } // distribution 149 149 … … 203 203 E * bsearchu( E key, const E * vals, size_t dim ); 204 204 size_t bsearchu( E key, const E * vals, size_t dim ); 205 206 void qsort( E * vals, size_t dim );207 205 } // distribution 208 206 … … 214 212 E * bsearchu( K key, const E * vals, size_t dim ); 215 213 size_t bsearchu( K key, const E * vals, size_t dim ); 214 } // distribution 215 216 forall( otype E | { int ?<?( E, E ); } ) { 217 void qsort( E * vals, size_t dim ); 216 218 } // distribution 217 219 -
src/prelude/Makefile.in
rba4a1d8 r04e367c 202 202 LTLIBOBJS = @LTLIBOBJS@ 203 203 MACHINE_TYPE = @MACHINE_TYPE@ 204 MAINT = @MAINT@205 204 MAKEINFO = @MAKEINFO@ 206 205 MKDIR_P = @MKDIR_P@ … … 285 284 286 285 .SUFFIXES: 287 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@$(srcdir)/Makefile.am $(am__configure_deps)286 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) 288 287 @for dep in $?; do \ 289 288 case '$(am__configure_deps)' in \ … … 309 308 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 310 309 311 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@$(am__configure_deps)310 $(top_srcdir)/configure: $(am__configure_deps) 312 311 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 313 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@$(am__aclocal_m4_deps)312 $(ACLOCAL_M4): $(am__aclocal_m4_deps) 314 313 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 315 314 $(am__aclocal_m4_deps): -
src/tests/.expect/alloc.txt
rba4a1d8 r04e367c 49 49 CFA array memset 50 50 0xffffffff -nan, 0xffffffff -nan, 0xffffffff -nan, 0xffffffff -nan, 0xffffffff -nan, 0xffffffff -nan, 0xffffffff -nan, 0xffffffff -nan, 0xffffffff -nan, 0xffffffff -nan, 51 CFA memcpy51 CFA array memcpy 52 52 0xffffffff -nan, 0xffffffff -nan, 0xffffffff -nan, 0xffffffff -nan, 0xffffffff -nan, 0xffffffff -nan, 0xffffffff -nan, 0xffffffff -nan, 0xffffffff -nan, 0xffffffff -nan, 53 53 -
src/tests/Makefile.am
rba4a1d8 r04e367c 29 29 30 30 # applies to both programs 31 DEBUG_FLAGS = 31 AM_CFLAGS = $(if $(test), 2> $(test), ) \ 32 -XCFA \ 33 -t \ 34 -B${abs_top_builddir}/src/driver \ 35 -g \ 36 -Wall \ 37 -Wno-unused-function \ 38 -quiet @CFA_FLAGS@ \ 39 -I. \ 40 -DIN_DIR="${srcdir}/.in/" \ 41 -L${abs_top_builddir}/src/libcfa \ 42 -I${abs_top_srcdir}/src/libcfa \ 43 -I${abs_top_srcdir}/src/libcfa/containers \ 44 -I${abs_top_srcdir}/src/libcfa/concurrency \ 45 -I${abs_top_srcdir}/src/libcfa/stdhdr 32 46 33 BUILD_FLAGS = -g -Wall -Wno-unused-function -quiet @CFA_FLAGS@ -I.34 47 if !BUILD_DEBUG 35 BUILD_FLAGS += -nodebug48 AM_CFLAGS += -nodebug 36 49 else 37 50 if !BUILD_RELEASE 38 BUILD_FLAGS += -debug51 AM_CFLAGS += -debug 39 52 else 40 BUILD_FLAGS += ${DEBUG_FLAGS}53 AM_CFLAGS += ${DEBUG_FLAGS} 41 54 endif 42 55 endif 43 56 44 TEST_FLAGS = $(if $(test), 2> $(test), ) 45 AM_CFLAGS = ${TEST_FLAGS} ${BUILD_FLAGS} 46 CC = ${abs_top_builddir}/src/driver/cfa -DIN_DIR="${srcdir}/.in/" 57 CC = ${abs_top_builddir}/src/driver/cfa 47 58 48 59 .PHONY : list … … 50 61 51 62 fstream_test_SOURCES = fstream_test.c 52 fstream_test_CFLAGS = $(if $(test), 2>> $(test), ) ${BUILD_FLAGS}53 63 54 64 avl_test_SOURCES = avltree/avl_test.c avltree/avl0.c avltree/avl1.c avltree/avl2.c avltree/avl3.c avltree/avl4.c avltree/avl-private.c 55 avl_test_CFLAGS = $(if $(test), 2>> $(test), ) ${BUILD_FLAGS}56 65 57 66 all-local : … … 70 79 @+${TEST_PY} --debug=${debug} -Iconcurrent 71 80 72 % : ${srcdir}/%.c @CFA_BINDIR@/@CFA_NAME@ 81 # SKULLDUGGERY like libcfa/Makefile.am prevent extensionless headers from being generated 82 # however, here it is more complicated because it must match the dependencies based on how 83 # they are generated by gcc 84 headers = $(shell find $(top_srcdir)/src/libcfa -type f ! -name "*.*") 85 headers_real = $(shell realpath --relative-to=$(top_srcdir)/src/libcfa $(headers)) 86 headers_deps = $(addprefix %/, $(headers_real)) 87 $(headers_deps) : 88 echo "Dummy rule, should never be called" 89 90 # %/stdlib: 91 # echo "Dummy rule, should never be called" 92 93 # implicit rule so not all test require a rule 94 % : %.c $(CC) 95 echo $(headers_deps) 73 96 $(COMPILE) $(abspath ${<}) -o ${@} 74 97 75 declarationSpecifier: declarationSpecifier.c @CFA_BINDIR@/@CFA_NAME@98 declarationSpecifier: declarationSpecifier.c $(CC) 76 99 $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@} 77 100 78 gccExtensions : gccExtensions.c @CFA_BINDIR@/@CFA_NAME@101 gccExtensions : gccExtensions.c $(CC) 79 102 $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@} 80 103 81 extension : extension.c @CFA_BINDIR@/@CFA_NAME@104 extension : extension.c $(CC) 82 105 $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@} 83 106 84 attributes : attributes.c @CFA_BINDIR@/@CFA_NAME@107 attributes : attributes.c $(CC) 85 108 $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@} 86 109 87 functions: functions.c @CFA_BINDIR@/@CFA_NAME@110 functions: functions.c $(CC) 88 111 $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@} 89 112 90 KRfunctions : KRfunctions.c @CFA_BINDIR@/@CFA_NAME@113 KRfunctions : KRfunctions.c $(CC) 91 114 $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@} 92 115 93 sched-ext-parse : sched-ext-parse.c @CFA_BINDIR@/@CFA_NAME@116 sched-ext-parse : sched-ext-parse.c $(CC) 94 117 $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@} 95 118 96 gmp : gmp.c @CFA_BINDIR@/@CFA_NAME@119 gmp : gmp.c $(CC) 97 120 $(COMPILE) -lgmp $(abspath ${<}) -o ${@} 98 121 99 completeTypeError : completeTypeError.c @CFA_BINDIR@/@CFA_NAME@122 completeTypeError : completeTypeError.c $(CC) 100 123 $(COMPILE) -DERR1 $(abspath ${<}) -o ${@} 101 124 102 typedefRedef-ERR1: typedefRedef.c @CFA_BINDIR@/@CFA_NAME@125 typedefRedef-ERR1: typedefRedef.c $(CC) 103 126 $(COMPILE) -DERR1 $(abspath ${<}) -o ${@} 104 127 105 alloc-ERROR: alloc.c @CFA_BINDIR@/@CFA_NAME@128 alloc-ERROR: alloc.c $(CC) 106 129 $(COMPILE) -DERR1 $(abspath ${<}) -o ${@} 107 130 108 fallthrough-ERROR: fallthrough.c @CFA_BINDIR@/@CFA_NAME@131 fallthrough-ERROR: fallthrough.c $(CC) 109 132 $(COMPILE) -DERR1 $(abspath ${<}) -o ${@} 110 133 111 nested-types-ERR1: nested-types.c @CFA_BINDIR@/@CFA_NAME@134 nested-types-ERR1: nested-types.c $(CC) 112 135 $(COMPILE) -DERR1 $(abspath ${<}) -o ${@} 113 136 114 nested-types-ERR2: nested-types.c @CFA_BINDIR@/@CFA_NAME@137 nested-types-ERR2: nested-types.c $(CC) 115 138 $(COMPILE) -DERR2 $(abspath ${<}) -o ${@} 116 139 117 140 # Constructor/destructor tests 118 raii/dtor-early-exit-ERR1: raii/dtor-early-exit.c @CFA_BINDIR@/@CFA_NAME@141 raii/dtor-early-exit-ERR1: raii/dtor-early-exit.c $(CC) 119 142 $(COMPILE) -DERR1 $(abspath ${<}) -o ${@} 120 143 121 raii/dtor-early-exit-ERR2: raii/dtor-early-exit.c @CFA_BINDIR@/@CFA_NAME@144 raii/dtor-early-exit-ERR2: raii/dtor-early-exit.c $(CC) 122 145 $(COMPILE) -DERR2 $(abspath ${<}) -o ${@} 123 146 124 raii/memberCtors-ERR1: raii/memberCtors.c @CFA_BINDIR@/@CFA_NAME@147 raii/memberCtors-ERR1: raii/memberCtors.c $(CC) 125 148 $(COMPILE) -DERR1 $(abspath ${<}) -o ${@} 126 149 127 raii/ctor-autogen-ERR1: raii/ctor-autogen.c @CFA_BINDIR@/@CFA_NAME@150 raii/ctor-autogen-ERR1: raii/ctor-autogen.c $(CC) 128 151 $(COMPILE) -DERR1 $(abspath ${<}) -o ${@} 129 152 130 153 # Warnings 131 warnings/self-assignment: warnings/self-assignment.c @CFA_BINDIR@/@CFA_NAME@154 warnings/self-assignment: warnings/self-assignment.c $(CC) 132 155 $(COMPILE) $(abspath ${<}) 2> ${@} -fsyntax-only 133 156 134 157 #builtins 135 builtins/sync: builtins/sync.c @CFA_BINDIR@/@CFA_NAME@158 builtins/sync: builtins/sync.c $(CC) 136 159 $(COMPILE) $(abspath ${<}) 2> ${@} -fsyntax-only -
src/tests/Makefile.in
rba4a1d8 r04e367c 104 104 CONFIG_HEADER = $(top_builddir)/config.h 105 105 CONFIG_CLEAN_FILES = config.py 106 CONFIG_CLEAN_VPATH_FILES = 106 CONFIG_CLEAN_VPATH_FILES = test.py 107 107 am__dirstamp = $(am__leading_dot)dirstamp 108 am_avl_test_OBJECTS = avltree/avl_test-avl_test.$(OBJEXT) \ 109 avltree/avl_test-avl0.$(OBJEXT) \ 110 avltree/avl_test-avl1.$(OBJEXT) \ 111 avltree/avl_test-avl2.$(OBJEXT) \ 112 avltree/avl_test-avl3.$(OBJEXT) \ 113 avltree/avl_test-avl4.$(OBJEXT) \ 114 avltree/avl_test-avl-private.$(OBJEXT) 108 am_avl_test_OBJECTS = avltree/avl_test.$(OBJEXT) \ 109 avltree/avl0.$(OBJEXT) avltree/avl1.$(OBJEXT) \ 110 avltree/avl2.$(OBJEXT) avltree/avl3.$(OBJEXT) \ 111 avltree/avl4.$(OBJEXT) avltree/avl-private.$(OBJEXT) 115 112 avl_test_OBJECTS = $(am_avl_test_OBJECTS) 116 113 avl_test_LDADD = $(LDADD) 117 avl_test_LINK = $(CCLD) $(avl_test_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ 118 $(LDFLAGS) -o $@ 119 am_fstream_test_OBJECTS = fstream_test-fstream_test.$(OBJEXT) 114 am_fstream_test_OBJECTS = fstream_test.$(OBJEXT) 120 115 fstream_test_OBJECTS = $(am_fstream_test_OBJECTS) 121 116 fstream_test_LDADD = $(LDADD) 122 fstream_test_LINK = $(CCLD) $(fstream_test_CFLAGS) $(CFLAGS) \123 $(AM_LDFLAGS) $(LDFLAGS) -o $@124 117 AM_V_P = $(am__v_P_@AM_V@) 125 118 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) … … 138 131 am__depfiles_maybe = depfiles 139 132 am__mv = mv -f 140 AM_V_lt = $(am__v_lt_@AM_V@)141 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)142 am__v_lt_0 = --silent143 am__v_lt_1 =144 133 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ 145 134 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) … … 181 170 CTAGS = ctags 182 171 am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.py.in \ 183 $( top_srcdir)/automake/depcomp172 $(srcdir)/test.py $(top_srcdir)/automake/depcomp 184 173 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 185 174 ACLOCAL = @ACLOCAL@ … … 192 181 AWK = @AWK@ 193 182 BACKEND_CC = @BACKEND_CC@ 194 CC = ${abs_top_builddir}/src/driver/cfa -DIN_DIR="${srcdir}/.in/"183 CC = ${abs_top_builddir}/src/driver/cfa 195 184 CCAS = @CCAS@ 196 185 CCASDEPMODE = @CCASDEPMODE@ … … 232 221 LTLIBOBJS = @LTLIBOBJS@ 233 222 MACHINE_TYPE = @MACHINE_TYPE@ 234 MAINT = @MAINT@235 223 MAKEINFO = @MAKEINFO@ 236 224 MKDIR_P = @MKDIR_P@ … … 310 298 311 299 # applies to both programs 312 DEBUG_FLAGS = 313 BUILD_FLAGS = -g -Wall -Wno-unused-function -quiet @CFA_FLAGS@ -I. \ 314 $(am__append_1) $(am__append_2) $(am__append_3) 315 TEST_FLAGS = $(if $(test), 2> $(test), ) 316 AM_CFLAGS = ${TEST_FLAGS} ${BUILD_FLAGS} 300 AM_CFLAGS = $(if $(test), 2> $(test), ) -XCFA -t \ 301 -B${abs_top_builddir}/src/driver -g -Wall -Wno-unused-function \ 302 -quiet @CFA_FLAGS@ -I. -DIN_DIR="${srcdir}/.in/" \ 303 -L${abs_top_builddir}/src/libcfa \ 304 -I${abs_top_srcdir}/src/libcfa \ 305 -I${abs_top_srcdir}/src/libcfa/containers \ 306 -I${abs_top_srcdir}/src/libcfa/concurrency \ 307 -I${abs_top_srcdir}/src/libcfa/stdhdr $(am__append_1) \ 308 $(am__append_2) $(am__append_3) 317 309 fstream_test_SOURCES = fstream_test.c 318 fstream_test_CFLAGS = $(if $(test), 2>> $(test), ) ${BUILD_FLAGS}319 310 avl_test_SOURCES = avltree/avl_test.c avltree/avl0.c avltree/avl1.c avltree/avl2.c avltree/avl3.c avltree/avl4.c avltree/avl-private.c 320 avl_test_CFLAGS = $(if $(test), 2>> $(test), ) ${BUILD_FLAGS} 311 312 # SKULLDUGGERY like libcfa/Makefile.am prevent extensionless headers from being generated 313 # however, here it is more complicated because it must match the dependencies based on how 314 # they are generated by gcc 315 headers = $(shell find $(top_srcdir)/src/libcfa -type f ! -name "*.*") 316 headers_real = $(shell realpath --relative-to=$(top_srcdir)/src/libcfa $(headers)) 317 headers_deps = $(addprefix %/, $(headers_real)) 321 318 all: all-am 322 319 323 320 .SUFFIXES: 324 321 .SUFFIXES: .c .o .obj 325 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@$(srcdir)/Makefile.am $(am__configure_deps)322 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) 326 323 @for dep in $?; do \ 327 324 case '$(am__configure_deps)' in \ … … 347 344 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 348 345 349 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@$(am__configure_deps)346 $(top_srcdir)/configure: $(am__configure_deps) 350 347 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 351 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@$(am__aclocal_m4_deps)348 $(ACLOCAL_M4): $(am__aclocal_m4_deps) 352 349 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 353 350 $(am__aclocal_m4_deps): … … 360 357 @$(MKDIR_P) avltree/$(DEPDIR) 361 358 @: > avltree/$(DEPDIR)/$(am__dirstamp) 362 avltree/avl_test -avl_test.$(OBJEXT): avltree/$(am__dirstamp) \359 avltree/avl_test.$(OBJEXT): avltree/$(am__dirstamp) \ 363 360 avltree/$(DEPDIR)/$(am__dirstamp) 364 avltree/avl _test-avl0.$(OBJEXT): avltree/$(am__dirstamp) \361 avltree/avl0.$(OBJEXT): avltree/$(am__dirstamp) \ 365 362 avltree/$(DEPDIR)/$(am__dirstamp) 366 avltree/avl _test-avl1.$(OBJEXT): avltree/$(am__dirstamp) \363 avltree/avl1.$(OBJEXT): avltree/$(am__dirstamp) \ 367 364 avltree/$(DEPDIR)/$(am__dirstamp) 368 avltree/avl _test-avl2.$(OBJEXT): avltree/$(am__dirstamp) \365 avltree/avl2.$(OBJEXT): avltree/$(am__dirstamp) \ 369 366 avltree/$(DEPDIR)/$(am__dirstamp) 370 avltree/avl _test-avl3.$(OBJEXT): avltree/$(am__dirstamp) \367 avltree/avl3.$(OBJEXT): avltree/$(am__dirstamp) \ 371 368 avltree/$(DEPDIR)/$(am__dirstamp) 372 avltree/avl _test-avl4.$(OBJEXT): avltree/$(am__dirstamp) \369 avltree/avl4.$(OBJEXT): avltree/$(am__dirstamp) \ 373 370 avltree/$(DEPDIR)/$(am__dirstamp) 374 avltree/avl _test-avl-private.$(OBJEXT): avltree/$(am__dirstamp) \371 avltree/avl-private.$(OBJEXT): avltree/$(am__dirstamp) \ 375 372 avltree/$(DEPDIR)/$(am__dirstamp) 376 373 377 374 avl_test$(EXEEXT): $(avl_test_OBJECTS) $(avl_test_DEPENDENCIES) $(EXTRA_avl_test_DEPENDENCIES) 378 375 @rm -f avl_test$(EXEEXT) 379 $(AM_V_CCLD)$( avl_test_LINK) $(avl_test_OBJECTS) $(avl_test_LDADD) $(LIBS)376 $(AM_V_CCLD)$(LINK) $(avl_test_OBJECTS) $(avl_test_LDADD) $(LIBS) 380 377 381 378 fstream_test$(EXEEXT): $(fstream_test_OBJECTS) $(fstream_test_DEPENDENCIES) $(EXTRA_fstream_test_DEPENDENCIES) 382 379 @rm -f fstream_test$(EXEEXT) 383 $(AM_V_CCLD)$( fstream_test_LINK) $(fstream_test_OBJECTS) $(fstream_test_LDADD) $(LIBS)380 $(AM_V_CCLD)$(LINK) $(fstream_test_OBJECTS) $(fstream_test_LDADD) $(LIBS) 384 381 385 382 mostlyclean-compile: … … 390 387 -rm -f *.tab.c 391 388 392 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fstream_test -fstream_test.Po@am__quote@393 @AMDEP_TRUE@@am__include@ @am__quote@avltree/$(DEPDIR)/avl _test-avl-private.Po@am__quote@394 @AMDEP_TRUE@@am__include@ @am__quote@avltree/$(DEPDIR)/avl _test-avl0.Po@am__quote@395 @AMDEP_TRUE@@am__include@ @am__quote@avltree/$(DEPDIR)/avl _test-avl1.Po@am__quote@396 @AMDEP_TRUE@@am__include@ @am__quote@avltree/$(DEPDIR)/avl _test-avl2.Po@am__quote@397 @AMDEP_TRUE@@am__include@ @am__quote@avltree/$(DEPDIR)/avl _test-avl3.Po@am__quote@398 @AMDEP_TRUE@@am__include@ @am__quote@avltree/$(DEPDIR)/avl _test-avl4.Po@am__quote@399 @AMDEP_TRUE@@am__include@ @am__quote@avltree/$(DEPDIR)/avl_test -avl_test.Po@am__quote@389 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fstream_test.Po@am__quote@ 390 @AMDEP_TRUE@@am__include@ @am__quote@avltree/$(DEPDIR)/avl-private.Po@am__quote@ 391 @AMDEP_TRUE@@am__include@ @am__quote@avltree/$(DEPDIR)/avl0.Po@am__quote@ 392 @AMDEP_TRUE@@am__include@ @am__quote@avltree/$(DEPDIR)/avl1.Po@am__quote@ 393 @AMDEP_TRUE@@am__include@ @am__quote@avltree/$(DEPDIR)/avl2.Po@am__quote@ 394 @AMDEP_TRUE@@am__include@ @am__quote@avltree/$(DEPDIR)/avl3.Po@am__quote@ 395 @AMDEP_TRUE@@am__include@ @am__quote@avltree/$(DEPDIR)/avl4.Po@am__quote@ 396 @AMDEP_TRUE@@am__include@ @am__quote@avltree/$(DEPDIR)/avl_test.Po@am__quote@ 400 397 401 398 .c.o: … … 414 411 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 415 412 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` 416 417 avltree/avl_test-avl_test.o: avltree/avl_test.c418 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avl_test_CFLAGS) $(CFLAGS) -MT avltree/avl_test-avl_test.o -MD -MP -MF avltree/$(DEPDIR)/avl_test-avl_test.Tpo -c -o avltree/avl_test-avl_test.o `test -f 'avltree/avl_test.c' || echo '$(srcdir)/'`avltree/avl_test.c419 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) avltree/$(DEPDIR)/avl_test-avl_test.Tpo avltree/$(DEPDIR)/avl_test-avl_test.Po420 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='avltree/avl_test.c' object='avltree/avl_test-avl_test.o' libtool=no @AMDEPBACKSLASH@421 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@422 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avl_test_CFLAGS) $(CFLAGS) -c -o avltree/avl_test-avl_test.o `test -f 'avltree/avl_test.c' || echo '$(srcdir)/'`avltree/avl_test.c423 424 avltree/avl_test-avl_test.obj: avltree/avl_test.c425 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avl_test_CFLAGS) $(CFLAGS) -MT avltree/avl_test-avl_test.obj -MD -MP -MF avltree/$(DEPDIR)/avl_test-avl_test.Tpo -c -o avltree/avl_test-avl_test.obj `if test -f 'avltree/avl_test.c'; then $(CYGPATH_W) 'avltree/avl_test.c'; else $(CYGPATH_W) '$(srcdir)/avltree/avl_test.c'; fi`426 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) avltree/$(DEPDIR)/avl_test-avl_test.Tpo avltree/$(DEPDIR)/avl_test-avl_test.Po427 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='avltree/avl_test.c' object='avltree/avl_test-avl_test.obj' libtool=no @AMDEPBACKSLASH@428 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@429 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avl_test_CFLAGS) $(CFLAGS) -c -o avltree/avl_test-avl_test.obj `if test -f 'avltree/avl_test.c'; then $(CYGPATH_W) 'avltree/avl_test.c'; else $(CYGPATH_W) '$(srcdir)/avltree/avl_test.c'; fi`430 431 avltree/avl_test-avl0.o: avltree/avl0.c432 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avl_test_CFLAGS) $(CFLAGS) -MT avltree/avl_test-avl0.o -MD -MP -MF avltree/$(DEPDIR)/avl_test-avl0.Tpo -c -o avltree/avl_test-avl0.o `test -f 'avltree/avl0.c' || echo '$(srcdir)/'`avltree/avl0.c433 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) avltree/$(DEPDIR)/avl_test-avl0.Tpo avltree/$(DEPDIR)/avl_test-avl0.Po434 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='avltree/avl0.c' object='avltree/avl_test-avl0.o' libtool=no @AMDEPBACKSLASH@435 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@436 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avl_test_CFLAGS) $(CFLAGS) -c -o avltree/avl_test-avl0.o `test -f 'avltree/avl0.c' || echo '$(srcdir)/'`avltree/avl0.c437 438 avltree/avl_test-avl0.obj: avltree/avl0.c439 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avl_test_CFLAGS) $(CFLAGS) -MT avltree/avl_test-avl0.obj -MD -MP -MF avltree/$(DEPDIR)/avl_test-avl0.Tpo -c -o avltree/avl_test-avl0.obj `if test -f 'avltree/avl0.c'; then $(CYGPATH_W) 'avltree/avl0.c'; else $(CYGPATH_W) '$(srcdir)/avltree/avl0.c'; fi`440 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) avltree/$(DEPDIR)/avl_test-avl0.Tpo avltree/$(DEPDIR)/avl_test-avl0.Po441 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='avltree/avl0.c' object='avltree/avl_test-avl0.obj' libtool=no @AMDEPBACKSLASH@442 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@443 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avl_test_CFLAGS) $(CFLAGS) -c -o avltree/avl_test-avl0.obj `if test -f 'avltree/avl0.c'; then $(CYGPATH_W) 'avltree/avl0.c'; else $(CYGPATH_W) '$(srcdir)/avltree/avl0.c'; fi`444 445 avltree/avl_test-avl1.o: avltree/avl1.c446 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avl_test_CFLAGS) $(CFLAGS) -MT avltree/avl_test-avl1.o -MD -MP -MF avltree/$(DEPDIR)/avl_test-avl1.Tpo -c -o avltree/avl_test-avl1.o `test -f 'avltree/avl1.c' || echo '$(srcdir)/'`avltree/avl1.c447 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) avltree/$(DEPDIR)/avl_test-avl1.Tpo avltree/$(DEPDIR)/avl_test-avl1.Po448 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='avltree/avl1.c' object='avltree/avl_test-avl1.o' libtool=no @AMDEPBACKSLASH@449 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@450 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avl_test_CFLAGS) $(CFLAGS) -c -o avltree/avl_test-avl1.o `test -f 'avltree/avl1.c' || echo '$(srcdir)/'`avltree/avl1.c451 452 avltree/avl_test-avl1.obj: avltree/avl1.c453 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avl_test_CFLAGS) $(CFLAGS) -MT avltree/avl_test-avl1.obj -MD -MP -MF avltree/$(DEPDIR)/avl_test-avl1.Tpo -c -o avltree/avl_test-avl1.obj `if test -f 'avltree/avl1.c'; then $(CYGPATH_W) 'avltree/avl1.c'; else $(CYGPATH_W) '$(srcdir)/avltree/avl1.c'; fi`454 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) avltree/$(DEPDIR)/avl_test-avl1.Tpo avltree/$(DEPDIR)/avl_test-avl1.Po455 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='avltree/avl1.c' object='avltree/avl_test-avl1.obj' libtool=no @AMDEPBACKSLASH@456 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@457 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avl_test_CFLAGS) $(CFLAGS) -c -o avltree/avl_test-avl1.obj `if test -f 'avltree/avl1.c'; then $(CYGPATH_W) 'avltree/avl1.c'; else $(CYGPATH_W) '$(srcdir)/avltree/avl1.c'; fi`458 459 avltree/avl_test-avl2.o: avltree/avl2.c460 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avl_test_CFLAGS) $(CFLAGS) -MT avltree/avl_test-avl2.o -MD -MP -MF avltree/$(DEPDIR)/avl_test-avl2.Tpo -c -o avltree/avl_test-avl2.o `test -f 'avltree/avl2.c' || echo '$(srcdir)/'`avltree/avl2.c461 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) avltree/$(DEPDIR)/avl_test-avl2.Tpo avltree/$(DEPDIR)/avl_test-avl2.Po462 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='avltree/avl2.c' object='avltree/avl_test-avl2.o' libtool=no @AMDEPBACKSLASH@463 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@464 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avl_test_CFLAGS) $(CFLAGS) -c -o avltree/avl_test-avl2.o `test -f 'avltree/avl2.c' || echo '$(srcdir)/'`avltree/avl2.c465 466 avltree/avl_test-avl2.obj: avltree/avl2.c467 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avl_test_CFLAGS) $(CFLAGS) -MT avltree/avl_test-avl2.obj -MD -MP -MF avltree/$(DEPDIR)/avl_test-avl2.Tpo -c -o avltree/avl_test-avl2.obj `if test -f 'avltree/avl2.c'; then $(CYGPATH_W) 'avltree/avl2.c'; else $(CYGPATH_W) '$(srcdir)/avltree/avl2.c'; fi`468 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) avltree/$(DEPDIR)/avl_test-avl2.Tpo avltree/$(DEPDIR)/avl_test-avl2.Po469 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='avltree/avl2.c' object='avltree/avl_test-avl2.obj' libtool=no @AMDEPBACKSLASH@470 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@471 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avl_test_CFLAGS) $(CFLAGS) -c -o avltree/avl_test-avl2.obj `if test -f 'avltree/avl2.c'; then $(CYGPATH_W) 'avltree/avl2.c'; else $(CYGPATH_W) '$(srcdir)/avltree/avl2.c'; fi`472 473 avltree/avl_test-avl3.o: avltree/avl3.c474 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avl_test_CFLAGS) $(CFLAGS) -MT avltree/avl_test-avl3.o -MD -MP -MF avltree/$(DEPDIR)/avl_test-avl3.Tpo -c -o avltree/avl_test-avl3.o `test -f 'avltree/avl3.c' || echo '$(srcdir)/'`avltree/avl3.c475 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) avltree/$(DEPDIR)/avl_test-avl3.Tpo avltree/$(DEPDIR)/avl_test-avl3.Po476 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='avltree/avl3.c' object='avltree/avl_test-avl3.o' libtool=no @AMDEPBACKSLASH@477 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@478 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avl_test_CFLAGS) $(CFLAGS) -c -o avltree/avl_test-avl3.o `test -f 'avltree/avl3.c' || echo '$(srcdir)/'`avltree/avl3.c479 480 avltree/avl_test-avl3.obj: avltree/avl3.c481 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avl_test_CFLAGS) $(CFLAGS) -MT avltree/avl_test-avl3.obj -MD -MP -MF avltree/$(DEPDIR)/avl_test-avl3.Tpo -c -o avltree/avl_test-avl3.obj `if test -f 'avltree/avl3.c'; then $(CYGPATH_W) 'avltree/avl3.c'; else $(CYGPATH_W) '$(srcdir)/avltree/avl3.c'; fi`482 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) avltree/$(DEPDIR)/avl_test-avl3.Tpo avltree/$(DEPDIR)/avl_test-avl3.Po483 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='avltree/avl3.c' object='avltree/avl_test-avl3.obj' libtool=no @AMDEPBACKSLASH@484 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@485 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avl_test_CFLAGS) $(CFLAGS) -c -o avltree/avl_test-avl3.obj `if test -f 'avltree/avl3.c'; then $(CYGPATH_W) 'avltree/avl3.c'; else $(CYGPATH_W) '$(srcdir)/avltree/avl3.c'; fi`486 487 avltree/avl_test-avl4.o: avltree/avl4.c488 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avl_test_CFLAGS) $(CFLAGS) -MT avltree/avl_test-avl4.o -MD -MP -MF avltree/$(DEPDIR)/avl_test-avl4.Tpo -c -o avltree/avl_test-avl4.o `test -f 'avltree/avl4.c' || echo '$(srcdir)/'`avltree/avl4.c489 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) avltree/$(DEPDIR)/avl_test-avl4.Tpo avltree/$(DEPDIR)/avl_test-avl4.Po490 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='avltree/avl4.c' object='avltree/avl_test-avl4.o' libtool=no @AMDEPBACKSLASH@491 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@492 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avl_test_CFLAGS) $(CFLAGS) -c -o avltree/avl_test-avl4.o `test -f 'avltree/avl4.c' || echo '$(srcdir)/'`avltree/avl4.c493 494 avltree/avl_test-avl4.obj: avltree/avl4.c495 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avl_test_CFLAGS) $(CFLAGS) -MT avltree/avl_test-avl4.obj -MD -MP -MF avltree/$(DEPDIR)/avl_test-avl4.Tpo -c -o avltree/avl_test-avl4.obj `if test -f 'avltree/avl4.c'; then $(CYGPATH_W) 'avltree/avl4.c'; else $(CYGPATH_W) '$(srcdir)/avltree/avl4.c'; fi`496 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) avltree/$(DEPDIR)/avl_test-avl4.Tpo avltree/$(DEPDIR)/avl_test-avl4.Po497 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='avltree/avl4.c' object='avltree/avl_test-avl4.obj' libtool=no @AMDEPBACKSLASH@498 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@499 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avl_test_CFLAGS) $(CFLAGS) -c -o avltree/avl_test-avl4.obj `if test -f 'avltree/avl4.c'; then $(CYGPATH_W) 'avltree/avl4.c'; else $(CYGPATH_W) '$(srcdir)/avltree/avl4.c'; fi`500 501 avltree/avl_test-avl-private.o: avltree/avl-private.c502 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avl_test_CFLAGS) $(CFLAGS) -MT avltree/avl_test-avl-private.o -MD -MP -MF avltree/$(DEPDIR)/avl_test-avl-private.Tpo -c -o avltree/avl_test-avl-private.o `test -f 'avltree/avl-private.c' || echo '$(srcdir)/'`avltree/avl-private.c503 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) avltree/$(DEPDIR)/avl_test-avl-private.Tpo avltree/$(DEPDIR)/avl_test-avl-private.Po504 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='avltree/avl-private.c' object='avltree/avl_test-avl-private.o' libtool=no @AMDEPBACKSLASH@505 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@506 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avl_test_CFLAGS) $(CFLAGS) -c -o avltree/avl_test-avl-private.o `test -f 'avltree/avl-private.c' || echo '$(srcdir)/'`avltree/avl-private.c507 508 avltree/avl_test-avl-private.obj: avltree/avl-private.c509 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avl_test_CFLAGS) $(CFLAGS) -MT avltree/avl_test-avl-private.obj -MD -MP -MF avltree/$(DEPDIR)/avl_test-avl-private.Tpo -c -o avltree/avl_test-avl-private.obj `if test -f 'avltree/avl-private.c'; then $(CYGPATH_W) 'avltree/avl-private.c'; else $(CYGPATH_W) '$(srcdir)/avltree/avl-private.c'; fi`510 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) avltree/$(DEPDIR)/avl_test-avl-private.Tpo avltree/$(DEPDIR)/avl_test-avl-private.Po511 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='avltree/avl-private.c' object='avltree/avl_test-avl-private.obj' libtool=no @AMDEPBACKSLASH@512 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@513 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avl_test_CFLAGS) $(CFLAGS) -c -o avltree/avl_test-avl-private.obj `if test -f 'avltree/avl-private.c'; then $(CYGPATH_W) 'avltree/avl-private.c'; else $(CYGPATH_W) '$(srcdir)/avltree/avl-private.c'; fi`514 515 fstream_test-fstream_test.o: fstream_test.c516 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(fstream_test_CFLAGS) $(CFLAGS) -MT fstream_test-fstream_test.o -MD -MP -MF $(DEPDIR)/fstream_test-fstream_test.Tpo -c -o fstream_test-fstream_test.o `test -f 'fstream_test.c' || echo '$(srcdir)/'`fstream_test.c517 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/fstream_test-fstream_test.Tpo $(DEPDIR)/fstream_test-fstream_test.Po518 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='fstream_test.c' object='fstream_test-fstream_test.o' libtool=no @AMDEPBACKSLASH@519 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@520 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(fstream_test_CFLAGS) $(CFLAGS) -c -o fstream_test-fstream_test.o `test -f 'fstream_test.c' || echo '$(srcdir)/'`fstream_test.c521 522 fstream_test-fstream_test.obj: fstream_test.c523 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(fstream_test_CFLAGS) $(CFLAGS) -MT fstream_test-fstream_test.obj -MD -MP -MF $(DEPDIR)/fstream_test-fstream_test.Tpo -c -o fstream_test-fstream_test.obj `if test -f 'fstream_test.c'; then $(CYGPATH_W) 'fstream_test.c'; else $(CYGPATH_W) '$(srcdir)/fstream_test.c'; fi`524 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/fstream_test-fstream_test.Tpo $(DEPDIR)/fstream_test-fstream_test.Po525 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='fstream_test.c' object='fstream_test-fstream_test.obj' libtool=no @AMDEPBACKSLASH@526 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@527 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(fstream_test_CFLAGS) $(CFLAGS) -c -o fstream_test-fstream_test.obj `if test -f 'fstream_test.c'; then $(CYGPATH_W) 'fstream_test.c'; else $(CYGPATH_W) '$(srcdir)/fstream_test.c'; fi`528 413 529 414 ID: $(am__tagged_files) … … 748 633 concurrency : 749 634 @+${TEST_PY} --debug=${debug} -Iconcurrent 750 751 % : ${srcdir}/%.c @CFA_BINDIR@/@CFA_NAME@ 635 $(headers_deps) : 636 echo "Dummy rule, should never be called" 637 638 # %/stdlib: 639 # echo "Dummy rule, should never be called" 640 641 # implicit rule so not all test require a rule 642 % : %.c $(CC) 643 echo $(headers_deps) 752 644 $(COMPILE) $(abspath ${<}) -o ${@} 753 645 754 declarationSpecifier: declarationSpecifier.c @CFA_BINDIR@/@CFA_NAME@646 declarationSpecifier: declarationSpecifier.c $(CC) 755 647 $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@} 756 648 757 gccExtensions : gccExtensions.c @CFA_BINDIR@/@CFA_NAME@649 gccExtensions : gccExtensions.c $(CC) 758 650 $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@} 759 651 760 extension : extension.c @CFA_BINDIR@/@CFA_NAME@652 extension : extension.c $(CC) 761 653 $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@} 762 654 763 attributes : attributes.c @CFA_BINDIR@/@CFA_NAME@655 attributes : attributes.c $(CC) 764 656 $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@} 765 657 766 functions: functions.c @CFA_BINDIR@/@CFA_NAME@658 functions: functions.c $(CC) 767 659 $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@} 768 660 769 KRfunctions : KRfunctions.c @CFA_BINDIR@/@CFA_NAME@661 KRfunctions : KRfunctions.c $(CC) 770 662 $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@} 771 663 772 sched-ext-parse : sched-ext-parse.c @CFA_BINDIR@/@CFA_NAME@664 sched-ext-parse : sched-ext-parse.c $(CC) 773 665 $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@} 774 666 775 gmp : gmp.c @CFA_BINDIR@/@CFA_NAME@667 gmp : gmp.c $(CC) 776 668 $(COMPILE) -lgmp $(abspath ${<}) -o ${@} 777 669 778 completeTypeError : completeTypeError.c @CFA_BINDIR@/@CFA_NAME@670 completeTypeError : completeTypeError.c $(CC) 779 671 $(COMPILE) -DERR1 $(abspath ${<}) -o ${@} 780 672 781 typedefRedef-ERR1: typedefRedef.c @CFA_BINDIR@/@CFA_NAME@673 typedefRedef-ERR1: typedefRedef.c $(CC) 782 674 $(COMPILE) -DERR1 $(abspath ${<}) -o ${@} 783 675 784 alloc-ERROR: alloc.c @CFA_BINDIR@/@CFA_NAME@676 alloc-ERROR: alloc.c $(CC) 785 677 $(COMPILE) -DERR1 $(abspath ${<}) -o ${@} 786 678 787 fallthrough-ERROR: fallthrough.c @CFA_BINDIR@/@CFA_NAME@679 fallthrough-ERROR: fallthrough.c $(CC) 788 680 $(COMPILE) -DERR1 $(abspath ${<}) -o ${@} 789 681 790 nested-types-ERR1: nested-types.c @CFA_BINDIR@/@CFA_NAME@682 nested-types-ERR1: nested-types.c $(CC) 791 683 $(COMPILE) -DERR1 $(abspath ${<}) -o ${@} 792 684 793 nested-types-ERR2: nested-types.c @CFA_BINDIR@/@CFA_NAME@685 nested-types-ERR2: nested-types.c $(CC) 794 686 $(COMPILE) -DERR2 $(abspath ${<}) -o ${@} 795 687 796 688 # Constructor/destructor tests 797 raii/dtor-early-exit-ERR1: raii/dtor-early-exit.c @CFA_BINDIR@/@CFA_NAME@689 raii/dtor-early-exit-ERR1: raii/dtor-early-exit.c $(CC) 798 690 $(COMPILE) -DERR1 $(abspath ${<}) -o ${@} 799 691 800 raii/dtor-early-exit-ERR2: raii/dtor-early-exit.c @CFA_BINDIR@/@CFA_NAME@692 raii/dtor-early-exit-ERR2: raii/dtor-early-exit.c $(CC) 801 693 $(COMPILE) -DERR2 $(abspath ${<}) -o ${@} 802 694 803 raii/memberCtors-ERR1: raii/memberCtors.c @CFA_BINDIR@/@CFA_NAME@695 raii/memberCtors-ERR1: raii/memberCtors.c $(CC) 804 696 $(COMPILE) -DERR1 $(abspath ${<}) -o ${@} 805 697 806 raii/ctor-autogen-ERR1: raii/ctor-autogen.c @CFA_BINDIR@/@CFA_NAME@698 raii/ctor-autogen-ERR1: raii/ctor-autogen.c $(CC) 807 699 $(COMPILE) -DERR1 $(abspath ${<}) -o ${@} 808 700 809 701 # Warnings 810 warnings/self-assignment: warnings/self-assignment.c @CFA_BINDIR@/@CFA_NAME@702 warnings/self-assignment: warnings/self-assignment.c $(CC) 811 703 $(COMPILE) $(abspath ${<}) 2> ${@} -fsyntax-only 812 704 813 705 #builtins 814 builtins/sync: builtins/sync.c @CFA_BINDIR@/@CFA_NAME@706 builtins/sync: builtins/sync.c $(CC) 815 707 $(COMPILE) $(abspath ${<}) 2> ${@} -fsyntax-only 816 708 -
src/tests/alloc.c
rba4a1d8 r04e367c 10 10 // Created On : Wed Feb 3 07:56:22 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Jul 25 09:09:43201813 // Update Count : 33 112 // Last Modified On : Thu Jul 26 20:58:05 2018 13 // Update Count : 334 14 14 // 15 15 … … 219 219 printf( "\n" ); 220 220 221 memset( sta, dim, fill );// CFA array memset, type safe221 amemset( sta, fill, dim ); // CFA array memset, type safe 222 222 printf( "CFA array memset\n" ); 223 223 for ( int i = 0; i < dim; i += 1 ) { printf( "%#x %a, ", sta[i].x, sta[i].y ); } 224 224 printf( "\n" ); 225 225 226 memcpy( sta1, sta, dim );// CFA array memcpy, type safe227 printf( "CFA memcpy\n" );226 amemcpy( sta1, sta, dim ); // CFA array memcpy, type safe 227 printf( "CFA array memcpy\n" ); 228 228 for ( int i = 0; i < dim; i += 1 ) { printf( "%#x %a, ", sta1[i].x, sta1[i].y ); } 229 229 printf( "\n" ); -
src/tests/preempt_longrun/Makefile.am
rba4a1d8 r04e367c 32 32 BUILD_FLAGS = -g -Wall -Wno-unused-function -quiet @CFA_FLAGS@ -O2 -DPREEMPTION_RATE=${preempt} -I.. -I. -DTEST_$(shell cat .type | tr a-z A-Z) 33 33 CFLAGS = ${BUILD_FLAGS} 34 CC = @CFA_BINDIR@/@CFA_NAME@34 CC = ${top_builddir}/src/driver/cfa 35 35 36 36 TESTS = block coroutine create disjoint enter enter3 processor stack wait yield -
src/tests/preempt_longrun/Makefile.in
rba4a1d8 r04e367c 337 337 AWK = @AWK@ 338 338 BACKEND_CC = @BACKEND_CC@ 339 CC = @CFA_BINDIR@/@CFA_NAME@339 CC = ${top_builddir}/src/driver/cfa 340 340 CCAS = @CCAS@ 341 341 CCASDEPMODE = @CCASDEPMODE@ … … 377 377 LTLIBOBJS = @LTLIBOBJS@ 378 378 MACHINE_TYPE = @MACHINE_TYPE@ 379 MAINT = @MAINT@380 379 MAKEINFO = @MAKEINFO@ 381 380 MKDIR_P = @MKDIR_P@ … … 466 465 .SUFFIXES: 467 466 .SUFFIXES: .log .test .test$(EXEEXT) .trs 468 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@$(srcdir)/Makefile.am $(am__configure_deps)467 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) 469 468 @for dep in $?; do \ 470 469 case '$(am__configure_deps)' in \ … … 490 489 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 491 490 492 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@$(am__configure_deps)491 $(top_srcdir)/configure: $(am__configure_deps) 493 492 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 494 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@$(am__aclocal_m4_deps)493 $(ACLOCAL_M4): $(am__aclocal_m4_deps) 495 494 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 496 495 $(am__aclocal_m4_deps): -
src/tests/pybin/tools.py
rba4a1d8 r04e367c 171 171 172 172 # Start the walk 173 abspath = os.path.abspath(__main__.__file__) 174 dname = os.path.dirname(abspath) 173 dname = settings.SRCDIR 175 174 os.path.walk(dname, step, '') 176 175 -
tools/Makefile.in
rba4a1d8 r04e367c 226 226 LTLIBOBJS = @LTLIBOBJS@ 227 227 MACHINE_TYPE = @MACHINE_TYPE@ 228 MAINT = @MAINT@229 228 MAKEINFO = @MAKEINFO@ 230 229 MKDIR_P = @MKDIR_P@ … … 306 305 .SUFFIXES: 307 306 .SUFFIXES: .c .o .obj 308 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@$(srcdir)/Makefile.am $(am__configure_deps)307 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) 309 308 @for dep in $?; do \ 310 309 case '$(am__configure_deps)' in \ … … 330 329 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 331 330 332 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@$(am__configure_deps)331 $(top_srcdir)/configure: $(am__configure_deps) 333 332 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 334 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@$(am__aclocal_m4_deps)333 $(ACLOCAL_M4): $(am__aclocal_m4_deps) 335 334 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 336 335 $(am__aclocal_m4_deps): -
tools/prettyprinter/Makefile.in
rba4a1d8 r04e367c 147 147 am__v_CXXLD_0 = @echo " CXXLD " $@; 148 148 am__v_CXXLD_1 = 149 @MAINTAINER_MODE_FALSE@am__skiplex = test -f $@ ||150 149 LEXCOMPILE = $(LEX) $(AM_LFLAGS) $(LFLAGS) 151 150 AM_V_LEX = $(am__v_LEX_@AM_V@) … … 154 153 am__v_LEX_1 = 155 154 YLWRAP = $(top_srcdir)/automake/ylwrap 156 @MAINTAINER_MODE_FALSE@am__skipyacc = test -f $@ ||157 155 am__yacc_c2h = sed -e s/cc$$/hh/ -e s/cpp$$/hpp/ -e s/cxx$$/hxx/ \ 158 156 -e s/c++$$/h++/ -e s/c$$/h/ … … 252 250 LTLIBOBJS = @LTLIBOBJS@ 253 251 MACHINE_TYPE = @MACHINE_TYPE@ 254 MAINT = @MAINT@255 252 MAKEINFO = @MAKEINFO@ 256 253 MKDIR_P = @MKDIR_P@ … … 341 338 .SUFFIXES: 342 339 .SUFFIXES: .cc .ll .o .obj .yy 343 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@$(srcdir)/Makefile.am $(am__configure_deps)340 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) 344 341 @for dep in $?; do \ 345 342 case '$(am__configure_deps)' in \ … … 365 362 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 366 363 367 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@$(am__configure_deps)364 $(top_srcdir)/configure: $(am__configure_deps) 368 365 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 369 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@$(am__aclocal_m4_deps)366 $(ACLOCAL_M4): $(am__aclocal_m4_deps) 370 367 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 371 368 $(am__aclocal_m4_deps):
Note: See TracChangeset
for help on using the changeset viewer.