summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>2012-07-05 07:22:17 +0000
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>2012-07-05 07:22:17 +0000
commit45e9f8030b82e71990c2e0bff19bb5855e8f4a20 (patch)
tree0db63669724f9521ee83dc3f4ca9656d8bbe6a36
parenta3f4b5ccaad9aec93bf280e5cbcb46ed42e24c1e (diff)
downloadgcc-45e9f8030b82e71990c2e0bff19bb5855e8f4a20.tar.gz
* expmed.c (expand_mult): Initialize coeff and is_neg.
java/ChangeLog: * jcf-io.c (read_zip_member): Initialize d_stream. fortran/ChangLog: PR fortran/53449 * parse.c (gfc_parse_file): Initialize errors_before. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@189281 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/expmed.c4
-rw-r--r--gcc/fortran/ChangeLog5
-rw-r--r--gcc/fortran/parse.c1
-rw-r--r--gcc/java/ChangeLog6
-rw-r--r--gcc/java/jcf-io.c4
6 files changed, 18 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index c1f8098c70b..48015aea00e 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2012-07-04 Uros Bizjak <ubizjak@gmail.com>
+
+ * expmed.c (expand_mult): Initialize coeff and is_neg.
+
2012-07-04 Oleg Endo <olegendo@gcc.gnu.org>
* config/sh/predicates.md (zero_extend_operand): New predicate.
diff --git a/gcc/expmed.c b/gcc/expmed.c
index 989f86cbe7a..cec8d23da1a 100644
--- a/gcc/expmed.c
+++ b/gcc/expmed.c
@@ -3138,8 +3138,8 @@ expand_mult (enum machine_mode mode, rtx op0, rtx op1, rtx target,
if (INTEGRAL_MODE_P (mode))
{
rtx fake_reg;
- HOST_WIDE_INT coeff;
- bool is_neg;
+ HOST_WIDE_INT coeff = 0;
+ bool is_neg = false;
int mode_bitsize;
if (op1 == CONST0_RTX (mode))
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog
index bbd0b50a904..2b0483522a4 100644
--- a/gcc/fortran/ChangeLog
+++ b/gcc/fortran/ChangeLog
@@ -1,3 +1,8 @@
+2012-07-05 Uros Bizjak <ubizjak@gmail.com>
+
+ PR fortran/53449
+ * parse.c (gfc_parse_file): Initialize errors_before.
+
2012-06-27 Janus Weil <janus@gcc.gnu.org>
PR fortran/41951
diff --git a/gcc/fortran/parse.c b/gcc/fortran/parse.c
index 4e7f691e630..54c6fc1010e 100644
--- a/gcc/fortran/parse.c
+++ b/gcc/fortran/parse.c
@@ -4512,6 +4512,7 @@ gfc_parse_file (void)
gfc_global_ns_list = next = NULL;
seen_program = 0;
+ errors_before = 0;
/* Exit early for empty files. */
if (gfc_at_eof ())
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index 6cece34294c..94edcdfb3f6 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -1,3 +1,7 @@
+2012-07-05 Uros Bizjak <ubizjak@gmail.com>
+
+ * jcf-io.c (read_zip_member): Initialize d_stream.
+
2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
* resource.c: Do not include output.h.
@@ -658,7 +662,7 @@
(predefined_filenames): Declare.
(add_predefined_file): Use it.
(predefined_filename_p): Likewise.
- (java_parse_file): Adjust for new type of current_file_list. *
+ (java_parse_file): Adjust for new type of current_file_list.
2010-05-25 Jakub Jelinek <jakub@redhat.com>
diff --git a/gcc/java/jcf-io.c b/gcc/java/jcf-io.c
index c50ec49ccc5..0fe30b30ca5 100644
--- a/gcc/java/jcf-io.c
+++ b/gcc/java/jcf-io.c
@@ -202,9 +202,7 @@ read_zip_member (JCF *jcf, ZipDirectory *zipd, ZipFile *zipf)
{
char *buffer;
z_stream d_stream; /* decompression stream */
- d_stream.zalloc = (alloc_func) 0;
- d_stream.zfree = (free_func) 0;
- d_stream.opaque = (voidpf) 0;
+ memset (&d_stream, 0, sizeof (d_stream));
jcf->buffer = XNEWVEC (unsigned char, zipd->uncompressed_size);
d_stream.next_out = jcf->buffer;