Changeset 998c106
- Timestamp:
- Apr 21, 2020, 1:12:48 PM (3 years ago)
- Branches:
- ADT, arm-eh, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 1bcdeff, 65583e2
- Parents:
- 5847d35 (diff), e045590 (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. - Location:
- libcfa/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/exception.c
r5847d35 r998c106 445 445 446 446 #pragma GCC push_options 447 #if __GNUC__ < 7448 #pragma GCC optimize("no-toplevel-reorder")449 #elif __GNUC__ == 7450 447 #pragma GCC optimize(0) 451 #endif452 448 453 449 // Try statements are hoisted out see comments for details. While this could probably be unique … … 546 542 " .quad __gcfa_personality_v0\n" 547 543 #else // then __i386 548 " 544 " .long __gcfa_personality_v0\n" 549 545 #endif 550 546 ); -
libcfa/src/heap.cfa
r5847d35 r998c106 10 10 // Created On : Tue Dec 19 21:58:35 2017 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sat Apr 18 08:17:53202013 // Update Count : 71 612 // Last Modified On : Sat Apr 18 17:43:15 2020 13 // Update Count : 718 14 14 // 15 15 … … 844 844 845 845 extern "C" { 846 // Allocates size bytes and returns a pointer to the allocated memory. The memory is not initialized. If size is 0,847 // then malloc() returns either 0p, ora unique pointer value that can later be successfully passed to free().846 // Allocates size bytes and returns a pointer to the allocated memory. The contents are undefined. If size is 0, 847 // then malloc() returns a unique pointer value that can later be successfully passed to free(). 848 848 void * malloc( size_t size ) { 849 849 #ifdef __STATISTICS__ … … 856 856 857 857 858 // Allocate memory for an array of dim elements of size bytes each and returns a pointer to the allocated memory. If 859 // dim or size is 0, then calloc() returns either 0p, or a unique pointer value that can later be successfully 860 // passed to free(). 858 // Same as malloc() except size bytes is an array of dim elements each of elemSize bytes. 861 859 void * aalloc( size_t dim, size_t elemSize ) { 862 860 #ifdef __STATISTICS__ … … 879 877 880 878 881 // Same as aalloc() with memory isset to zero.879 // Same as aalloc() with memory set to zero. 882 880 void * calloc( size_t dim, size_t elemSize ) { 883 881 #ifdef __STATISTICS__ … … 889 887 } // calloc 890 888 891 // Change the size of the memory block pointed to by ptr to size bytes. The contents are undefined. If ptr is 0p, 892 // then the call is equivalent to malloc(size), for all values of size; if size is equal to zero, and ptr is not 0p, 893 // then the call is equivalent to free(ptr). Unless ptr is 0p, it must have been returned by an earlier call to 894 // malloc(), calloc() or realloc(). If the area pointed to was moved, a free(ptr) is done. 895 889 // Change the size of the memory block pointed to by oaddr to size bytes. The contents are undefined. If oaddr is 890 // 0p, then the call is equivalent to malloc(size), for all values of size; if size is equal to zero, and oaddr is 891 // not 0p, then the call is equivalent to free(oaddr). Unless oaddr is 0p, it must have been returned by an earlier 892 // call to malloc(), alloc(), calloc() or realloc(). If the area pointed to was moved, a free(oaddr) is done. 896 893 void * resize( void * oaddr, size_t size ) { 897 894 #ifdef __STATISTICS__ … … 923 920 924 921 925 // Same as resize but the contents shall be unchanged in the range from the start of the region up to the minimum of922 // Same as resize() but the contents are unchanged in the range from the start of the region up to the minimum of 926 923 // the old and new sizes. 927 924 void * realloc( void * oaddr, size_t size ) { … … 973 970 } // realloc 974 971 975 // Allocates size bytes and returns a pointer to the allocated memory. The memory address shall be a multiple of 976 // alignment, which must be a power of two. (obsolete) 972 // Same as malloc() except the memory address is a multiple of alignment, which must be a power of two. (obsolete) 977 973 void * memalign( size_t alignment, size_t size ) { 978 974 #ifdef __STATISTICS__
Note: See TracChangeset
for help on using the changeset viewer.