Changeset 8f99dbf in mainline


Ignore:
Timestamp:
2019-02-03T17:03:37Z (6 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
472fe7a
Parents:
b4f1171
Message:

Move non-optimization attribute from header to implementation

Location:
uspace/lib/c
Files:
2 edited
1 moved

Legend:

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

    rb4f1171 r8f99dbf  
    3838#include <stddef.h>
    3939#include <stdint.h>
     40#include "private/cc.h"
    4041
    4142/** Fill memory block with a constant value. */
     43ATTRIBUTE_OPTIMIZE("-fno-tree-loop-distribute-patterns")
    4244void *memset(void *dest, int b, size_t n)
    4345{
     
    114116
    115117/** Copy memory block. */
     118ATTRIBUTE_OPTIMIZE("-fno-tree-loop-distribute-patterns")
    116119void *memcpy(void *dst, const void *src, size_t n)
    117120{
  • uspace/lib/c/include/mem.h

    rb4f1171 r8f99dbf  
    3838
    3939#include <stddef.h>
    40 #include <cc.h>
    4140
    4241extern void *memset(void *, int, size_t)
    43     __attribute__((nonnull(1)))
    44     ATTRIBUTE_OPTIMIZE("-fno-tree-loop-distribute-patterns");
     42    __attribute__((nonnull(1)));
    4543extern void *memcpy(void *, const void *, size_t)
    46     __attribute__((nonnull(1, 2)))
    47     ATTRIBUTE_OPTIMIZE("-fno-tree-loop-distribute-patterns");
     44    __attribute__((nonnull(1, 2)));
    4845extern void *memmove(void *, const void *, size_t)
    4946    __attribute__((nonnull(1, 2)));
Note: See TracChangeset for help on using the changeset viewer.