diff options
author | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-01-22 08:55:55 +0000 |
---|---|---|
committer | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-01-22 08:55:55 +0000 |
commit | d6d35ee969d840252d389193a34ef6908980804a (patch) | |
tree | 08730380ef3954115ff94a97d688433c2edeac28 /libgcc/config | |
parent | fc028516556eaa369573c5f7f65523c01e1eb5f7 (diff) | |
download | gcc-d6d35ee969d840252d389193a34ef6908980804a.tar.gz |
2013-01-22 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk rev 195360 using svnmerge.py
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@195361 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgcc/config')
-rw-r--r-- | libgcc/config/aarch64/sync-cache.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libgcc/config/aarch64/sync-cache.c b/libgcc/config/aarch64/sync-cache.c index 2512cb8e87e..66b7afedc1f 100644 --- a/libgcc/config/aarch64/sync-cache.c +++ b/libgcc/config/aarch64/sync-cache.c @@ -40,7 +40,8 @@ __aarch64_sync_cache_range (const void *base, const void *end) as per the GNU definition of __clear_cache. */ /* Make the start address of the loop cache aligned. */ - address = (const char*) ((unsigned long) base & ~ (dcache_lsize - 1)); + address = (const char*) ((__UINTPTR_TYPE__) base + & ~ (__UINTPTR_TYPE__) (dcache_lsize - 1)); for (address; address < (const char *) end; address += dcache_lsize) asm volatile ("dc\tcvau, %0" @@ -51,7 +52,8 @@ __aarch64_sync_cache_range (const void *base, const void *end) asm volatile ("dsb\tish" : : : "memory"); /* Make the start address of the loop cache aligned. */ - address = (const char*) ((unsigned long) base & ~ (icache_lsize - 1)); + address = (const char*) ((__UINTPTR_TYPE__) base + & ~ (__UINTPTR_TYPE__) (icache_lsize - 1)); for (address; address < (const char *) end; address += icache_lsize) asm volatile ("ic\tivau, %0" |