diff options
| author | Patrick Williams <iawillia@us.ibm.com> | 2012-09-19 14:23:54 -0500 |
|---|---|---|
| committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2012-10-09 17:06:49 -0500 |
| commit | fb1836fd7b1b8839815595db08ae740ec7b86347 (patch) | |
| tree | 54ff93536489c27b80af1f503520bd9894cdcfd3 /src/include/string.h | |
| parent | 84e4274fe412a577f67805cc701f4fb66a3feb2f (diff) | |
| download | blackbird-hostboot-fb1836fd7b1b8839815595db08ae740ec7b86347.tar.gz blackbird-hostboot-fb1836fd7b1b8839815595db08ae740ec7b86347.zip | |
Support code coverage in extended modules.
- Reduce optimization (to -Os) to fit when doing coverage profile.
- Remove errl storage area from base image.
- Add GCC function attributes to sys library functions.
RTC: 36933
Change-Id: Ic83011a2444ef5b735db0446a14a0af34187eebf
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1908
Tested-by: Jenkins Server
Reviewed-by: Brian H. Horton <brianh@linux.ibm.com>
Reviewed-by: ADAM R. MUHLE <armuhle@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Reviewed-by: Melissa J. Connell <missyc@us.ibm.com>
Reviewed-by: Paul Nguyen <nguyenp@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include/string.h')
| -rwxr-xr-x | src/include/string.h | 55 |
1 files changed, 27 insertions, 28 deletions
diff --git a/src/include/string.h b/src/include/string.h index 50acecac1..62e6107d7 100755 --- a/src/include/string.h +++ b/src/include/string.h @@ -1,26 +1,25 @@ -/* IBM_PROLOG_BEGIN_TAG - * This is an automatically generated prolog. - * - * $Source: src/include/string.h $ - * - * IBM CONFIDENTIAL - * - * COPYRIGHT International Business Machines Corp. 2010-2012 - * - * p1 - * - * Object Code Only (OCO) source materials - * Licensed Internal Code Source Materials - * IBM HostBoot Licensed Internal Code - * - * The source code for this program is not published or other- - * wise divested of its trade secrets, irrespective of what has - * been deposited with the U.S. Copyright Office. - * - * Origin: 30 - * - * IBM_PROLOG_END_TAG - */ +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: src/include/string.h $ */ +/* */ +/* IBM CONFIDENTIAL */ +/* */ +/* COPYRIGHT International Business Machines Corp. 2010,2012 */ +/* */ +/* p1 */ +/* */ +/* Object Code Only (OCO) source materials */ +/* Licensed Internal Code Source Materials */ +/* IBM HostBoot Licensed Internal Code */ +/* */ +/* The source code for this program is not published or otherwise */ +/* divested of its trade secrets, irrespective of what has been */ +/* deposited with the U.S. Copyright Office. */ +/* */ +/* Origin: 30 */ +/* */ +/* IBM_PROLOG_END_TAG */ #ifndef __STRING_H #define __STRING_H @@ -34,18 +33,18 @@ extern "C" void bzero(void *vdest, size_t len); void *memcpy(void *dest, const void *src, size_t num); void *memmove(void *vdest, const void *vsrc, size_t len); - int memcmp(const void *p1, const void *p2, size_t len); + int memcmp(const void *p1, const void *p2, size_t len) __attribute__((pure)); void *memmem(const void *haystack, size_t haystacklen, - const void *needle, size_t needlelen); + const void *needle, size_t needlelen) __attribute__((pure)); char* strcpy(char* d, const char* s); - int strcmp(const char* s1, const char* s2); - size_t strlen(const char* s1); + int strcmp(const char* s1, const char* s2) __attribute__((pure)); + size_t strlen(const char* s1) __attribute__((pure)); char* strcat(char* d, const char* s); char* strncat(char* d, const char* s, size_t n); - char* strchr(const char* s, int c); + char* strchr(const char* s, int c) __attribute__((pure)); #ifdef __cplusplus }; |

