Changeset d84f2ae
- Timestamp:
- Jan 8, 2025, 1:00:13 PM (12 days ago)
- Branches:
- master
- Children:
- 658f3179
- Parents:
- 190a833
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/Box.cpp
r190a833 rd84f2ae 95 95 ast::TypeInstType inst( sizedParam ); 96 96 std::string paramName = Mangle::mangleType( &inst ); 97 params.emplace_back(new ast::ObjectDecl(97 auto sizeofParam = new ast::ObjectDecl( 98 98 sizedParam->location, 99 99 sizeofName( paramName ), 100 100 getLayoutCType( transUnit ) 101 ) ); 102 auto alignParam = new ast::ObjectDecl( 101 ); 102 sizeofParam->attributes.push_back( new ast::Attribute( "unused" ) ); 103 params.emplace_back( sizeofParam ); 104 auto alignofParam = new ast::ObjectDecl( 103 105 sizedParam->location, 104 106 alignofName( paramName ), 105 107 getLayoutCType( transUnit ) 106 108 ); 107 align Param->attributes.push_back( new ast::Attribute( "unused" ) );108 params.emplace_back( align Param );109 alignofParam->attributes.push_back( new ast::Attribute( "unused" ) ); 110 params.emplace_back( alignofParam ); 109 111 } 110 112 } -
tests/.expect/functions.arm64.txt
r190a833 rd84f2ae 123 123 struct _tuple2_ { 124 124 }; 125 static inline void _layoutof__tuple2_(unsigned long int *_sizeof__tuple2_, unsigned long int *_alignof__tuple2_, unsigned long int *_offsetof__tuple2_, const unsigned long int _sizeof_Y15tuple_param_2_0, __attribute__ ((unused)) const unsigned long int _alignof_Y15tuple_param_2_0,const unsigned long int _sizeof_Y15tuple_param_2_1, __attribute__ ((unused)) const unsigned long int _alignof_Y15tuple_param_2_1){125 static inline void _layoutof__tuple2_(unsigned long int *_sizeof__tuple2_, unsigned long int *_alignof__tuple2_, unsigned long int *_offsetof__tuple2_, __attribute__ ((unused)) const unsigned long int _sizeof_Y15tuple_param_2_0, __attribute__ ((unused)) const unsigned long int _alignof_Y15tuple_param_2_0, __attribute__ ((unused)) const unsigned long int _sizeof_Y15tuple_param_2_1, __attribute__ ((unused)) const unsigned long int _alignof_Y15tuple_param_2_1){ 126 126 ((void)((*_sizeof__tuple2_)=0)); 127 127 ((void)((*_alignof__tuple2_)=1)); … … 160 160 struct _tuple3_ { 161 161 }; 162 static inline void _layoutof__tuple3_(unsigned long int *_sizeof__tuple3_, unsigned long int *_alignof__tuple3_, unsigned long int *_offsetof__tuple3_, const unsigned long int _sizeof_Y15tuple_param_3_0, __attribute__ ((unused)) const unsigned long int _alignof_Y15tuple_param_3_0, const unsigned long int _sizeof_Y15tuple_param_3_1, __attribute__ ((unused)) const unsigned long int _alignof_Y15tuple_param_3_1,const unsigned long int _sizeof_Y15tuple_param_3_2, __attribute__ ((unused)) const unsigned long int _alignof_Y15tuple_param_3_2){162 static inline void _layoutof__tuple3_(unsigned long int *_sizeof__tuple3_, unsigned long int *_alignof__tuple3_, unsigned long int *_offsetof__tuple3_, __attribute__ ((unused)) const unsigned long int _sizeof_Y15tuple_param_3_0, __attribute__ ((unused)) const unsigned long int _alignof_Y15tuple_param_3_0, __attribute__ ((unused)) const unsigned long int _sizeof_Y15tuple_param_3_1, __attribute__ ((unused)) const unsigned long int _alignof_Y15tuple_param_3_1, __attribute__ ((unused)) const unsigned long int _sizeof_Y15tuple_param_3_2, __attribute__ ((unused)) const unsigned long int _alignof_Y15tuple_param_3_2){ 163 163 ((void)((*_sizeof__tuple3_)=0)); 164 164 ((void)((*_alignof__tuple3_)=1)); -
tests/.expect/functions.x64.txt
r190a833 rd84f2ae 123 123 struct _tuple2_ { 124 124 }; 125 static inline void _layoutof__tuple2_(unsigned long int *_sizeof__tuple2_, unsigned long int *_alignof__tuple2_, unsigned long int *_offsetof__tuple2_, const unsigned long int _sizeof_Y15tuple_param_2_0, __attribute__ ((unused)) const unsigned long int _alignof_Y15tuple_param_2_0,const unsigned long int _sizeof_Y15tuple_param_2_1, __attribute__ ((unused)) const unsigned long int _alignof_Y15tuple_param_2_1){125 static inline void _layoutof__tuple2_(unsigned long int *_sizeof__tuple2_, unsigned long int *_alignof__tuple2_, unsigned long int *_offsetof__tuple2_, __attribute__ ((unused)) const unsigned long int _sizeof_Y15tuple_param_2_0, __attribute__ ((unused)) const unsigned long int _alignof_Y15tuple_param_2_0, __attribute__ ((unused)) const unsigned long int _sizeof_Y15tuple_param_2_1, __attribute__ ((unused)) const unsigned long int _alignof_Y15tuple_param_2_1){ 126 126 ((void)((*_sizeof__tuple2_)=0)); 127 127 ((void)((*_alignof__tuple2_)=1)); … … 160 160 struct _tuple3_ { 161 161 }; 162 static inline void _layoutof__tuple3_(unsigned long int *_sizeof__tuple3_, unsigned long int *_alignof__tuple3_, unsigned long int *_offsetof__tuple3_, const unsigned long int _sizeof_Y15tuple_param_3_0, __attribute__ ((unused)) const unsigned long int _alignof_Y15tuple_param_3_0, const unsigned long int _sizeof_Y15tuple_param_3_1, __attribute__ ((unused)) const unsigned long int _alignof_Y15tuple_param_3_1,const unsigned long int _sizeof_Y15tuple_param_3_2, __attribute__ ((unused)) const unsigned long int _alignof_Y15tuple_param_3_2){162 static inline void _layoutof__tuple3_(unsigned long int *_sizeof__tuple3_, unsigned long int *_alignof__tuple3_, unsigned long int *_offsetof__tuple3_, __attribute__ ((unused)) const unsigned long int _sizeof_Y15tuple_param_3_0, __attribute__ ((unused)) const unsigned long int _alignof_Y15tuple_param_3_0, __attribute__ ((unused)) const unsigned long int _sizeof_Y15tuple_param_3_1, __attribute__ ((unused)) const unsigned long int _alignof_Y15tuple_param_3_1, __attribute__ ((unused)) const unsigned long int _sizeof_Y15tuple_param_3_2, __attribute__ ((unused)) const unsigned long int _alignof_Y15tuple_param_3_2){ 163 163 ((void)((*_sizeof__tuple3_)=0)); 164 164 ((void)((*_alignof__tuple3_)=1)); -
tests/.expect/functions.x86.txt
r190a833 rd84f2ae 123 123 struct _tuple2_ { 124 124 }; 125 static inline void _layoutof__tuple2_(unsigned int *_sizeof__tuple2_, unsigned int *_alignof__tuple2_, unsigned int *_offsetof__tuple2_, const unsigned int _sizeof_Y15tuple_param_2_0, __attribute__ ((unused)) const unsigned int _alignof_Y15tuple_param_2_0,const unsigned int _sizeof_Y15tuple_param_2_1, __attribute__ ((unused)) const unsigned int _alignof_Y15tuple_param_2_1){125 static inline void _layoutof__tuple2_(unsigned int *_sizeof__tuple2_, unsigned int *_alignof__tuple2_, unsigned int *_offsetof__tuple2_, __attribute__ ((unused)) const unsigned int _sizeof_Y15tuple_param_2_0, __attribute__ ((unused)) const unsigned int _alignof_Y15tuple_param_2_0, __attribute__ ((unused)) const unsigned int _sizeof_Y15tuple_param_2_1, __attribute__ ((unused)) const unsigned int _alignof_Y15tuple_param_2_1){ 126 126 ((void)((*_sizeof__tuple2_)=0)); 127 127 ((void)((*_alignof__tuple2_)=1)); … … 160 160 struct _tuple3_ { 161 161 }; 162 static inline void _layoutof__tuple3_(unsigned int *_sizeof__tuple3_, unsigned int *_alignof__tuple3_, unsigned int *_offsetof__tuple3_, const unsigned int _sizeof_Y15tuple_param_3_0, __attribute__ ((unused)) const unsigned int _alignof_Y15tuple_param_3_0, const unsigned int _sizeof_Y15tuple_param_3_1, __attribute__ ((unused)) const unsigned int _alignof_Y15tuple_param_3_1,const unsigned int _sizeof_Y15tuple_param_3_2, __attribute__ ((unused)) const unsigned int _alignof_Y15tuple_param_3_2){162 static inline void _layoutof__tuple3_(unsigned int *_sizeof__tuple3_, unsigned int *_alignof__tuple3_, unsigned int *_offsetof__tuple3_, __attribute__ ((unused)) const unsigned int _sizeof_Y15tuple_param_3_0, __attribute__ ((unused)) const unsigned int _alignof_Y15tuple_param_3_0, __attribute__ ((unused)) const unsigned int _sizeof_Y15tuple_param_3_1, __attribute__ ((unused)) const unsigned int _alignof_Y15tuple_param_3_1, __attribute__ ((unused)) const unsigned int _sizeof_Y15tuple_param_3_2, __attribute__ ((unused)) const unsigned int _alignof_Y15tuple_param_3_2){ 163 163 ((void)((*_sizeof__tuple3_)=0)); 164 164 ((void)((*_alignof__tuple3_)=1)); -
tests/Makefile.am
r190a833 rd84f2ae 76 76 concurrency/actors/static \ 77 77 concurrency/actors/types \ 78 concurrency/channels/big_elems \79 78 concurrency/channels/churn \ 80 79 concurrency/channels/contend \ 81 80 concurrency/channels/daisy_chain \ 82 81 concurrency/channels/hot_potato \ 83 concurrency/channels/ping_pong \84 82 concurrency/channels/pub_sub \ 85 concurrency/channels/zero_size \86 concurrency/cofor \87 83 concurrency/futures/multi \ 88 84 concurrency/futures/select_future \ 89 85 concurrency/futures/typed \ 90 concurrency/futures/wait_any \91 86 concurrency/lockfree_stack \ 92 concurrency/mutexstmt/locks \93 concurrency/mutexstmt/tuple \94 concurrency/once \95 87 concurrency/pthread/bounded_buffer \ 96 88 concurrency/pthread/pthread_attr_test \ … … 99 91 concurrency/pthread/pthread_key_test \ 100 92 concurrency/pthread/pthread_once_test \ 101 concurrency/thread \102 93 concurrency/unified_locking/block_spin_lock \ 103 94 concurrency/unified_locking/exp_backoff \ … … 115 106 concurrency/waituntil/basic_else \ 116 107 concurrency/waituntil/channel_close \ 117 concurrency/waituntil/channel_zero_size \118 108 concurrency/waituntil/channels \ 119 109 concurrency/waituntil/futures \ 120 110 concurrency/waituntil/locks \ 121 concurrency/waituntil/one_chan \122 111 concurrency/waituntil/repeat_close \ 123 112 concurrency/waituntil/timeout \ … … 129 118 exceptions/defaults \ 130 119 exceptions/defaults-threads \ 131 exceptions/polymorphic \132 120 exceptions/try-leave-catch \ 133 exceptions/virtual-poly \134 121 forall \ 135 122 function-operator \ … … 152 139 poly-many-arsz \ 153 140 polymorphism \ 154 poly-o-cycle \155 raii/boxed-types \156 141 raii/ctor-autogen \ 157 142 raii/dtor-early-exit \ … … 159 144 references \ 160 145 shortCircuit \ 161 smart-pointers \162 146 sum \ 163 147 switch \ -
tests/nowarn/unused.cfa
r190a833 rd84f2ae 12 12 struct my_array { 13 13 float strides[N]; 14 }; 15 16 // layoutof curious_size_dep doesn't need sizeof T 17 forall(T *) 18 struct curious_size_dep { 19 int x; 14 20 }; 15 21
Note: See TracChangeset
for help on using the changeset viewer.