varasm.c (output_constant): Minor formatting tweak.
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 3 Jun 2013 09:35:41 +0000 (09:35 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 3 Jun 2013 09:35:41 +0000 (09:35 +0000)
* varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
<STRING_CST>: Likewise.
<VECTOR_CST>: Likewise.

From-SVN: r199599

gcc/ChangeLog
gcc/varasm.c

index d9ab9eac21c79d97c7e0a74e5128d9f7ceb8498c..1a899cc7358b249a7e82b610ee3b16cb1551fe1f 100644 (file)
@@ -1,3 +1,9 @@
+2013-06-03  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
+       <STRING_CST>: Likewise.
+       <VECTOR_CST>: Likewise.
+
 2013-06-01  Janus Weil  <janus@gcc.gnu.org>
            Mikael Morin  <mikael@gcc.gnu.org>
 
index 5486e1518b14b3cb09d26dd0cd1fd8487e80b879..c088ebf90080eb97182b6ca6c8d45c7623a5464c 100644 (file)
@@ -4612,28 +4612,21 @@ output_constant (tree exp, unsigned HOST_WIDE_INT size, unsigned int align)
       switch (TREE_CODE (exp))
        {
        case CONSTRUCTOR:
-           output_constructor (exp, size, align, NULL);
+         output_constructor (exp, size, align, NULL);
          return;
        case STRING_CST:
-         thissize = MIN ((unsigned HOST_WIDE_INT)TREE_STRING_LENGTH (exp),
-                         size);
+         thissize
+           = MIN ((unsigned HOST_WIDE_INT)TREE_STRING_LENGTH (exp), size);
          assemble_string (TREE_STRING_POINTER (exp), thissize);
          break;
-
        case VECTOR_CST:
          {
-           int elt_size;
-           unsigned int i, nalign;
-           enum machine_mode inner;
-
-           inner = TYPE_MODE (TREE_TYPE (TREE_TYPE (exp)));
-           nalign = MIN (align, GET_MODE_ALIGNMENT (inner));
-
-           elt_size = GET_MODE_SIZE (inner);
-
+           enum machine_mode inner = TYPE_MODE (TREE_TYPE (TREE_TYPE (exp)));
+           unsigned int nalign = MIN (align, GET_MODE_ALIGNMENT (inner));
+           int elt_size = GET_MODE_SIZE (inner);
            output_constant (VECTOR_CST_ELT (exp, 0), elt_size, align);
            thissize = elt_size;
-           for (i = 1; i < VECTOR_CST_NELTS (exp); ++i)
+           for (unsigned int i = 1; i < VECTOR_CST_NELTS (exp); i++)
              {
                output_constant (VECTOR_CST_ELT (exp, i), elt_size, nalign);
                thissize += elt_size;