Changeset 472fe7a in mainline


Ignore:
Timestamp:
2019-02-03T22:49:24Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4f4018b
Parents:
8f99dbf
Message:

Fix ccheck

Location:
uspace/lib/c/generic
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/mem.c

    r8f99dbf r472fe7a  
    4141
    4242/** Fill memory block with a constant value. */
    43 ATTRIBUTE_OPTIMIZE("-fno-tree-loop-distribute-patterns")
    44 void *memset(void *dest, int b, size_t n)
     43ATTRIBUTE_OPTIMIZE_NO_TLDP
     44    void *memset(void *dest, int b, size_t n)
    4545{
    4646        char *pb;
     
    116116
    117117/** Copy memory block. */
    118 ATTRIBUTE_OPTIMIZE("-fno-tree-loop-distribute-patterns")
    119 void *memcpy(void *dst, const void *src, size_t n)
     118ATTRIBUTE_OPTIMIZE_NO_TLDP
     119    void *memcpy(void *dst, const void *src, size_t n)
    120120{
    121121        size_t i;
  • uspace/lib/c/generic/private/cc.h

    r8f99dbf r472fe7a  
    3939#ifndef __clang__
    4040#define ATTRIBUTE_OPTIMIZE(opt) \
    41         __attribute__ ((optimize(opt)))
     41    __attribute__ ((optimize(opt)))
    4242#else
    4343#define ATTRIBUTE_OPTIMIZE(opt)
    4444#endif
     45
     46#define ATTRIBUTE_OPTIMIZE_NO_TLDP \
     47    ATTRIBUTE_OPTIMIZE("-fno-tree-loop-distribute-patterns")
    4548
    4649#endif
Note: See TracChangeset for help on using the changeset viewer.