Changeset 630b9d35 in mainline
- Timestamp:
- 2014-04-21T11:19:29Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 170e181
- Parents:
- 5792d6e
- Location:
- kernel/generic/include
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/cc.h
r5792d6e r630b9d35 40 40 #define ATTRIBUTE_OPTIMIZE(opt) \ 41 41 __attribute__ ((optimize(opt))) 42 #define ATTRIBUTE_USED \ 43 __attribute__ ((used)) 42 44 #else 43 45 #define ATTRIBUTE_OPTIMIZE(opt) 46 #define ATTRIBUTE_USED 44 47 #endif 45 48 -
kernel/generic/include/lib/memfnc.h
r5792d6e r630b9d35 39 39 #include <cc.h> 40 40 41 #ifdef CONFIG_LTO 42 #define DO_NOT_DISCARD ATTRIBUTE_USED 43 #else 44 #define DO_NOT_DISCARD 45 #endif 46 41 47 extern void *memset(void *, int, size_t) 42 ATTRIBUTE_OPTIMIZE("-fno-tree-loop-distribute-patterns") ;48 ATTRIBUTE_OPTIMIZE("-fno-tree-loop-distribute-patterns") DO_NOT_DISCARD; 43 49 extern void *memcpy(void *, const void *, size_t) 44 ATTRIBUTE_OPTIMIZE("-fno-tree-loop-distribute-patterns") ;50 ATTRIBUTE_OPTIMIZE("-fno-tree-loop-distribute-patterns") DO_NOT_DISCARD; 45 51 46 52 #endif -
kernel/generic/include/memstr.h
r5792d6e r630b9d35 37 37 38 38 #include <typedefs.h> 39 #include <cc.h> 40 41 #ifdef CONFIG_LTO 42 #define DO_NOT_DISCARD ATTRIBUTE_USED 43 #else 44 #define DO_NOT_DISCARD 45 #endif 39 46 40 47 #define memset(dst, val, cnt) __builtin_memset((dst), (val), (cnt)) … … 43 50 extern void memsetb(void *, size_t, uint8_t); 44 51 extern void memsetw(void *, size_t, uint16_t); 45 extern void *memmove(void *, const void *, size_t) ;52 extern void *memmove(void *, const void *, size_t) DO_NOT_DISCARD; 46 53 47 54 #endif
Note:
See TracChangeset
for help on using the changeset viewer.