From fb1836fd7b1b8839815595db08ae740ec7b86347 Mon Sep 17 00:00:00 2001 From: Patrick Williams Date: Wed, 19 Sep 2012 14:23:54 -0500 Subject: 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 Reviewed-by: ADAM R. MUHLE Reviewed-by: Daniel M. Crowell Reviewed-by: Melissa J. Connell Reviewed-by: Paul Nguyen Reviewed-by: A. Patrick Williams III --- src/include/string.h | 55 ++++++++++++++++++++++++++-------------------------- 1 file changed, 27 insertions(+), 28 deletions(-) (limited to 'src/include/string.h') 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 }; -- cgit v1.2.3