Changeset a5e2786f


Ignore:
Timestamp:
Dec 22, 2024, 4:48:31 PM (9 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
43299af
Parents:
5a02308 (diff), 28c2c9d5 (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

Files:
6 edited

Legend:

Unmodified
Added
Removed
  • benchmark/Makefile.am

    r5a02308 ra5e2786f  
    174174        echo "array,attributes,empty,expression,io,monitor,operators,typeof" > $@
    175175        +make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-array.make >> $@
    176         echo "0," >> $@
    177 #       +make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-attributes.make >> $@
     176        +make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-attributes.make >> $@
    178177        +make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-empty.make >> $@
    179178        +make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-expression.make >> $@
  • src/GenPoly/Specialize.cpp

    r5a02308 ra5e2786f  
    300300                } ),
    301301                map_range<DWTVector>( newType->params, [&location, &paramNamer]( const ast::Type * type ) {
    302                         return new ast::ObjectDecl( location, paramNamer.newName(), ast::deepCopy( type ) );
     302                        auto param = new ast::ObjectDecl( location, paramNamer.newName(), ast::deepCopy( type ) );
     303                        param->attributes.push_back( new ast::Attribute( "unused" ) );
     304                        return param;
    303305                } ),
    304306                map_range<DWTVector>( newType->returns, [&location, &paramNamer]( const ast::Type * type ) {
  • src/InitTweak/FixInit.cpp

    r5a02308 ra5e2786f  
    7070                ast::Linkage::Cforall
    7171        );
     72        dstParam->attributes.push_back( new ast::Attribute( "unused" ) );
    7273        return new ast::FunctionDecl( loc,
    7374                fname,
  • tests/Makefile.am

    r5a02308 ra5e2786f  
    5252WFLGAS_OPT_LAX = \
    5353        alloc \
    54         alloc2 \
    5554        array \
    56         array-collections/array-raii-c \
    57         array-collections/array-raii-cfa \
    5855        array-collections/boxed \
    5956                array-collections/boxed% \
     
    9895        concurrency/examples/boundedBufferEXT \
    9996        concurrency/examples/boundedBufferINT \
    100         concurrency/futures/abandon \
    10197        concurrency/futures/multi \
    10298        concurrency/futures/select_future \
     
    179175        function-operator \
    180176        gmp \
    181         heap \
    182177        identFuncDeclarator \
    183178        identParamDeclarator \
  • tests/array-collections/array-raii.hfa

    r5a02308 ra5e2786f  
    5959        }
    6060    }
     61  #pragma GCC diagnostic push
     62  #pragma GCC diagnostic ignored "-Wuninitialized"
     63  #pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
    6164    void case1() {
    6265        ADECL1(x, float, 5)
     
    6871        checkzero(x[0].f, x[1].f, x[2].f, x[3].f, x[4].f);
    6972    }
     73  #pragma GCC diagnostic pop
    7074
    7175    writeJunkOnStack(5);
  • tests/nowarn/unused.cfa

    r5a02308 ra5e2786f  
    1717enum () foo_t { foo };
    1818
     19// on empty tuple,  __cleanup_dtor takes zero actions on its param and
     20// _thunk's purpose is to ignore its param
     21forall( Args... | { void foo( Args ); } )
     22void wrap( Args ) {}
     23void foo() {}
     24void callWrap() {
     25    wrap();
     26}
     27
    1928
    2029int main() {
Note: See TracChangeset for help on using the changeset viewer.