Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset a5057cc in mainline


Ignore:
Timestamp:
2013-03-31T20:55:42Z (9 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master
Children:
c4f7bf6
Parents:
45f7449
Message:

Disable -ftree-loop-distribute-patterns for memset() and memcpy().

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • boot/generic/include/memstr.h

    r45f7449 ra5057cc  
    3535#include <typedefs.h>
    3636
    37 extern void *memcpy(void *, const void *, size_t);
    38 extern void *memset(void *, int, size_t);
     37extern void *memcpy(void *, const void *, size_t)
     38    __attribute__ ((optimize("-fno-tree-loop-distribute-patterns")));
     39extern void *memset(void *, int, size_t)
     40    __attribute__ ((optimize("-fno-tree-loop-distribute-patterns")));
    3941extern void *memmove(void *, const void *, size_t);
    4042
  • kernel/generic/include/lib/memfnc.h

    r45f7449 ra5057cc  
    3838#include <typedefs.h>
    3939
    40 extern void *memset(void *, int, size_t);
    41 extern void *memcpy(void *, const void *, size_t);
     40extern void *memset(void *, int, size_t)
     41    __attribute__ ((optimize("-fno-tree-loop-distribute-patterns")));
     42extern void *memcpy(void *, const void *, size_t)
     43    __attribute__ ((optimize("-fno-tree-loop-distribute-patterns")));
    4244
    4345#endif
  • uspace/lib/c/include/mem.h

    r45f7449 ra5057cc  
    4040#define bzero(ptr, len)  memset((ptr), 0, (len))
    4141
    42 extern void *memset(void *, int, size_t);
    43 extern void *memcpy(void *, const void *, size_t);
     42extern void *memset(void *, int, size_t)
     43    __attribute__ ((optimize("-fno-tree-loop-distribute-patterns")));
     44extern void *memcpy(void *, const void *, size_t)
     45    __attribute__ ((optimize("-fno-tree-loop-distribute-patterns")));
    4446extern void *memmove(void *, const void *, size_t);
    4547
Note: See TracChangeset for help on using the changeset viewer.