Changeset 9a063c8
- Timestamp:
- Dec 9, 2016, 1:02:45 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 599b386, 5c6afcd
- Parents:
- 6a16806
- Location:
- src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/InitTweak/FixInit.cc
r6a16806 r9a063c8 330 330 331 331 if ( VariableExpr * function = dynamic_cast< VariableExpr * > ( appExpr->get_function() ) ) { 332 if ( function->get_var()->get_linkage() == LinkageSpec::Intrinsic) {332 if ( LinkageSpec::isBuiltin( function->get_var()->get_linkage() ) ) { 333 333 // optimization: don't need to copy construct in order to call intrinsic functions 334 334 return appExpr; -
src/tests/.expect/32/extension.txt
r6a16806 r9a063c8 59 59 }; 60 60 static inline union U ___operator_assign__F2uU_P2uU2uU_autogen___1(union U *___dst__P2uU_1, union U ___src__2uU_1){ 61 void *_tmp_cp_ret0; 62 ((void)((_tmp_cp_ret0=__builtin_memcpy(((void *)___dst__P2uU_1), ((const void *)(&___src__2uU_1)), sizeof(union U ))) , _tmp_cp_ret0)); 63 ((void)(_tmp_cp_ret0) /* ^?{} */); 61 ((void)__builtin_memcpy(((void *)___dst__P2uU_1), ((const void *)(&___src__2uU_1)), sizeof(union U ))); 64 62 return ((union U )___src__2uU_1); 65 63 } … … 67 65 } 68 66 static inline void ___constructor__F_P2uU2uU_autogen___1(union U *___dst__P2uU_1, union U ___src__2uU_1){ 69 void *_tmp_cp_ret1; 70 ((void)((_tmp_cp_ret1=__builtin_memcpy(((void *)___dst__P2uU_1), ((const void *)(&___src__2uU_1)), sizeof(union U ))) , _tmp_cp_ret1)); 71 ((void)(_tmp_cp_ret1) /* ^?{} */); 67 ((void)__builtin_memcpy(((void *)___dst__P2uU_1), ((const void *)(&___src__2uU_1)), sizeof(union U ))); 72 68 return ((void)___src__2uU_1); 73 69 } … … 75 71 } 76 72 static inline void ___constructor__F_P2uUi_autogen___1(union U *___dst__P2uU_1, int __src__i_1){ 77 void *_tmp_cp_ret2; 78 ((void)((_tmp_cp_ret2=__builtin_memcpy(((void *)___dst__P2uU_1), ((const void *)(&__src__i_1)), sizeof(int ))) , _tmp_cp_ret2)); 79 ((void)(_tmp_cp_ret2) /* ^?{} */); 73 ((void)__builtin_memcpy(((void *)___dst__P2uU_1), ((const void *)(&__src__i_1)), sizeof(int ))); 80 74 } 81 75 __extension__ enum E { … … 97 91 __extension__ int __c__i_2; 98 92 ((void)(__extension__ __a__i_2=(__extension__ __b__i_2+__extension__ __c__i_2))); 99 int _tmp_cp_ret 3;100 ((void)((_tmp_cp_ret 3=__extension__ __fred__Fi_i__1(3)) , _tmp_cp_ret3));101 ((void)(_tmp_cp_ret 3) /* ^?{} */);93 int _tmp_cp_ret0; 94 ((void)((_tmp_cp_ret0=__extension__ __fred__Fi_i__1(3)) , _tmp_cp_ret0)); 95 ((void)(_tmp_cp_ret0) /* ^?{} */); 102 96 ((void)__extension__ sizeof(3)); 103 97 ((void)__extension__ (((int )(3!=((int )0))) || ((int )(4!=((int )0))))); -
src/tests/.expect/64/extension.txt
r6a16806 r9a063c8 59 59 }; 60 60 static inline union U ___operator_assign__F2uU_P2uU2uU_autogen___1(union U *___dst__P2uU_1, union U ___src__2uU_1){ 61 void *_tmp_cp_ret0; 62 ((void)((_tmp_cp_ret0=__builtin_memcpy(((void *)___dst__P2uU_1), ((const void *)(&___src__2uU_1)), sizeof(union U ))) , _tmp_cp_ret0)); 63 ((void)(_tmp_cp_ret0) /* ^?{} */); 61 ((void)__builtin_memcpy(((void *)___dst__P2uU_1), ((const void *)(&___src__2uU_1)), sizeof(union U ))); 64 62 return ((union U )___src__2uU_1); 65 63 } … … 67 65 } 68 66 static inline void ___constructor__F_P2uU2uU_autogen___1(union U *___dst__P2uU_1, union U ___src__2uU_1){ 69 void *_tmp_cp_ret1; 70 ((void)((_tmp_cp_ret1=__builtin_memcpy(((void *)___dst__P2uU_1), ((const void *)(&___src__2uU_1)), sizeof(union U ))) , _tmp_cp_ret1)); 71 ((void)(_tmp_cp_ret1) /* ^?{} */); 67 ((void)__builtin_memcpy(((void *)___dst__P2uU_1), ((const void *)(&___src__2uU_1)), sizeof(union U ))); 72 68 return ((void)___src__2uU_1); 73 69 } … … 75 71 } 76 72 static inline void ___constructor__F_P2uUi_autogen___1(union U *___dst__P2uU_1, int __src__i_1){ 77 void *_tmp_cp_ret2; 78 ((void)((_tmp_cp_ret2=__builtin_memcpy(((void *)___dst__P2uU_1), ((const void *)(&__src__i_1)), sizeof(int ))) , _tmp_cp_ret2)); 79 ((void)(_tmp_cp_ret2) /* ^?{} */); 73 ((void)__builtin_memcpy(((void *)___dst__P2uU_1), ((const void *)(&__src__i_1)), sizeof(int ))); 80 74 } 81 75 __extension__ enum E { … … 97 91 __extension__ int __c__i_2; 98 92 ((void)(__extension__ __a__i_2=(__extension__ __b__i_2+__extension__ __c__i_2))); 99 int _tmp_cp_ret 3;100 ((void)((_tmp_cp_ret 3=__extension__ __fred__Fi_i__1(3)) , _tmp_cp_ret3));101 ((void)(_tmp_cp_ret 3) /* ^?{} */);93 int _tmp_cp_ret0; 94 ((void)((_tmp_cp_ret0=__extension__ __fred__Fi_i__1(3)) , _tmp_cp_ret0)); 95 ((void)(_tmp_cp_ret0) /* ^?{} */); 102 96 ((void)__extension__ sizeof(3)); 103 97 ((void)__extension__ (((int )(3!=((int )0))) || ((int )(4!=((int )0)))));
Note: See TracChangeset
for help on using the changeset viewer.