summaryrefslogtreecommitdiffstats
path: root/compiler-rt
diff options
context:
space:
mode:
authorAlexander Potapenko <glider@google.com>2012-09-12 14:14:08 +0000
committerAlexander Potapenko <glider@google.com>2012-09-12 14:14:08 +0000
commitdff254c5347542cee51c13831e4b4cbe52d75dc7 (patch)
tree3c7bf1b77d875de16afdb001d27599c2f3f53481 /compiler-rt
parent4787d0fbeff57cdf7bcd25e9b727dd2b2c424afa (diff)
downloadbcm5719-llvm-dff254c5347542cee51c13831e4b4cbe52d75dc7.tar.gz
bcm5719-llvm-dff254c5347542cee51c13831e4b4cbe52d75dc7.zip
Fix compiler warnings: remove __attribute__((visibility)) for static functions, use unsigned char instead of char.
llvm-svn: 163707
Diffstat (limited to 'compiler-rt')
-rw-r--r--compiler-rt/lib/interception/mach_override/mach_override.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/compiler-rt/lib/interception/mach_override/mach_override.c b/compiler-rt/lib/interception/mach_override/mach_override.c
index 1da877f4a48..ba5653c47b1 100644
--- a/compiler-rt/lib/interception/mach_override/mach_override.c
+++ b/compiler-rt/lib/interception/mach_override/mach_override.c
@@ -50,7 +50,7 @@ long kIslandTemplate[] = {
#define kOriginalInstructionsSize 16
static
-char kIslandTemplate[] = {
+unsigned char kIslandTemplate[] = {
// kOriginalInstructionsSize nop instructions so that we
// should have enough space to host original instructions
0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90,
@@ -68,7 +68,7 @@ char kIslandTemplate[] = {
#define kJumpAddress kOriginalInstructionsSize + 6
static
-char kIslandTemplate[] = {
+unsigned char kIslandTemplate[] = {
// kOriginalInstructionsSize nop instructions so that we
// should have enough space to host original instructions
0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90,
@@ -112,26 +112,26 @@ typedef struct {
allocateBranchIsland(
BranchIsland **island,
int allocateHigh,
- void *originalFunctionAddress) __attribute__((visibility("hidden")));
+ void *originalFunctionAddress);
static mach_error_t
freeBranchIsland(
- BranchIsland *island ) __attribute__((visibility("hidden")));
+ BranchIsland *island );
static mach_error_t
defaultIslandMalloc(
- void **ptr, size_t unused_size, void *hint) __attribute__((visibility("hidden")));
+ void **ptr, size_t unused_size, void *hint);
static mach_error_t
defaultIslandFree(
- void *ptr) __attribute__((visibility("hidden")));
+ void *ptr);
#if defined(__ppc__) || defined(__POWERPC__)
static mach_error_t
setBranchIslandTarget(
BranchIsland *island,
const void *branchTo,
- long instruction ) __attribute__((visibility("hidden")));
+ long instruction );
#endif
#if defined(__i386__) || defined(__x86_64__)
@@ -139,7 +139,7 @@ static mach_error_t
setBranchIslandTarget_i386(
BranchIsland *island,
const void *branchTo,
- char* instructions ) __attribute__((visibility("hidden")));
+ char* instructions );
// Can't be made static because there's no C implementation for atomic_mov64
// on i386.
void
@@ -154,7 +154,7 @@ eatKnownInstructions(
int *howManyEaten,
char *originalInstructions,
int *originalInstructionCount,
- uint8_t *originalInstructionSizes ) __attribute__((visibility("hidden")));
+ uint8_t *originalInstructionSizes );
static void
fixupInstructions(
@@ -162,7 +162,7 @@ fixupInstructions(
void *escapeIsland,
void *instructionsToFix,
int instructionCount,
- uint8_t *instructionSizes ) __attribute__((visibility("hidden")));
+ uint8_t *instructionSizes );
#ifdef DEBUG_DISASM
static void
OpenPOWER on IntegriCloud