Changeset 04e367c


Ignore:
Timestamp:
Jul 30, 2018, 4:49:40 PM (3 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer
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.
Message:

Merge branch 'master' of plg.uwaterloo.ca:/u/cforall/software/cfa/cfa-cc

Files:
29 edited

Legend:

Unmodified
Added
Removed
  • .gitignore

    rba4a1d8 r04e367c  
    88config.status
    99config.log
     10config.py
    1011stamp-h1
    1112/Makefile
  • Jenkinsfile

    rba4a1d8 r04e367c  
    174174
    175175def 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"""
    177177        return
    178178}
     
    260260                def install_dir = pwd tmp: true
    261261
    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                }
    275273        }
    276274}
     
    281279                //Run the tests from the tests directory
    282280                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'
    285283                }
    286284                else {
    287                         sh 'make -C src/tests --no-print-directory'
     285                        sh 'make -C build/src/tests --no-print-directory'
    288286                }
    289287        }
     
    296294
    297295                //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'
    299297        }
    300298}
     
    302300def clean() {
    303301        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'
    307304        }
    308305}
     
    329326
    330327                //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'
    332329        }
    333330}
  • Makefile.in

    rba4a1d8 r04e367c  
    290290LTLIBOBJS = @LTLIBOBJS@
    291291MACHINE_TYPE = @MACHINE_TYPE@
    292 MAINT = @MAINT@
    293292MAKEINFO = @MAKEINFO@
    294293MKDIR_P = @MKDIR_P@
     
    372371am--refresh: Makefile
    373372        @:
    374 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am  $(am__configure_deps)
     373$(srcdir)/Makefile.in: $(srcdir)/Makefile.am  $(am__configure_deps)
    375374        @for dep in $?; do \
    376375          case '$(am__configure_deps)' in \
     
    398397        $(SHELL) ./config.status --recheck
    399398
    400 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
     399$(top_srcdir)/configure: $(am__configure_deps)
    401400        $(am__cd) $(srcdir) && $(AUTOCONF)
    402 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
     401$(ACLOCAL_M4): $(am__aclocal_m4_deps)
    403402        $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
    404403$(am__aclocal_m4_deps):
     
    411410        @rm -f stamp-h1
    412411        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)
    414413        ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
    415414        rm -f stamp-h1
  • aclocal.m4

    rba4a1d8 r04e367c  
    703703AC_SUBST([am__leading_dot])])
    704704
    705 # Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
    706 # From Jim Meyering
    707 
    708 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
    709 #
    710 # This file is free software; the Free Software Foundation
    711 # 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 user
    719 # 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 passed
    728   AC_ARG_ENABLE([maintainer-mode],
    729     [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
    730       am_maintainer_other[ make rules and dependencies not useful
    731       (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_TRUE
    737   AC_SUBST([MAINT])dnl
    738 ]
    739 )
    740 
    741705# Check to see how 'make' treats includes.                  -*- Autoconf -*-
    742706
  • configure

    rba4a1d8 r04e367c  
    691691BACKEND_CC
    692692CFA_NAME
    693 MAINT
    694 MAINTAINER_MODE_FALSE
    695 MAINTAINER_MODE_TRUE
    696693am__untar
    697694am__tar
     
    764761enable_option_checking
    765762enable_silent_rules
    766 enable_maintainer_mode
    767763with_cfa_name
    768764with_backend_compiler
     
    14191415  --enable-silent-rules   less verbose build output (undo: "make V=1")
    14201416  --disable-silent-rules  verbose build output (undo: "make V=0")
    1421   --disable-maintainer-mode
    1422                           disable make rules and dependencies not useful (and
    1423                           sometimes confusing) to the casual installer
    14241417  --enable-target-release Build and install the release target
    14251418  --enable-target-debug   Build and install the debug target
     
    30753068
    30763069
    3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
    3078 $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=$enableval
    3082 else
    3083   USE_MAINTAINER_MODE=yes
    3084 fi
    3085 
    3086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
    3087 $as_echo "$USE_MAINTAINER_MODE" >&6; }
    3088    if test $USE_MAINTAINER_MODE = yes; then
    3089   MAINTAINER_MODE_TRUE=
    3090   MAINTAINER_MODE_FALSE='#'
    3091 else
    3092   MAINTAINER_MODE_TRUE='#'
    3093   MAINTAINER_MODE_FALSE=
    3094 fi
    3095 
    3096   MAINT=$MAINTAINER_MODE_TRUE
    3097 
    3098                         # may require auto* software to be installed
    3099 
    31003070# Allow program name tansformation
    31013071# will fill program_transform_name with appropriate sed regex
     
    62956265
    62966266
     6267ac_config_links="$ac_config_links src/tests/test.py:src/tests/test.py"
     6268
     6269
    62976270ac_config_files="$ac_config_files src/tests/config.py"
    62986271
     
    64226395fi
    64236396
    6424 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
    6425   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
    6426 Usually this means the macro was only invoked conditionally." "$LINENO" 5
    6427 fi
    64286397if test -z "${BUILD_RELEASE_TRUE}" && test -z "${BUILD_RELEASE_FALSE}"; then
    64296398  as_fn_error $? "conditional \"BUILD_RELEASE\" was never defined.
     
    68826851config_files="$ac_config_files"
    68836852config_headers="$ac_config_headers"
     6853config_links="$ac_config_links"
    68846854config_commands="$ac_config_commands"
    68856855
     
    69116881Configuration headers:
    69126882$config_headers
     6883
     6884Configuration links:
     6885$config_links
    69136886
    69146887Configuration commands:
     
    70637036    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
    70647037    "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" ;;
    70657039    "src/tests/config.py") CONFIG_FILES="$CONFIG_FILES src/tests/config.py" ;;
    70667040
     
    70777051  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
    70787052  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
     7053  test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
    70797054  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
    70807055fi
     
    73747349
    73757350
    7376 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
     7351eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
    73777352shift
    73787353for ac_tag
     
    76517626          s/.*/./; q'`/stamp-h$_am_stamp_count
    76527627 ;;
    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 ;;
    76547660  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
    76557661$as_echo "$as_me: executing $ac_file commands" >&6;}
  • configure.ac

    rba4a1d8 r04e367c  
    1010
    1111AM_INIT_AUTOMAKE([subdir-objects])
    12 AM_MAINTAINER_MODE(enable)                      # may require auto* software to be installed
    1312
    1413# Allow program name tansformation
     
    251250        ])
    252251
     252AC_CONFIG_LINKS([src/tests/test.py:src/tests/test.py])
     253
    253254AC_OUTPUT(src/tests/config.py)
    254255
  • doc/user/Makefile

    rba4a1d8 r04e367c  
    5151# File Dependencies #
    5252
     53build/version: ../../configure | ${Build}
     54        ../../configure --version | grep "cfa-cc configure" | grep -oEe "([0-9]+\.)+[0-9]+" > $@
     55
    5356${DOCUMENT} : ${BASE}.ps
    5457        ps2pdf $<
     
    5861
    5962${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}
    6164        # Conditionally create an empty *.ind (index) file for inclusion until makeindex is run.
    6265        if [ ! -r ${basename $@}.ind ] ; then touch ${Build}/${basename $@}.ind ; fi
  • doc/user/user.tex

    rba4a1d8 r04e367c  
    11%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -*- Mode: Latex -*- %%%%%%%%%%%%%%%%%%%%%%%%%%%%
    2 %% 
     2%%
    33%% Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo
    44%%
    55%% The contents of this file are covered under the licence agreement in the
    66%% file "LICENCE" distributed with Cforall.
    7 %% 
    8 %% user.tex -- 
    9 %% 
     7%%
     8%% user.tex --
     9%%
    1010%% Author           : Peter A. Buhr
    1111%% Created On       : Wed Apr  6 14:53:29 2016
     
    7272
    7373% Names used in the document.
    74 \newcommand{\Version}{\input{../../version}}
     74\newcommand{\Version}{\input{build/version}}
    7575\newcommand{\Textbf}[2][red]{{\color{#1}{\textbf{#2}}}}
    7676\newcommand{\Emph}[2][red]{{\color{#1}\textbf{\emph{#2}}}}
     
    430430#endif
    431431\end{cfa}
    432 which conditionally includes the correct header file, if the program is compiled using \Indexc{gcc} or \Indexc{cfa}. 
     432which conditionally includes the correct header file, if the program is compiled using \Indexc{gcc} or \Indexc{cfa}.
    433433
    434434
     
    14471447\end{cfa}
    14481448Algol68 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. 
     1449Unfortunately, automatic dereferencing does not work in all cases, and so some mechanism is necessary to fix incorrect choices.
    14501450
    14511451Rather than inferring dereference, most programming languages pick one implicit dereferencing semantics, and the programmer explicitly indicates the other to resolve address-duality.
     
    22822282        struct T t;
    22832283} s;
    2284        
     2284
    22852285
    22862286
     
    23542354}
    23552355\end{cfa}
    2356 because 
     2356because
    23572357
    23582358Currently, there are no \Index{lambda} expressions, \ie unnamed routines because routine names are very important to properly select the correct routine.
     
    33943394        sout | sepDisable | 1 | 2 | 3 | endl;           // globally turn off implicit separator
    33953395        sout | sepEnable | 1 | 2 | 3 | endl;            // globally turn on implicit separator
    3396        
     3396
    33973397        sout | 1 | sepOff | 2 | 3 | endl;                       // locally turn on implicit separator
    33983398        sout | sepDisable | 1 | sepOn | 2 | 3 | endl; // globally turn off implicit separator
  • src/Makefile.in

    rba4a1d8 r04e367c  
    299299am__v_CXXLD_0 = @echo "  CXXLD   " $@;
    300300am__v_CXXLD_1 =
    301 @MAINTAINER_MODE_FALSE@am__skiplex = test -f $@ ||
    302301LEXCOMPILE = $(LEX) $(AM_LFLAGS) $(LFLAGS)
    303302AM_V_LEX = $(am__v_LEX_@AM_V@)
     
    306305am__v_LEX_1 =
    307306YLWRAP = $(top_srcdir)/automake/ylwrap
    308 @MAINTAINER_MODE_FALSE@am__skipyacc = test -f $@ ||
    309307am__yacc_c2h = sed -e s/cc$$/hh/ -e s/cpp$$/hpp/ -e s/cxx$$/hxx/ \
    310308                   -e s/c++$$/h++/ -e s/c$$/h/
     
    414412LTLIBOBJS = @LTLIBOBJS@
    415413MACHINE_TYPE = @MACHINE_TYPE@
    416 MAINT = @MAINT@
    417414MAKEINFO = @MAKEINFO@
    418415MKDIR_P = @MKDIR_P@
     
    557554.SUFFIXES:
    558555.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)
    560557        @for dep in $?; do \
    561558          case '$(am__configure_deps)' in \
     
    582579        cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
    583580
    584 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
     581$(top_srcdir)/configure: $(am__configure_deps)
    585582        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)
    587584        cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
    588585$(am__aclocal_m4_deps):
  • src/benchmark/Makefile.am

    rba4a1d8 r04e367c  
    1717# applies to both programs
    1818CFLAGS =
    19 AM_CFLAGS = -g -Wall -Wno-unused-function -O2
    20 CC = @CFA_BINDIR@/@CFA_NAME@
     19AM_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
     35CC = ${top_builddir}/src/driver/cfa
    2136TOOLSDIR = ${abs_top_srcdir}/tools/
    2237REPEAT   = ${TOOLSDIR}repeat
     
    93108## =========================================================================================================
    94109loop$(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}
    96111
    97112function$(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}
    99114
    100115fetch_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}
    102117
    103118## =========================================================================================================
     
    118133
    119134ctxswitch-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}
    121136
    122137ctxswitch-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}
    124139
    125140ctxswitch-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}
    127142
    128143ctxswitch-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}
    130145
    131146ctxswitch-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}
    133148
    134149ctxswitch-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}
    136151
    137152ctxswitch-kos_fibre$(EXEEXT):
    138         @${CXX}       ctxswitch/kos_fibre.cpp  -DBENCH_N=50000000  -I. -I/home/tdelisle/software/KOS/src/ -g -O2 -lfibre -lpthread -lrt
     153        @${CXX}       $(srcdir)/ctxswitch/kos_fibre.cpp  -DBENCH_N=50000000  -I$(srcdir) -I/home/tdelisle/software/KOS/src/ -g -O2 -lfibre -lpthread -lrt
    139154
    140155ctxswitch-kos_fibre2$(EXEEXT):
    141         @${CXX}       ctxswitch/kos_fibre2.cpp -DBENCH_N=50000000  -I. -I/home/tdelisle/software/KOS/src/ -g -O2 -lfibre -lpthread -lrt
     156        @${CXX}       $(srcdir)/ctxswitch/kos_fibre2.cpp -DBENCH_N=50000000  -I$(srcdir) -I/home/tdelisle/software/KOS/src/ -g -O2 -lfibre -lpthread -lrt
    142157
    143158ctxswitch-goroutine$(EXEEXT):
    144         @go build -o a.out ctxswitch/goroutine.go
     159        @go build -o a.out $(srcdir)/ctxswitch/goroutine.go
    145160
    146161ctxswitch-java_thread$(EXEEXT):
    147         @javac ctxswitch/JavaThread.java
     162        @javac $(srcdir)/ctxswitch/JavaThread.java
    148163        @echo "#!/bin/sh" > a.out
    149164        @echo "cd ctxswitch && java JavaThread" >> a.out
     
    163178
    164179mutex-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}
    166181
    167182mutex-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}
    169184
    170185mutex-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}
    172187
    173188mutex-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}
    175190
    176191mutex-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}
    178193
    179194mutex-java_thread$(EXEEXT):
    180         @javac mutex/JavaThread.java
     195        @javac $(srcdir)/mutex/JavaThread.java
    181196        @echo "#!/bin/sh" > a.out
    182197        @echo "cd mutex && java JavaThread" >> a.out
     
    193208
    194209signal-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}
    196211
    197212signal-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}
    199214
    200215signal-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}
    202217
    203218signal-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}
    205220
    206221signal-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}
    208223
    209224signal-java_thread$(EXEEXT):
    210         @javac schedint/JavaThread.java
     225        @javac $(srcdir)/schedint/JavaThread.java
    211226        @echo "#!/bin/sh" > a.out
    212227        @echo "cd schedint && java JavaThread" >> a.out
     
    222237
    223238waitfor-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}
    225240
    226241waitfor-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}
    228243
    229244waitfor-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}
    231246
    232247waitfor-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}
    234249
    235250## =========================================================================================================
     
    245260
    246261creation-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}
    248263
    249264creation-cfa_coroutine_eager$(EXEEXT):
    250         @${CC}        creation/cfa_cor.c   -DBENCH_N=10000000   -I. -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} -DEAGER
     265        @${CC}        $(srcdir)/creation/cfa_cor.c   -DBENCH_N=10000000   -I$(srcdir) -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} -DEAGER
    251266
    252267creation-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}
    254269
    255270creation-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}
    257272
    258273creation-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}
    260275
    261276creation-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}
    263278
    264279creation-goroutine$(EXEEXT):
    265         @go build -o a.out creation/goroutine.go
     280        @go build -o a.out $(srcdir)/creation/goroutine.go
    266281
    267282creation-java_thread$(EXEEXT):
    268         @javac creation/JavaThread.java
     283        @javac $(srcdir)/creation/JavaThread.java
    269284        @echo "#!/bin/sh" > a.out
    270285        @echo "cd creation && java JavaThread" >> a.out
     
    284299
    285300
     301testdir = $(top_srcdir)/src/tests
     302
    286303compile-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}
    288305
    289306compile-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}
    291308
    292309compile-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}
    294311
    295312compile-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}
    297314
    298315compile-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}
    300317
    301318compile-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}
    303320
    304321compile-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}
    306323
    307324compile-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}
    309326
    310327compile-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  
    135135AWK = @AWK@
    136136BACKEND_CC = @BACKEND_CC@
    137 CC = @CFA_BINDIR@/@CFA_NAME@
     137CC = ${top_builddir}/src/driver/cfa
    138138CCAS = @CCAS@
    139139CCASDEPMODE = @CCASDEPMODE@
     
    177177LTLIBOBJS = @LTLIBOBJS@
    178178MACHINE_TYPE = @MACHINE_TYPE@
    179 MAINT = @MAINT@
    180179MAKEINFO = @MAKEINFO@
    181180MKDIR_P = @MKDIR_P@
     
    248247top_builddir = @top_builddir@
    249248top_srcdir = @top_srcdir@
    250 AM_CFLAGS = -g -Wall -Wno-unused-function -O2
     249AM_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
    251265TOOLSDIR = ${abs_top_srcdir}/tools/
    252266REPEAT = ${TOOLSDIR}repeat
     
    256270TIME_FORMAT = "%E"
    257271PRINT_FORMAT = %20s: #Comments needed for spacing
     272testdir = $(top_srcdir)/src/tests
    258273all: all-am
    259274
    260275.SUFFIXES:
    261 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am  $(am__configure_deps)
     276$(srcdir)/Makefile.in: $(srcdir)/Makefile.am  $(am__configure_deps)
    262277        @for dep in $?; do \
    263278          case '$(am__configure_deps)' in \
     
    283298        cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
    284299
    285 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
     300$(top_srcdir)/configure: $(am__configure_deps)
    286301        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)
    288303        cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
    289304$(am__aclocal_m4_deps):
     
    506521
    507522loop$(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}
    509524
    510525function$(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}
    512527
    513528fetch_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}
    515530
    516531ctxswitch$(EXEEXT): \
     
    530545
    531546ctxswitch-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}
    533548
    534549ctxswitch-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}
    536551
    537552ctxswitch-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}
    539554
    540555ctxswitch-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}
    542557
    543558ctxswitch-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}
    545560
    546561ctxswitch-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}
    548563
    549564ctxswitch-kos_fibre$(EXEEXT):
    550         @${CXX}       ctxswitch/kos_fibre.cpp  -DBENCH_N=50000000  -I. -I/home/tdelisle/software/KOS/src/ -g -O2 -lfibre -lpthread -lrt
     565        @${CXX}       $(srcdir)/ctxswitch/kos_fibre.cpp  -DBENCH_N=50000000  -I$(srcdir) -I/home/tdelisle/software/KOS/src/ -g -O2 -lfibre -lpthread -lrt
    551566
    552567ctxswitch-kos_fibre2$(EXEEXT):
    553         @${CXX}       ctxswitch/kos_fibre2.cpp -DBENCH_N=50000000  -I. -I/home/tdelisle/software/KOS/src/ -g -O2 -lfibre -lpthread -lrt
     568        @${CXX}       $(srcdir)/ctxswitch/kos_fibre2.cpp -DBENCH_N=50000000  -I$(srcdir) -I/home/tdelisle/software/KOS/src/ -g -O2 -lfibre -lpthread -lrt
    554569
    555570ctxswitch-goroutine$(EXEEXT):
    556         @go build -o a.out ctxswitch/goroutine.go
     571        @go build -o a.out $(srcdir)/ctxswitch/goroutine.go
    557572
    558573ctxswitch-java_thread$(EXEEXT):
    559         @javac ctxswitch/JavaThread.java
     574        @javac $(srcdir)/ctxswitch/JavaThread.java
    560575        @echo "#!/bin/sh" > a.out
    561576        @echo "cd ctxswitch && java JavaThread" >> a.out
     
    574589
    575590mutex-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}
    577592
    578593mutex-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}
    580595
    581596mutex-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}
    583598
    584599mutex-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}
    586601
    587602mutex-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}
    589604
    590605mutex-java_thread$(EXEEXT):
    591         @javac mutex/JavaThread.java
     606        @javac $(srcdir)/mutex/JavaThread.java
    592607        @echo "#!/bin/sh" > a.out
    593608        @echo "cd mutex && java JavaThread" >> a.out
     
    603618
    604619signal-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}
    606621
    607622signal-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}
    609624
    610625signal-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}
    612627
    613628signal-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}
    615630
    616631signal-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}
    618633
    619634signal-java_thread$(EXEEXT):
    620         @javac schedint/JavaThread.java
     635        @javac $(srcdir)/schedint/JavaThread.java
    621636        @echo "#!/bin/sh" > a.out
    622637        @echo "cd schedint && java JavaThread" >> a.out
     
    630645
    631646waitfor-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}
    633648
    634649waitfor-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}
    636651
    637652waitfor-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}
    639654
    640655waitfor-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}
    642657
    643658creation$(EXEEXT) :\
     
    652667
    653668creation-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}
    655670
    656671creation-cfa_coroutine_eager$(EXEEXT):
    657         @${CC}        creation/cfa_cor.c   -DBENCH_N=10000000   -I. -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} -DEAGER
     672        @${CC}        $(srcdir)/creation/cfa_cor.c   -DBENCH_N=10000000   -I$(srcdir) -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} -DEAGER
    658673
    659674creation-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}
    661676
    662677creation-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}
    664679
    665680creation-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}
    667682
    668683creation-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}
    670685
    671686creation-goroutine$(EXEEXT):
    672         @go build -o a.out creation/goroutine.go
     687        @go build -o a.out $(srcdir)/creation/goroutine.go
    673688
    674689creation-java_thread$(EXEEXT):
    675         @javac creation/JavaThread.java
     690        @javac $(srcdir)/creation/JavaThread.java
    676691        @echo "#!/bin/sh" > a.out
    677692        @echo "cd creation && java JavaThread" >> a.out
     
    689704
    690705compile-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}
    692707
    693708compile-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}
    695710
    696711compile-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}
    698713
    699714compile-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}
    701716
    702717compile-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}
    704719
    705720compile-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}
    707722
    708723compile-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}
    710725
    711726compile-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}
    713728
    714729compile-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}
    716731
    717732# Tell versions [3.59,3.63) of GNU make to not export all variables.
  • src/driver/Makefile.in

    rba4a1d8 r04e367c  
    221221LTLIBOBJS = @LTLIBOBJS@
    222222MACHINE_TYPE = @MACHINE_TYPE@
    223 MAINT = @MAINT@
    224223MAKEINFO = @MAKEINFO@
    225224MKDIR_P = @MKDIR_P@
     
    306305.SUFFIXES:
    307306.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)
    309308        @for dep in $?; do \
    310309          case '$(am__configure_deps)' in \
     
    330329        cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
    331330
    332 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
     331$(top_srcdir)/configure: $(am__configure_deps)
    333332        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)
    335334        cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
    336335$(am__aclocal_m4_deps):
  • src/driver/cfa.cc

    rba4a1d8 r04e367c  
    343343                args[nargs] = "--undefined=__cfaabi_interpose_startup";
    344344                nargs += 1;
     345                args[nargs] = "-Xlinker";
     346                nargs += 1;
     347                args[nargs] = "--undefined=__cfaabi_appready_startup";
     348                nargs += 1;
    345349
    346350                // include the cfa library in case it's needed
  • src/examples/Makefile.in

    rba4a1d8 r04e367c  
    231231LTLIBOBJS = @LTLIBOBJS@
    232232MACHINE_TYPE = @MACHINE_TYPE@
    233 MAINT = @MAINT@
    234233MAKEINFO = @MAKEINFO@
    235234MKDIR_P = @MKDIR_P@
     
    310309.SUFFIXES:
    311310.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)
    313312        @for dep in $?; do \
    314313          case '$(am__configure_deps)' in \
     
    334333        cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
    335334
    336 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
     335$(top_srcdir)/configure: $(am__configure_deps)
    337336        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)
    339338        cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
    340339$(am__aclocal_m4_deps):
  • src/libcfa/Makefile.am

    rba4a1d8 r04e367c  
    5555
    5656libobjs = ${headers:=.o}
    57 libsrc = libcfa-prelude.c interpose.c bits/debug.c assert.c exception.c virtual.c heap.c startup.c \
     57libsrc = libcfa-prelude.c startup.c interpose.c bits/debug.c assert.c exception.c virtual.c heap.c \
    5858        ${headers:=.c}
    5959
     
    6464
    6565# 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
    6667% : %.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
    6875
    6976concurrency/libcfa_a-invoke.o : concurrency/invoke.c
  • src/libcfa/Makefile.in

    rba4a1d8 r04e367c  
    148148libcfa_d_a_AR = $(AR) $(ARFLAGS)
    149149libcfa_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.c common.c containers/maybe.c containers/pair.c \
     150am__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 \
    154154        containers/result.c containers/vector.c \
    155155        concurrency/coroutine.c concurrency/thread.c \
     
    177177@BUILD_CONCURRENCY_TRUE@        concurrency/libcfa_d_a-preemption.$(OBJEXT)
    178178am__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)
    183183am_libcfa_d_a_OBJECTS = $(am__objects_4)
    184184libcfa_d_a_OBJECTS = $(am_libcfa_d_a_OBJECTS)
    185185libcfa_a_AR = $(AR) $(ARFLAGS)
    186186libcfa_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 \
     187am__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 \
    189189        iostream.c iterator.c limits.c rational.c time.c stdlib.c \
    190190        common.c containers/maybe.c containers/pair.c \
     
    212212@BUILD_CONCURRENCY_TRUE@        concurrency/libcfa_a-preemption.$(OBJEXT)
    213213am__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)
    218218am_libcfa_a_OBJECTS = $(am__objects_8)
    219219libcfa_a_OBJECTS = $(am_libcfa_a_OBJECTS)
     
    347347LTLIBOBJS = @LTLIBOBJS@
    348348MACHINE_TYPE = @MACHINE_TYPE@
    349 MAINT = @MAINT@
    350349MAKEINFO = @MAKEINFO@
    351350MKDIR_P = @MKDIR_P@
     
    429428        containers/vector $(am__append_3)
    430429libobjs = ${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)
     430libsrc = libcfa-prelude.c startup.c interpose.c bits/debug.c assert.c \
     431        exception.c virtual.c heap.c ${headers:=.c} $(am__append_4)
    434432libcfa_a_SOURCES = ${libsrc}
    435433libcfa_a_CFLAGS = -nodebug -O2
     
    456454.SUFFIXES:
    457455.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)
    459457        @for dep in $?; do \
    460458          case '$(am__configure_deps)' in \
     
    480478        cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
    481479
    482 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
     480$(top_srcdir)/configure: $(am__configure_deps)
    483481        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)
    485483        cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
    486484$(am__aclocal_m4_deps):
     
    709707@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`
    710708
     709libcfa_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
     716libcfa_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
    711723libcfa_d_a-interpose.o: interpose.c
    712724@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
     
    779791@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`
    780792
    781 libcfa_d_a-startup.o: startup.c
    782 @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
    783 @am__fastdepCC_TRUE@    $(AM_V_at)$(am__mv) $(DEPDIR)/libcfa_d_a-startup.Tpo $(DEPDIR)/libcfa_d_a-startup.Po
    784 @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.c
    787 
    788 libcfa_d_a-startup.obj: startup.c
    789 @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.Po
    791 @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 
    795793libcfa_d_a-fstream.o: fstream.c
    796794@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
     
    10731071@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`
    10741072
     1073libcfa_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
     1080libcfa_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
    10751087libcfa_a-interpose.o: interpose.c
    10761088@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
     
    11421154@AMDEP_TRUE@@am__fastdepCC_FALSE@       DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
    11431155@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.c
    1146 @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
    1147 @am__fastdepCC_TRUE@    $(AM_V_at)$(am__mv) $(DEPDIR)/libcfa_a-startup.Tpo $(DEPDIR)/libcfa_a-startup.Po
    1148 @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.c
    1151 
    1152 libcfa_a-startup.obj: startup.c
    1153 @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.Po
    1155 @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`
    11581156
    11591157libcfa_a-fstream.o: fstream.c
     
    16781676
    16791677# 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
    16801679% : %.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
    16821687
    16831688concurrency/libcfa_a-invoke.o : concurrency/invoke.c
  • src/libcfa/heap.c

    rba4a1d8 r04e367c  
    1010// Created On       : Tue Dec 19 21:58:35 2017
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Wed Jul 25 16:42:02 2018
    13 // Update Count     : 438
     12// Last Modified On : Thu Jul 26 22:28:23 2018
     13// Update Count     : 449
    1414//
    1515
     
    111111//      return temp;
    112112// } // prtHeapTermOff
     113
     114
     115#ifdef __CFA_DEBUG__
     116static unsigned int allocfree;                                                  // running total of allocations minus frees
     117static unsigned int appStart;                                                   // storage allocation when application starts
     118
     119static 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
     131extern "C" {
     132void heapAppStart() {                                                                   // called by __cfaabi_appready_startup
     133        appStart = allocfree;
     134} // heapAppStart
     135
     136void heapAppStop() {                                                                    // called by __cfaabi_appready_startdown
     137        checkUnfreed();
     138} // heapAppStop
     139} // extern "C"
     140#endif // __CFA_DEBUG__
    113141
    114142
     
    139167static int mmapFd = -1;                                                                 // fake or actual fd for anonymous file
    140168
    141 static unsigned int allocfree;                                                  // running total of allocations minus frees
    142 static unsigned int appStart;                                                   // storage allocation when application starts
    143 
    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 pid
    153                 // __cfaabi_dbg_bits_write( helpText, len );
    154     } // if
    155         #endif // __CFA_DEBUG__
    156 } // checkUnfreed
    157 
    158 #ifdef __CFA_DEBUG__
    159 extern "C" {
    160 void heapAppStart() {                                                                   // called by __cfaabi_appready_startup
    161         appStart = allocfree;
    162 } // heapAppStart
    163 
    164 void heapAppStop() {                                                                    // called by __cfaabi_appready_startdown
    165         checkUnfreed();
    166 } // heapAppStop
    167 } // extern "C"
    168 #endif // __CFA_DEBUG__
    169 
    170169
    171170struct HeapManager {
     
    178177                                        union {
    179178                                                struct {                                                // 32-bit word => 64-bit header, 64-bit word => 128-bit header
    180                                                         #if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ && __U_WORDSIZE__ == 32
     179                                                        #if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ && __SIZEOF_POINTER__ == 4
    181180                                                        uint32_t padding;                       // unused, force home/blocksize to overlay alignment in fake header
    182                                                         #endif // __U_WORDSIZE__ == 32 && __U_WORDSIZE__ == 32
     181                                                        #endif // __ORDER_BIG_ENDIAN__ && __U_WORDSIZE__ == 32
    183182
    184183                                                        union {
     
    191190                                                        };
    192191
    193                                                         #if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ && __U_WORDSIZE__ == 32
     192                                                        #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ && __SIZEOF_POINTER__ == 4
    194193                                                        uint32_t padding;                       // unused, force home/blocksize to overlay alignment in fake header
    195                                                         #endif // __U_WORDSIZE__ == 32 && __U_WORDSIZE__ == 32
     194                                                        #endif // __ORDER_LITTLE_ENDIAN__ && __U_WORDSIZE__ == 32
    196195
    197196                                                };
     
    204203                                        #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
    205204                                        uint32_t alignment;                                     // low-order bits of home/blockSize used for tricks
    206                                         #endif // __BYTE_ORDER__
     205                                        #endif // __ORDER_LITTLE_ENDIAN__
    207206
    208207                                        uint32_t offset;
     
    210209                                        #if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
    211210                                        uint32_t alignment;                                     // low-order bits of home/blockSize used for tricks
    212                                         #endif // __BYTE_ORDER__
     211                                        #endif // __ORDER_BIG_ENDIAN__
    213212                                } fake;
    214213                        } kind;
     
    305304        #endif // __CFA_DEBUG__
    306305
     306        assert( heapManager.heapBegin == 0 );
    307307        heapManager{};
    308308} // memory_startup
     
    672672
    673673static inline void * malloc2( size_t size ) {                   // necessary for malloc statistics
    674     assert( heapManager.heapBegin != 0 ) ;                              // heap started
     674        assert( heapManager.heapBegin != 0 );
    675675    void * area = doMalloc( size );
    676676    if ( unlikely( area == 0 ) ) errno = ENOMEM;                // POSIX
  • src/libcfa/startup.c

    rba4a1d8 r04e367c  
    1 // 
     1//
    22// Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo
    33//
    44// The contents of this file are covered under the licence agreement in the
    55// file "LICENCE" distributed with Cforall.
    6 // 
    7 // startup.c -- 
    8 // 
     6//
     7// startup.c --
     8//
    99// Author           : Peter A. Buhr
    1010// Created On       : Tue Jul 24 16:21:57 2018
     
    1212// Last Modified On : Wed Jul 25 16:42:01 2018
    1313// Update Count     : 11
    14 // 
     14//
    1515
    1616#include "startup.h"
     
    3939} // extern "C"
    4040
     41struct __spinlock_t;
     42void __cfaabi_dbg_record(struct __spinlock_t & this, const char * prev_name) __attribute__(( weak )) {}
     43
    4144// Local Variables: //
    4245// mode: c //
  • src/libcfa/stdlib

    rba4a1d8 r04e367c  
    1010// Created On       : Thu Jan 28 17:12:35 2016
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon Jul 23 07:44:47 2018
    13 // Update Count     : 341
     12// Last Modified On : Fri Jul 27 07:21:36 2018
     13// Update Count     : 345
    1414//
    1515
     
    1919extern "C" {
    2020        void * memalign( size_t align, size_t size );           // malloc.h
    21         void * memset( void * dest, int c, size_t size );       // string.h
     21        void * memset( void * dest, int fill, size_t size ); // string.h
    2222        void * memcpy( void * dest, const void * src, size_t size ); // string.h
    2323    void * cmemalign( size_t alignment, size_t noOfElems, size_t elemSize ); // CFA
     
    127127        // data, non-array types
    128128
    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) );
    131131        } // memset
    132132
     
    139139        // data, array types
    140140
    141         T * memset( T dest[], size_t dim, char c ) {
    142                 return (T *)(void *)memset( dest, c, dim * sizeof(T) ); // C memset
    143         } // memset
    144 
    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 ) {
    146146                return (T *)(void *)memcpy( dest, src, dim * sizeof(T) ); // C memcpy
    147         } // memcpy
     147        } // amemcpy
    148148} // distribution
    149149
     
    203203        E * bsearchu( E key, const E * vals, size_t dim );
    204204        size_t bsearchu( E key, const E * vals, size_t dim );
    205 
    206         void qsort( E * vals, size_t dim );
    207205} // distribution
    208206
     
    214212        E * bsearchu( K key, const E * vals, size_t dim );
    215213        size_t bsearchu( K key, const E * vals, size_t dim );
     214} // distribution
     215
     216forall( otype E | { int ?<?( E, E ); } ) {
     217        void qsort( E * vals, size_t dim );
    216218} // distribution
    217219
  • src/prelude/Makefile.in

    rba4a1d8 r04e367c  
    202202LTLIBOBJS = @LTLIBOBJS@
    203203MACHINE_TYPE = @MACHINE_TYPE@
    204 MAINT = @MAINT@
    205204MAKEINFO = @MAKEINFO@
    206205MKDIR_P = @MKDIR_P@
     
    285284
    286285.SUFFIXES:
    287 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am  $(am__configure_deps)
     286$(srcdir)/Makefile.in: $(srcdir)/Makefile.am  $(am__configure_deps)
    288287        @for dep in $?; do \
    289288          case '$(am__configure_deps)' in \
     
    309308        cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
    310309
    311 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
     310$(top_srcdir)/configure: $(am__configure_deps)
    312311        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)
    314313        cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
    315314$(am__aclocal_m4_deps):
  • src/tests/.expect/alloc.txt

    rba4a1d8 r04e367c  
    4949CFA array memset
    50500xffffffff -nan, 0xffffffff -nan, 0xffffffff -nan, 0xffffffff -nan, 0xffffffff -nan, 0xffffffff -nan, 0xffffffff -nan, 0xffffffff -nan, 0xffffffff -nan, 0xffffffff -nan,
    51 CFA memcpy
     51CFA array memcpy
    52520xffffffff -nan, 0xffffffff -nan, 0xffffffff -nan, 0xffffffff -nan, 0xffffffff -nan, 0xffffffff -nan, 0xffffffff -nan, 0xffffffff -nan, 0xffffffff -nan, 0xffffffff -nan,
    5353
  • src/tests/Makefile.am

    rba4a1d8 r04e367c  
    2929
    3030# applies to both programs
    31 DEBUG_FLAGS =
     31AM_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
    3246
    33 BUILD_FLAGS = -g -Wall -Wno-unused-function -quiet @CFA_FLAGS@ -I.
    3447if !BUILD_DEBUG
    35 BUILD_FLAGS += -nodebug
     48AM_CFLAGS += -nodebug
    3649else
    3750if !BUILD_RELEASE
    38 BUILD_FLAGS += -debug
     51AM_CFLAGS += -debug
    3952else
    40 BUILD_FLAGS += ${DEBUG_FLAGS}
     53AM_CFLAGS += ${DEBUG_FLAGS}
    4154endif
    4255endif
    4356
    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/"
     57CC = ${abs_top_builddir}/src/driver/cfa
    4758
    4859.PHONY : list
     
    5061
    5162fstream_test_SOURCES = fstream_test.c
    52 fstream_test_CFLAGS = $(if $(test), 2>> $(test), ) ${BUILD_FLAGS}
    5363
    5464avl_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}
    5665
    5766all-local :
     
    7079        @+${TEST_PY} --debug=${debug} -Iconcurrent
    7180
    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
     84headers = $(shell find $(top_srcdir)/src/libcfa -type f ! -name "*.*")
     85headers_real = $(shell realpath --relative-to=$(top_srcdir)/src/libcfa $(headers))
     86headers_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)
    7396        $(COMPILE) $(abspath ${<}) -o ${@}
    7497
    75 declarationSpecifier: declarationSpecifier.c @CFA_BINDIR@/@CFA_NAME@
     98declarationSpecifier: declarationSpecifier.c $(CC)
    7699        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
    77100
    78 gccExtensions : gccExtensions.c @CFA_BINDIR@/@CFA_NAME@
     101gccExtensions : gccExtensions.c $(CC)
    79102        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
    80103
    81 extension : extension.c @CFA_BINDIR@/@CFA_NAME@
     104extension : extension.c $(CC)
    82105        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
    83106
    84 attributes : attributes.c @CFA_BINDIR@/@CFA_NAME@
     107attributes : attributes.c $(CC)
    85108        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
    86109
    87 functions: functions.c @CFA_BINDIR@/@CFA_NAME@
     110functions: functions.c $(CC)
    88111        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
    89112
    90 KRfunctions : KRfunctions.c @CFA_BINDIR@/@CFA_NAME@
     113KRfunctions : KRfunctions.c $(CC)
    91114        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
    92115
    93 sched-ext-parse : sched-ext-parse.c @CFA_BINDIR@/@CFA_NAME@
     116sched-ext-parse : sched-ext-parse.c $(CC)
    94117        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
    95118
    96 gmp : gmp.c @CFA_BINDIR@/@CFA_NAME@
     119gmp : gmp.c $(CC)
    97120        $(COMPILE) -lgmp $(abspath ${<}) -o ${@}
    98121
    99 completeTypeError : completeTypeError.c @CFA_BINDIR@/@CFA_NAME@
     122completeTypeError : completeTypeError.c $(CC)
    100123        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
    101124
    102 typedefRedef-ERR1: typedefRedef.c @CFA_BINDIR@/@CFA_NAME@
     125typedefRedef-ERR1: typedefRedef.c $(CC)
    103126        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
    104127
    105 alloc-ERROR: alloc.c @CFA_BINDIR@/@CFA_NAME@
     128alloc-ERROR: alloc.c $(CC)
    106129        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
    107130
    108 fallthrough-ERROR: fallthrough.c @CFA_BINDIR@/@CFA_NAME@
     131fallthrough-ERROR: fallthrough.c $(CC)
    109132        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
    110133
    111 nested-types-ERR1: nested-types.c @CFA_BINDIR@/@CFA_NAME@
     134nested-types-ERR1: nested-types.c $(CC)
    112135        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
    113136
    114 nested-types-ERR2: nested-types.c @CFA_BINDIR@/@CFA_NAME@
     137nested-types-ERR2: nested-types.c $(CC)
    115138        $(COMPILE) -DERR2 $(abspath ${<}) -o ${@}
    116139
    117140# Constructor/destructor tests
    118 raii/dtor-early-exit-ERR1: raii/dtor-early-exit.c @CFA_BINDIR@/@CFA_NAME@
     141raii/dtor-early-exit-ERR1: raii/dtor-early-exit.c $(CC)
    119142        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
    120143
    121 raii/dtor-early-exit-ERR2: raii/dtor-early-exit.c @CFA_BINDIR@/@CFA_NAME@
     144raii/dtor-early-exit-ERR2: raii/dtor-early-exit.c $(CC)
    122145        $(COMPILE) -DERR2 $(abspath ${<}) -o ${@}
    123146
    124 raii/memberCtors-ERR1: raii/memberCtors.c @CFA_BINDIR@/@CFA_NAME@
     147raii/memberCtors-ERR1: raii/memberCtors.c $(CC)
    125148        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
    126149
    127 raii/ctor-autogen-ERR1: raii/ctor-autogen.c @CFA_BINDIR@/@CFA_NAME@
     150raii/ctor-autogen-ERR1: raii/ctor-autogen.c $(CC)
    128151        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
    129152
    130153# Warnings
    131 warnings/self-assignment: warnings/self-assignment.c @CFA_BINDIR@/@CFA_NAME@
     154warnings/self-assignment: warnings/self-assignment.c $(CC)
    132155        $(COMPILE) $(abspath ${<}) 2> ${@} -fsyntax-only
    133156
    134157#builtins
    135 builtins/sync: builtins/sync.c @CFA_BINDIR@/@CFA_NAME@
     158builtins/sync: builtins/sync.c $(CC)
    136159        $(COMPILE) $(abspath ${<}) 2> ${@} -fsyntax-only
  • src/tests/Makefile.in

    rba4a1d8 r04e367c  
    104104CONFIG_HEADER = $(top_builddir)/config.h
    105105CONFIG_CLEAN_FILES = config.py
    106 CONFIG_CLEAN_VPATH_FILES =
     106CONFIG_CLEAN_VPATH_FILES = test.py
    107107am__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)
     108am_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)
    115112avl_test_OBJECTS = $(am_avl_test_OBJECTS)
    116113avl_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)
     114am_fstream_test_OBJECTS = fstream_test.$(OBJEXT)
    120115fstream_test_OBJECTS = $(am_fstream_test_OBJECTS)
    121116fstream_test_LDADD = $(LDADD)
    122 fstream_test_LINK = $(CCLD) $(fstream_test_CFLAGS) $(CFLAGS) \
    123         $(AM_LDFLAGS) $(LDFLAGS) -o $@
    124117AM_V_P = $(am__v_P_@AM_V@)
    125118am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
     
    138131am__depfiles_maybe = depfiles
    139132am__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 = --silent
    143 am__v_lt_1 =
    144133COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
    145134        $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
     
    181170CTAGS = ctags
    182171am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.py.in \
    183         $(top_srcdir)/automake/depcomp
     172        $(srcdir)/test.py $(top_srcdir)/automake/depcomp
    184173DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
    185174ACLOCAL = @ACLOCAL@
     
    192181AWK = @AWK@
    193182BACKEND_CC = @BACKEND_CC@
    194 CC = ${abs_top_builddir}/src/driver/cfa -DIN_DIR="${srcdir}/.in/"
     183CC = ${abs_top_builddir}/src/driver/cfa
    195184CCAS = @CCAS@
    196185CCASDEPMODE = @CCASDEPMODE@
     
    232221LTLIBOBJS = @LTLIBOBJS@
    233222MACHINE_TYPE = @MACHINE_TYPE@
    234 MAINT = @MAINT@
    235223MAKEINFO = @MAKEINFO@
    236224MKDIR_P = @MKDIR_P@
     
    310298
    311299# 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}
     300AM_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)
    317309fstream_test_SOURCES = fstream_test.c
    318 fstream_test_CFLAGS = $(if $(test), 2>> $(test), ) ${BUILD_FLAGS}
    319310avl_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
     315headers = $(shell find $(top_srcdir)/src/libcfa -type f ! -name "*.*")
     316headers_real = $(shell realpath --relative-to=$(top_srcdir)/src/libcfa $(headers))
     317headers_deps = $(addprefix %/, $(headers_real))
    321318all: all-am
    322319
    323320.SUFFIXES:
    324321.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)
    326323        @for dep in $?; do \
    327324          case '$(am__configure_deps)' in \
     
    347344        cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
    348345
    349 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
     346$(top_srcdir)/configure: $(am__configure_deps)
    350347        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)
    352349        cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
    353350$(am__aclocal_m4_deps):
     
    360357        @$(MKDIR_P) avltree/$(DEPDIR)
    361358        @: > avltree/$(DEPDIR)/$(am__dirstamp)
    362 avltree/avl_test-avl_test.$(OBJEXT): avltree/$(am__dirstamp) \
     359avltree/avl_test.$(OBJEXT): avltree/$(am__dirstamp) \
    363360        avltree/$(DEPDIR)/$(am__dirstamp)
    364 avltree/avl_test-avl0.$(OBJEXT): avltree/$(am__dirstamp) \
     361avltree/avl0.$(OBJEXT): avltree/$(am__dirstamp) \
    365362        avltree/$(DEPDIR)/$(am__dirstamp)
    366 avltree/avl_test-avl1.$(OBJEXT): avltree/$(am__dirstamp) \
     363avltree/avl1.$(OBJEXT): avltree/$(am__dirstamp) \
    367364        avltree/$(DEPDIR)/$(am__dirstamp)
    368 avltree/avl_test-avl2.$(OBJEXT): avltree/$(am__dirstamp) \
     365avltree/avl2.$(OBJEXT): avltree/$(am__dirstamp) \
    369366        avltree/$(DEPDIR)/$(am__dirstamp)
    370 avltree/avl_test-avl3.$(OBJEXT): avltree/$(am__dirstamp) \
     367avltree/avl3.$(OBJEXT): avltree/$(am__dirstamp) \
    371368        avltree/$(DEPDIR)/$(am__dirstamp)
    372 avltree/avl_test-avl4.$(OBJEXT): avltree/$(am__dirstamp) \
     369avltree/avl4.$(OBJEXT): avltree/$(am__dirstamp) \
    373370        avltree/$(DEPDIR)/$(am__dirstamp)
    374 avltree/avl_test-avl-private.$(OBJEXT): avltree/$(am__dirstamp) \
     371avltree/avl-private.$(OBJEXT): avltree/$(am__dirstamp) \
    375372        avltree/$(DEPDIR)/$(am__dirstamp)
    376373
    377374avl_test$(EXEEXT): $(avl_test_OBJECTS) $(avl_test_DEPENDENCIES) $(EXTRA_avl_test_DEPENDENCIES)
    378375        @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)
    380377
    381378fstream_test$(EXEEXT): $(fstream_test_OBJECTS) $(fstream_test_DEPENDENCIES) $(EXTRA_fstream_test_DEPENDENCIES)
    382379        @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)
    384381
    385382mostlyclean-compile:
     
    390387        -rm -f *.tab.c
    391388
    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@
    400397
    401398.c.o:
     
    414411@AMDEP_TRUE@@am__fastdepCC_FALSE@       DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
    415412@am__fastdepCC_FALSE@   $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
    416 
    417 avltree/avl_test-avl_test.o: avltree/avl_test.c
    418 @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.c
    419 @am__fastdepCC_TRUE@    $(AM_V_at)$(am__mv) avltree/$(DEPDIR)/avl_test-avl_test.Tpo avltree/$(DEPDIR)/avl_test-avl_test.Po
    420 @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.c
    423 
    424 avltree/avl_test-avl_test.obj: avltree/avl_test.c
    425 @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.Po
    427 @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.c
    432 @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.c
    433 @am__fastdepCC_TRUE@    $(AM_V_at)$(am__mv) avltree/$(DEPDIR)/avl_test-avl0.Tpo avltree/$(DEPDIR)/avl_test-avl0.Po
    434 @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.c
    437 
    438 avltree/avl_test-avl0.obj: avltree/avl0.c
    439 @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.Po
    441 @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.c
    446 @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.c
    447 @am__fastdepCC_TRUE@    $(AM_V_at)$(am__mv) avltree/$(DEPDIR)/avl_test-avl1.Tpo avltree/$(DEPDIR)/avl_test-avl1.Po
    448 @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.c
    451 
    452 avltree/avl_test-avl1.obj: avltree/avl1.c
    453 @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.Po
    455 @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.c
    460 @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.c
    461 @am__fastdepCC_TRUE@    $(AM_V_at)$(am__mv) avltree/$(DEPDIR)/avl_test-avl2.Tpo avltree/$(DEPDIR)/avl_test-avl2.Po
    462 @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.c
    465 
    466 avltree/avl_test-avl2.obj: avltree/avl2.c
    467 @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.Po
    469 @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.c
    474 @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.c
    475 @am__fastdepCC_TRUE@    $(AM_V_at)$(am__mv) avltree/$(DEPDIR)/avl_test-avl3.Tpo avltree/$(DEPDIR)/avl_test-avl3.Po
    476 @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.c
    479 
    480 avltree/avl_test-avl3.obj: avltree/avl3.c
    481 @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.Po
    483 @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.c
    488 @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.c
    489 @am__fastdepCC_TRUE@    $(AM_V_at)$(am__mv) avltree/$(DEPDIR)/avl_test-avl4.Tpo avltree/$(DEPDIR)/avl_test-avl4.Po
    490 @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.c
    493 
    494 avltree/avl_test-avl4.obj: avltree/avl4.c
    495 @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.Po
    497 @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.c
    502 @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.c
    503 @am__fastdepCC_TRUE@    $(AM_V_at)$(am__mv) avltree/$(DEPDIR)/avl_test-avl-private.Tpo avltree/$(DEPDIR)/avl_test-avl-private.Po
    504 @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.c
    507 
    508 avltree/avl_test-avl-private.obj: avltree/avl-private.c
    509 @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.Po
    511 @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.c
    516 @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.c
    517 @am__fastdepCC_TRUE@    $(AM_V_at)$(am__mv) $(DEPDIR)/fstream_test-fstream_test.Tpo $(DEPDIR)/fstream_test-fstream_test.Po
    518 @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.c
    521 
    522 fstream_test-fstream_test.obj: fstream_test.c
    523 @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.Po
    525 @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`
    528413
    529414ID: $(am__tagged_files)
     
    748633concurrency :
    749634        @+${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)
    752644        $(COMPILE) $(abspath ${<}) -o ${@}
    753645
    754 declarationSpecifier: declarationSpecifier.c @CFA_BINDIR@/@CFA_NAME@
     646declarationSpecifier: declarationSpecifier.c $(CC)
    755647        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
    756648
    757 gccExtensions : gccExtensions.c @CFA_BINDIR@/@CFA_NAME@
     649gccExtensions : gccExtensions.c $(CC)
    758650        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
    759651
    760 extension : extension.c @CFA_BINDIR@/@CFA_NAME@
     652extension : extension.c $(CC)
    761653        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
    762654
    763 attributes : attributes.c @CFA_BINDIR@/@CFA_NAME@
     655attributes : attributes.c $(CC)
    764656        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
    765657
    766 functions: functions.c @CFA_BINDIR@/@CFA_NAME@
     658functions: functions.c $(CC)
    767659        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
    768660
    769 KRfunctions : KRfunctions.c @CFA_BINDIR@/@CFA_NAME@
     661KRfunctions : KRfunctions.c $(CC)
    770662        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
    771663
    772 sched-ext-parse : sched-ext-parse.c @CFA_BINDIR@/@CFA_NAME@
     664sched-ext-parse : sched-ext-parse.c $(CC)
    773665        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
    774666
    775 gmp : gmp.c @CFA_BINDIR@/@CFA_NAME@
     667gmp : gmp.c $(CC)
    776668        $(COMPILE) -lgmp $(abspath ${<}) -o ${@}
    777669
    778 completeTypeError : completeTypeError.c @CFA_BINDIR@/@CFA_NAME@
     670completeTypeError : completeTypeError.c $(CC)
    779671        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
    780672
    781 typedefRedef-ERR1: typedefRedef.c @CFA_BINDIR@/@CFA_NAME@
     673typedefRedef-ERR1: typedefRedef.c $(CC)
    782674        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
    783675
    784 alloc-ERROR: alloc.c @CFA_BINDIR@/@CFA_NAME@
     676alloc-ERROR: alloc.c $(CC)
    785677        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
    786678
    787 fallthrough-ERROR: fallthrough.c @CFA_BINDIR@/@CFA_NAME@
     679fallthrough-ERROR: fallthrough.c $(CC)
    788680        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
    789681
    790 nested-types-ERR1: nested-types.c @CFA_BINDIR@/@CFA_NAME@
     682nested-types-ERR1: nested-types.c $(CC)
    791683        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
    792684
    793 nested-types-ERR2: nested-types.c @CFA_BINDIR@/@CFA_NAME@
     685nested-types-ERR2: nested-types.c $(CC)
    794686        $(COMPILE) -DERR2 $(abspath ${<}) -o ${@}
    795687
    796688# Constructor/destructor tests
    797 raii/dtor-early-exit-ERR1: raii/dtor-early-exit.c @CFA_BINDIR@/@CFA_NAME@
     689raii/dtor-early-exit-ERR1: raii/dtor-early-exit.c $(CC)
    798690        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
    799691
    800 raii/dtor-early-exit-ERR2: raii/dtor-early-exit.c @CFA_BINDIR@/@CFA_NAME@
     692raii/dtor-early-exit-ERR2: raii/dtor-early-exit.c $(CC)
    801693        $(COMPILE) -DERR2 $(abspath ${<}) -o ${@}
    802694
    803 raii/memberCtors-ERR1: raii/memberCtors.c @CFA_BINDIR@/@CFA_NAME@
     695raii/memberCtors-ERR1: raii/memberCtors.c $(CC)
    804696        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
    805697
    806 raii/ctor-autogen-ERR1: raii/ctor-autogen.c @CFA_BINDIR@/@CFA_NAME@
     698raii/ctor-autogen-ERR1: raii/ctor-autogen.c $(CC)
    807699        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
    808700
    809701# Warnings
    810 warnings/self-assignment: warnings/self-assignment.c @CFA_BINDIR@/@CFA_NAME@
     702warnings/self-assignment: warnings/self-assignment.c $(CC)
    811703        $(COMPILE) $(abspath ${<}) 2> ${@} -fsyntax-only
    812704
    813705#builtins
    814 builtins/sync: builtins/sync.c @CFA_BINDIR@/@CFA_NAME@
     706builtins/sync: builtins/sync.c $(CC)
    815707        $(COMPILE) $(abspath ${<}) 2> ${@} -fsyntax-only
    816708
  • src/tests/alloc.c

    rba4a1d8 r04e367c  
    1010// Created On       : Wed Feb  3 07:56:22 2016
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Wed Jul 25 09:09:43 2018
    13 // Update Count     : 331
     12// Last Modified On : Thu Jul 26 20:58:05 2018
     13// Update Count     : 334
    1414//
    1515
     
    219219        printf( "\n" );
    220220
    221         memset( sta, dim, fill );                           // CFA array memset, type safe
     221        amemset( sta, fill, dim );                                                      // CFA array memset, type safe
    222222        printf( "CFA array memset\n" );
    223223        for ( int i = 0; i < dim; i += 1 ) { printf( "%#x %a, ", sta[i].x, sta[i].y ); }
    224224        printf( "\n" );
    225225
    226         memcpy( sta1, sta, dim );                           // CFA array memcpy, type safe
    227         printf( "CFA memcpy\n" );
     226        amemcpy( sta1, sta, dim );                                                      // CFA array memcpy, type safe
     227        printf( "CFA array memcpy\n" );
    228228        for ( int i = 0; i < dim; i += 1 ) { printf( "%#x %a, ", sta1[i].x, sta1[i].y ); }
    229229        printf( "\n" );
  • src/tests/preempt_longrun/Makefile.am

    rba4a1d8 r04e367c  
    3232BUILD_FLAGS = -g -Wall -Wno-unused-function -quiet @CFA_FLAGS@ -O2 -DPREEMPTION_RATE=${preempt} -I.. -I. -DTEST_$(shell cat .type | tr a-z A-Z)
    3333CFLAGS = ${BUILD_FLAGS}
    34 CC = @CFA_BINDIR@/@CFA_NAME@
     34CC = ${top_builddir}/src/driver/cfa
    3535
    3636TESTS = block coroutine create disjoint enter enter3 processor stack wait yield
  • src/tests/preempt_longrun/Makefile.in

    rba4a1d8 r04e367c  
    337337AWK = @AWK@
    338338BACKEND_CC = @BACKEND_CC@
    339 CC = @CFA_BINDIR@/@CFA_NAME@
     339CC = ${top_builddir}/src/driver/cfa
    340340CCAS = @CCAS@
    341341CCASDEPMODE = @CCASDEPMODE@
     
    377377LTLIBOBJS = @LTLIBOBJS@
    378378MACHINE_TYPE = @MACHINE_TYPE@
    379 MAINT = @MAINT@
    380379MAKEINFO = @MAKEINFO@
    381380MKDIR_P = @MKDIR_P@
     
    466465.SUFFIXES:
    467466.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)
    469468        @for dep in $?; do \
    470469          case '$(am__configure_deps)' in \
     
    490489        cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
    491490
    492 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
     491$(top_srcdir)/configure: $(am__configure_deps)
    493492        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)
    495494        cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
    496495$(am__aclocal_m4_deps):
  • src/tests/pybin/tools.py

    rba4a1d8 r04e367c  
    171171
    172172        # Start the walk
    173         abspath = os.path.abspath(__main__.__file__)
    174         dname = os.path.dirname(abspath)
     173        dname = settings.SRCDIR
    175174        os.path.walk(dname, step, '')
    176175
  • tools/Makefile.in

    rba4a1d8 r04e367c  
    226226LTLIBOBJS = @LTLIBOBJS@
    227227MACHINE_TYPE = @MACHINE_TYPE@
    228 MAINT = @MAINT@
    229228MAKEINFO = @MAKEINFO@
    230229MKDIR_P = @MKDIR_P@
     
    306305.SUFFIXES:
    307306.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)
    309308        @for dep in $?; do \
    310309          case '$(am__configure_deps)' in \
     
    330329        cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
    331330
    332 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
     331$(top_srcdir)/configure: $(am__configure_deps)
    333332        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)
    335334        cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
    336335$(am__aclocal_m4_deps):
  • tools/prettyprinter/Makefile.in

    rba4a1d8 r04e367c  
    147147am__v_CXXLD_0 = @echo "  CXXLD   " $@;
    148148am__v_CXXLD_1 =
    149 @MAINTAINER_MODE_FALSE@am__skiplex = test -f $@ ||
    150149LEXCOMPILE = $(LEX) $(AM_LFLAGS) $(LFLAGS)
    151150AM_V_LEX = $(am__v_LEX_@AM_V@)
     
    154153am__v_LEX_1 =
    155154YLWRAP = $(top_srcdir)/automake/ylwrap
    156 @MAINTAINER_MODE_FALSE@am__skipyacc = test -f $@ ||
    157155am__yacc_c2h = sed -e s/cc$$/hh/ -e s/cpp$$/hpp/ -e s/cxx$$/hxx/ \
    158156                   -e s/c++$$/h++/ -e s/c$$/h/
     
    252250LTLIBOBJS = @LTLIBOBJS@
    253251MACHINE_TYPE = @MACHINE_TYPE@
    254 MAINT = @MAINT@
    255252MAKEINFO = @MAKEINFO@
    256253MKDIR_P = @MKDIR_P@
     
    341338.SUFFIXES:
    342339.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)
    344341        @for dep in $?; do \
    345342          case '$(am__configure_deps)' in \
     
    365362        cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
    366363
    367 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
     364$(top_srcdir)/configure: $(am__configure_deps)
    368365        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)
    370367        cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
    371368$(am__aclocal_m4_deps):
Note: See TracChangeset for help on using the changeset viewer.