diff options
author | Andrew Pinski <apinski@marvell.com> | 2020-01-16 01:52:12 +0000 |
---|---|---|
committer | Andrew Pinski <apinski@marvell.com> | 2020-01-16 12:25:31 +0000 |
commit | 55c7ffae7021367df36588d7991a1fb0f870e2c6 (patch) | |
tree | f415c75a28c12fdf4da3cf6f803941e946dbd520 /gcc | |
parent | 2588197b6c2175d7ef9f05a8636f58dfeab12b1d (diff) | |
download | gcc-55c7ffae7021367df36588d7991a1fb0f870e2c6.zip gcc-55c7ffae7021367df36588d7991a1fb0f870e2c6.tar.gz gcc-55c7ffae7021367df36588d7991a1fb0f870e2c6.tar.bz2 |
Fix uninitialized field in expand_operand.
Commit g:f96bf49a0 added the target field to expand_operand.
But it leaves it uninitialized when doing a full initialization
inside create_expand_operand. This fixes the problem and improves
the code generation inside create_expand_operand too.
ChangeLog:
* optabs.h (create_expand_operand): Initialize target field also.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/optabs.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d21ec86..4196998 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2020-01-16 Andrew Pinski <apinski@marvell.com> + + * optabs.h (create_expand_operand): Initialize target field also. + 2020-01-16 Andre Vieira <andre.simoesdiasvieira@arm.com> PR tree-optimization/92429 diff --git a/gcc/optabs.h b/gcc/optabs.h index 07bdc56..5bd1950 100644 --- a/gcc/optabs.h +++ b/gcc/optabs.h @@ -78,6 +78,7 @@ create_expand_operand (class expand_operand *op, { op->type = type; op->unsigned_p = unsigned_p; + op->target = 0; op->unused = 0; op->mode = mode; op->value = value; |