Changes in / [6a16806:2d59d53]


Ignore:
Files:
1 deleted
8 edited

Legend:

Unmodified
Added
Removed
  • Jenkinsfile

    r6a16806 r2d59d53  
    168168                                architectureFlag = ''
    169169                                if (buildArchitecture == '64-bit') {
    170                                         architectureFlag = '--host=x86_64 CXXFLAGS="-m64 -O2" CFAFLAGS="-m64"'
     170                                        architectureFlag = '--host=x86_64 CXXFLAGS="-m64" CFAFLAGS="-m64"'
    171171                                } else if (buildArchitecture == '32-bit'){
    172                                         architectureFlag = '--host=i386 CXXFLAGS="-m32 -O2" CFAFLAGS="-m32"'
     172                                        architectureFlag = '--host=i386 CXXFLAGS="-m32" CFAFLAGS="-m32"'
    173173                                } else {
    174174                                        architectureFlag = 'ERROR'
  • aclocal.m4

    r6a16806 r2d59d53  
    135135# expand $ac_aux_dir to an absolute path
    136136am_aux_dir=`cd $ac_aux_dir && pwd`
    137 ])
    138 
    139 # AM_COND_IF                                            -*- Autoconf -*-
    140 
    141 # Copyright (C) 2008, 2010 Free Software Foundation, Inc.
    142 #
    143 # This file is free software; the Free Software Foundation
    144 # gives unlimited permission to copy and/or distribute it,
    145 # with or without modifications, as long as this notice is preserved.
    146 
    147 # serial 3
    148 
    149 # _AM_COND_IF
    150 # _AM_COND_ELSE
    151 # _AM_COND_ENDIF
    152 # --------------
    153 # These macros are only used for tracing.
    154 m4_define([_AM_COND_IF])
    155 m4_define([_AM_COND_ELSE])
    156 m4_define([_AM_COND_ENDIF])
    157 
    158 
    159 # AM_COND_IF(COND, [IF-TRUE], [IF-FALSE])
    160 # ---------------------------------------
    161 # If the shell condition COND is true, execute IF-TRUE, otherwise execute
    162 # IF-FALSE.  Allow automake to learn about conditional instantiating macros
    163 # (the AC_CONFIG_FOOS).
    164 AC_DEFUN([AM_COND_IF],
    165 [m4_ifndef([_AM_COND_VALUE_$1],
    166            [m4_fatal([$0: no such condition "$1"])])dnl
    167 _AM_COND_IF([$1])dnl
    168 if test -z "$$1_TRUE"; then :
    169   m4_n([$2])[]dnl
    170 m4_ifval([$3],
    171 [_AM_COND_ELSE([$1])dnl
    172 else
    173   $3
    174 ])dnl
    175 _AM_COND_ENDIF([$1])dnl
    176 fi[]dnl
    177137])
    178138
  • configure

    r6a16806 r2d59d53  
    658658CFA_INCDIR
    659659CFA_PREFIX
    660 BUILD_DEBUG_FALSE
    661 BUILD_DEBUG_TRUE
    662 BUILD_RELEASE_FALSE
    663 BUILD_RELEASE_TRUE
    664660CFA_BACKEND_CC
    665661BACKEND_CC
     
    738734enable_maintainer_mode
    739735with_backend_compiler
    740 enable_target_release
    741 enable_target_debug
    742736enable_dependency_tracking
    743737'
     
    13821376  --disable-maintainer-mode  disable make rules and dependencies not useful
    13831377                          (and sometimes confusing) to the casual installer
    1384   --enable-target-release Build and install the release target
    1385   --enable-target-debug   Build and install the debug target
    13861378  --disable-dependency-tracking  speeds up one-time build
    13871379  --enable-dependency-tracking   do not reject slow dependency extractors
     
    31073099_ACEOF
    31083100
    3109 
    3110 
    3111 
    3112 
    3113 # Check whether --enable-target-release was given.
    3114 if test "${enable_target_release+set}" = set; then :
    3115   enableval=$enable_target_release;
    3116 fi
    3117 
    3118 # Check whether --enable-target-debug was given.
    3119 if test "${enable_target_debug+set}" = set; then :
    3120   enableval=$enable_target_debug;
    3121 fi
    3122 
    3123 
    3124 case "$enable_target_release" in
    3125         yes)
    3126                 case "$enable_target_debug" in
    3127                         yes)
    3128                                 build_release="yes"
    3129                                 build_debug="yes"
    3130                                 ;;
    3131                         no)
    3132                                 build_release="yes"
    3133                                 build_debug="no"
    3134                                 ;;
    3135                         *)
    3136                                 build_release="yes"
    3137                                 build_debug="no"
    3138                                 ;;
    3139                 esac
    3140                 ;;
    3141         no)
    3142                 case "$enable_target_debug" in
    3143                         yes)
    3144                                 build_release="no"
    3145                                 build_debug="yes"
    3146                                 ;;
    3147                         no)
    3148                                 as_fn_error $? "Must build target debug or release" "$LINENO" 5
    3149                                 exit 1;
    3150                                 ;;
    3151                         *)
    3152                                 build_release="no"
    3153                                 build_debug="yes"
    3154                                 ;;
    3155                 esac
    3156                 ;;
    3157         *)
    3158                 case "$enable_target_debug" in
    3159                         yes)
    3160                                 build_release="no"
    3161                                 build_debug="yes"
    3162                                 ;;
    3163                         no)
    3164                                 build_release="yes"
    3165                                 build_debug="no"
    3166                                 ;;
    3167                         *)
    3168                                 build_release="yes"
    3169                                 build_debug="yes"
    3170                                 ;;
    3171                 esac
    3172                 ;;
    3173 esac
    3174 
    3175  if test "x$build_release" = "xyes"; then
    3176   BUILD_RELEASE_TRUE=
    3177   BUILD_RELEASE_FALSE='#'
    3178 else
    3179   BUILD_RELEASE_TRUE='#'
    3180   BUILD_RELEASE_FALSE=
    3181 fi
    3182 
    3183  if test "x$build_debug" = "xyes"; then
    3184   BUILD_DEBUG_TRUE=
    3185   BUILD_DEBUG_FALSE='#'
    3186 else
    3187   BUILD_DEBUG_TRUE='#'
    3188   BUILD_DEBUG_FALSE=
    3189 fi
    31903101
    31913102
     
    62966207if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
    62976208  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
    6298 Usually this means the macro was only invoked conditionally." "$LINENO" 5
    6299 fi
    6300 if test -z "${BUILD_RELEASE_TRUE}" && test -z "${BUILD_RELEASE_FALSE}"; then
    6301   as_fn_error $? "conditional \"BUILD_RELEASE\" was never defined.
    6302 Usually this means the macro was only invoked conditionally." "$LINENO" 5
    6303 fi
    6304 if test -z "${BUILD_DEBUG_TRUE}" && test -z "${BUILD_DEBUG_FALSE}"; then
    6305   as_fn_error $? "conditional \"BUILD_DEBUG\" was never defined.
    63066209Usually this means the macro was only invoked conditionally." "$LINENO" 5
    63076210fi
     
    76637566
    76647567
    7665 if test -z "$BUILD_RELEASE_TRUE"; then :
    7666   if test -z "$BUILD_DEBUG_TRUE"; then :
    7667   { $as_echo "$as_me:${as_lineno-$LINENO}: Building libcfa for target: release & debug" >&5
    7668 $as_echo "$as_me: Building libcfa for target: release & debug" >&6;}
    7669 else
    7670   { $as_echo "$as_me:${as_lineno-$LINENO}: Building libcfa for target: release" >&5
    7671 $as_echo "$as_me: Building libcfa for target: release" >&6;}
    7672 fi
    7673 else
    7674   { $as_echo "$as_me:${as_lineno-$LINENO}: Building libcfa for target: debug" >&5
    7675 $as_echo "$as_me: Building libcfa for target: debug" >&6;}
    7676 fi
    7677 
    76787568# Final text
    76797569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Cforall configuraton completed. Type \"make -j 8 install\"." >&5
  • configure.ac

    r6a16806 r2d59d53  
    5252AC_DEFINE_UNQUOTED(CFA_BACKEND_CC, "${BACKEND_CC}", [Location of include files.])
    5353AC_SUBST(CFA_BACKEND_CC)
    54 
    55 
    56 
    57 AC_ARG_ENABLE(target-release, AS_HELP_STRING([--enable-target-release], [Build and install the release target]))
    58 AC_ARG_ENABLE(target-debug, AS_HELP_STRING([--enable-target-debug], [Build and install the debug target]))
    59 
    60 case "$enable_target_release" in
    61         yes)
    62                 case "$enable_target_debug" in
    63                         yes)
    64                                 build_release="yes"
    65                                 build_debug="yes"
    66                                 ;;
    67                         no)
    68                                 build_release="yes"
    69                                 build_debug="no"
    70                                 ;;
    71                         *)
    72                                 build_release="yes"
    73                                 build_debug="no"
    74                                 ;;
    75                 esac
    76                 ;;
    77         no)
    78                 case "$enable_target_debug" in
    79                         yes)
    80                                 build_release="no"
    81                                 build_debug="yes"
    82                                 ;;
    83                         no)
    84                                 AC_MSG_ERROR(Must build target debug or release)
    85                                 exit 1;
    86                                 ;;
    87                         *)
    88                                 build_release="no"
    89                                 build_debug="yes"
    90                                 ;;
    91                 esac
    92                 ;;
    93         *)
    94                 case "$enable_target_debug" in
    95                         yes)
    96                                 build_release="no"
    97                                 build_debug="yes"
    98                                 ;;
    99                         no)
    100                                 build_release="yes"
    101                                 build_debug="no"
    102                                 ;;
    103                         *)
    104                                 build_release="yes"
    105                                 build_debug="yes"
    106                                 ;;
    107                 esac
    108                 ;;
    109 esac
    110 
    111 AM_CONDITIONAL([BUILD_RELEASE], [test "x$build_release" = "xyes"])
    112 AM_CONDITIONAL([BUILD_DEBUG], [test "x$build_debug" = "xyes"])
    11354
    11455if test "x$prefix" = "xNONE"; then
     
    196137AC_OUTPUT
    197138
    198 AM_COND_IF([BUILD_RELEASE],
    199         [AM_COND_IF([BUILD_DEBUG],
    200                 [AC_MSG_NOTICE(Building libcfa for target: release & debug)],
    201                 [AC_MSG_NOTICE(Building libcfa for target: release)])],
    202         [AC_MSG_NOTICE(Building libcfa for target: debug)])
    203 
    204139# Final text
    205140AC_MSG_RESULT(Cforall configuraton completed. Type "make -j 8 install".)
  • src/libcfa/concurrency/CtxSwitch-x86_64.S

    r6a16806 r2d59d53  
    7979.text
    8080        .align 2
    81 .globl  CtxInvokeStub
    82 CtxInvokeStub:
     81.globl  coInvokeStub
     82coInvokeStub:
    8383        movq %rbx, %rdi
    8484        jmp *%r12
  • src/libcfa/concurrency/invoke.c

    r6a16806 r2d59d53  
    1515extern void __suspend__F___1(void);
    1616
    17 void CtxInvokeCoroutine(
     17void invokeCoroutine(
    1818      void (*main)(void *),
    1919      struct coroutine *(*get_coroutine)(void *),
     
    3434
    3535
    36 void CtxStart(
     36void startCoroutine(
    3737      void (*main)(void *),
    3838      struct coroutine *(*get_coroutine)(void *),
     
    7373
    7474      ((struct FakeStack *)(((struct machine_context_t *)stack->context)->SP))->dummyReturn = NULL;
    75       ((struct FakeStack *)(((struct machine_context_t *)stack->context)->SP))->rturn = CtxInvokeStub;
     75      ((struct FakeStack *)(((struct machine_context_t *)stack->context)->SP))->rturn = coInvokeStub;
    7676      ((struct FakeStack *)(((struct machine_context_t *)stack->context)->SP))->fixedRegisters[0] = this;
    7777      ((struct FakeStack *)(((struct machine_context_t *)stack->context)->SP))->fixedRegisters[1] = invoke;
  • src/libcfa/concurrency/invoke.h

    r6a16806 r2d59d53  
    4545
    4646      // assembler routines that performs the context switch
    47       extern void CtxInvokeStub( void );
     47      extern void coInvokeStub( void );
    4848      void CtxSwitch( void *from, void *to ) asm ("CtxSwitch");
    4949
  • src/libcfa/concurrency/threads.c

    r6a16806 r2d59d53  
    4444}
    4545
    46 void corCxtSw(coroutine* src, coroutine* dst);
     46void ctxSwitchDirect(coroutine* src, coroutine* dst);
    4747void create_stack( coStack_t* this, unsigned int storageSize ); // used by all constructors
    4848
    4949extern "C" {
    5050      forall(dtype T | is_coroutine(T))
    51       void CtxInvokeCoroutine(T* this);
     51      void invokeCoroutine(T* this);
    5252
    5353      forall(dtype T | is_coroutine(T))
    54       void CtxStart(T* this, void (*invoke)(T*));
     54      void startCoroutine(T* this, void (*invoke)(T*));
    5555}
    5656
     
    100100                src->name, src, src->last->name, src->last );
    101101
    102         corCxtSw( src, src->last );
     102        ctxSwitchDirect( src, src->last );
    103103}
    104104
     
    108108        coroutine* dst = get_coroutine(cor);
    109109
    110         if( dst->stack.base == NULL ) {
     110        if( ((intptr_t)dst->stack.base) == 0 ) {
    111111                create_stack(&dst->stack, dst->stack.size);
    112                 CtxStart(cor, CtxInvokeCoroutine);
     112                startCoroutine(cor, invokeCoroutine);
    113113        }
    114114
     
    120120                dst->last = src;                                        // set last resumer
    121121        } // if
    122         corCxtSw( src, dst );                           // always done for performance testing
     122        ctxSwitchDirect( src, dst );                            // always done for performance testing
    123123}
    124124
     
    132132}
    133133
    134 void corCxtSw(coroutine* src, coroutine* dst) {
     134void ctxSwitchDirect(coroutine* src, coroutine* dst) {
    135135        // THREAD_GETMEM( This )->disableInterrupts();
    136136
Note: See TracChangeset for help on using the changeset viewer.