Changeset 9082d7e8 for libcfa


Ignore:
Timestamp:
Mar 30, 2023, 4:05:59 PM (13 months ago)
Author:
caparson <caparson@…>
Branches:
ADT, ast-experimental, master
Children:
bd72c28
Parents:
d24b1985 (diff), ff443e5 (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:software/cfa/cfa-cc

Location:
libcfa/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/pthread.cfa

    rd24b1985 r9082d7e8  
    152152
    153153//######################### Attr helpers #########################
    154 struct cfaPthread_attr_t {                                                              // thread attributes
     154typedef struct cfaPthread_attr_t {                                              // thread attributes
    155155                int contentionscope;
    156156                int detachstate;
     
    160160                int inheritsched;
    161161                struct sched_param param;
    162 } typedef cfaPthread_attr_t;
     162} cfaPthread_attr_t;
    163163
    164164static const cfaPthread_attr_t default_attrs {
  • libcfa/src/interpose.cfa

    rd24b1985 r9082d7e8  
    1010// Created On       : Wed Mar 29 16:10:31 2017
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon Mar 13 22:39:12 2023
    13 // Update Count     : 193
     12// Last Modified On : Mon Mar 27 21:09:03 2023
     13// Update Count     : 196
    1414//
    1515
     
    4040        union { generic_fptr_t fptr; void * ptr; } originalFunc;
    4141
     42        #if defined( _GNU_SOURCE )
     43        if ( version ) {
     44                originalFunc.ptr = dlvsym( library, symbol, version );
     45        } else {
     46                originalFunc.ptr = dlsym( library, symbol );
     47        } // if
     48        #else
    4249        originalFunc.ptr = dlsym( library, symbol );
    43         if ( ! originalFunc.ptr ) {                                                             // == nullptr
     50        #endif // _GNU_SOURCE
     51
     52        if ( ! originalFunc.ptr ) {                                                     // == nullptr
    4453                abort( "interpose_symbol : internal error, %s\n", dlerror() );
    4554        } // if
     
    4958static generic_fptr_t interpose_symbol( const char symbol[], const char version[] ) {
    5059        void * library;
     60
    5161        #if defined( RTLD_NEXT )
    5262        library = RTLD_NEXT;
  • libcfa/src/interpose_thread.cfa

    rd24b1985 r9082d7e8  
    1414//
    1515
     16// BUG in 32-bit gcc with interpose: fixed in >= gcc-9.5, gcc-10.4, gcc-12.2
    1617#ifdef __i386__                                                                                 // 32-bit architecture
    1718#undef _GNU_SOURCE
     
    3334typedef void (* generic_fptr_t)(void);
    3435
    35 generic_fptr_t interpose_symbol(
     36generic_fptr_t libcfa_public interpose_symbol(
    3637        generic_fptr_t (*do_interpose_symbol)( void * library, const char symbol[], const char version[] ),
    3738        const char symbol[],
    3839        const char version[]
    39 ) libcfa_public {
     40) {
    4041        void * library;
    4142
Note: See TracChangeset for help on using the changeset viewer.