aboutsummaryrefslogtreecommitdiff
path: root/gcc/varasm.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2013-06-03 09:35:41 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2013-06-03 09:35:41 +0000
commit19cc6fac407a74bdb25358f6860a0ec4a4a8e753 (patch)
treefcf7232b2d27eccf34aaf19be9103bd1ef9d8dcb /gcc/varasm.c
parentc2b2130c71a0cb068077e5c6bc4260d04974b37b (diff)
downloadgcc-19cc6fac407a74bdb25358f6860a0ec4a4a8e753.zip
gcc-19cc6fac407a74bdb25358f6860a0ec4a4a8e753.tar.gz
gcc-19cc6fac407a74bdb25358f6860a0ec4a4a8e753.tar.bz2
varasm.c (output_constant): Minor formatting tweak.
* varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak. <STRING_CST>: Likewise. <VECTOR_CST>: Likewise. From-SVN: r199599
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r--gcc/varasm.c21
1 files changed, 7 insertions, 14 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c
index 5486e15..c088ebf 100644
--- a/gcc/varasm.c
+++ b/gcc/varasm.c
@@ -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;