[AArch64/AArch64-4.7][libgcc] Silence warnings in sync-cache.c
authorJames Greenhalgh <james.greenhalgh@arm.com>
Fri, 1 Mar 2013 14:01:58 +0000 (14:01 +0000)
committerJames Greenhalgh <jgreenhalgh@gcc.gnu.org>
Fri, 1 Mar 2013 14:01:58 +0000 (14:01 +0000)
libgcc/
* config/aarch64/sync-cache.c
(__aarch64_sync_cache_range): Silence warnings.

From-SVN: r196380

libgcc/ChangeLog
libgcc/config/aarch64/sync-cache.c

index c37162b..5f16e40 100644 (file)
@@ -1,3 +1,8 @@
+2013-03-01  James Greenhalgh  <james.greenhalgh@arm.com>
+
+       * config/aarch64/sync-cache.c
+       (__aarch64_sync_cache_range): Silence warnings.
+
 2013-02-25  Catherine Moore  <clm@codesourcery.com>
 
        Revert:
index 7091c48..3397e9d 100644 (file)
@@ -18,6 +18,8 @@
    along with GCC; see the file COPYING3.  If not see
    <http://www.gnu.org/licenses/>.  */
 
+void __aarch64_sync_cache_range (const void *, const void *);
+
 void
 __aarch64_sync_cache_range (const void *base, const void *end)
 {
@@ -43,7 +45,7 @@ __aarch64_sync_cache_range (const void *base, const void *end)
   address = (const char*) ((__UINTPTR_TYPE__) base
                           & ~ (__UINTPTR_TYPE__) (dcache_lsize - 1));
 
-  for (address; address < (const char *) end; address += dcache_lsize)
+  for (; address < (const char *) end; address += dcache_lsize)
     asm volatile ("dc\tcvau, %0"
                  :
                  : "r" (address)
@@ -55,7 +57,7 @@ __aarch64_sync_cache_range (const void *base, const void *end)
   address = (const char*) ((__UINTPTR_TYPE__) base
                           & ~ (__UINTPTR_TYPE__) (icache_lsize - 1));
 
-  for (address; address < (const char *) end; address += icache_lsize)
+  for (; address < (const char *) end; address += icache_lsize)
     asm volatile ("ic\tivau, %0"
                  :
                  : "r" (address)