[PATCH]Use "unsigned int" to hold alignment in emit_local function.
authorRenlin Li <renlin.li@arm.com>
Wed, 24 Jun 2015 08:35:20 +0000 (08:35 +0000)
committerRenlin Li <renlin@gcc.gnu.org>
Wed, 24 Jun 2015 08:35:20 +0000 (08:35 +0000)
gcc/

2015-06-24  Renlin Li  <renlin.li@arm.com>

* varasm.c (emit_local): Use unsigned int for align variable.

From-SVN: r224880

gcc/ChangeLog
gcc/varasm.c

index 8a95bc27bb72fe417490417dd0861724413e5110..15091732ac743e770ced334c6e3e7acb2a007103 100644 (file)
@@ -1,3 +1,7 @@
+2015-06-24  Renlin Li  <renlin.li@arm.com>
+
+       * varasm.c (emit_local): Use unsigned int for align variable.
+
 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
 
        PR target/63408
index 381f99cdd193af0ac1224cb4dd999b17615795ea..056d8c77219fddbc75adeb7df6b4b04d9ddda353 100644 (file)
@@ -1946,12 +1946,12 @@ emit_local (tree decl ATTRIBUTE_UNUSED,
            unsigned HOST_WIDE_INT rounded ATTRIBUTE_UNUSED)
 {
 #if defined ASM_OUTPUT_ALIGNED_DECL_LOCAL
-  int align = symtab_node::get (decl)->definition_alignment ();
+  unsigned int align = symtab_node::get (decl)->definition_alignment ();
   ASM_OUTPUT_ALIGNED_DECL_LOCAL (asm_out_file, decl, name,
                                 size, align);
   return true;
 #elif defined ASM_OUTPUT_ALIGNED_LOCAL
-  int align = symtab_node::get (decl)->definition_alignment ();
+  unsigned int align = symtab_node::get (decl)->definition_alignment ();
   ASM_OUTPUT_ALIGNED_LOCAL (asm_out_file, name, size, align);
   return true;
 #else