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

Changeset 797d4d19 in mainline


Ignore:
Timestamp:
2013-06-03T08:29:31Z (7 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
master
Children:
b992d9d
Parents:
533e2d7
Message:

Clang does not know attribute(optimize)

Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/lib/memfnc.h

    r533e2d7 r797d4d19  
    3737
    3838#include <typedefs.h>
     39#include <cc.h>
    3940
    4041extern void *memset(void *, int, size_t)
    41     __attribute__ ((optimize("-fno-tree-loop-distribute-patterns")));
     42    ATTRIBUTE_OPTIMIZE("-fno-tree-loop-distribute-patterns");
    4243extern void *memcpy(void *, const void *, size_t)
    43     __attribute__ ((optimize("-fno-tree-loop-distribute-patterns")));
     44    ATTRIBUTE_OPTIMIZE("-fno-tree-loop-distribute-patterns");
    4445
    4546#endif
  • uspace/lib/c/include/mem.h

    r533e2d7 r797d4d19  
    3737
    3838#include <sys/types.h>
     39#include <cc.h>
    3940
    4041extern void *memset(void *, int, size_t)
    41     __attribute__ ((optimize("-fno-tree-loop-distribute-patterns")));
     42    ATTRIBUTE_OPTIMIZE("-fno-tree-loop-distribute-patterns");
    4243extern void *memcpy(void *, const void *, size_t)
    43     __attribute__ ((optimize("-fno-tree-loop-distribute-patterns")));
     44    ATTRIBUTE_OPTIMIZE("-fno-tree-loop-distribute-patterns");
    4445extern void *memmove(void *, const void *, size_t);
    4546extern int memcmp(const void *, const void *, size_t);
Note: See TracChangeset for help on using the changeset viewer.