diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/dbgcnt.c | 2 | ||||
-rw-r--r-- | gcc/gcov.c | 4 | ||||
-rw-r--r-- | gcc/lto-compress.c | 4 | ||||
-rw-r--r-- | gcc/targhooks.c | 4 |
4 files changed, 2 insertions, 12 deletions
diff --git a/gcc/dbgcnt.c b/gcc/dbgcnt.c index 6a7eb34c..458341a 100644 --- a/gcc/dbgcnt.c +++ b/gcc/dbgcnt.c @@ -208,7 +208,6 @@ void dbg_cnt_process_opt (const char *arg) { char *str = xstrdup (arg); - unsigned int start = 0; auto_vec<char *> tokens; for (char *next = strtok (str, ","); next != NULL; next = strtok (NULL, ",")) @@ -227,7 +226,6 @@ dbg_cnt_process_opt (const char *arg) if (!dbg_cnt_process_single_pair (name, ranges[j])) break; } - start += strlen (tokens[i]) + 1; } } @@ -843,7 +843,6 @@ get_cycles_count (line_info &linfo) Therefore, operating on a permuted order (i.e., non-sorted) only has the effect of permuting the output cycles. */ - bool loop_found = false; gcov_type count = 0; for (vector<block_info *>::iterator it = linfo.blocks.begin (); it != linfo.blocks.end (); it++) @@ -851,8 +850,7 @@ get_cycles_count (line_info &linfo) arc_vector_t path; block_vector_t blocked; vector<block_vector_t > block_lists; - loop_found |= circuit (*it, path, *it, blocked, block_lists, linfo, - count); + circuit (*it, path, *it, blocked, block_lists, linfo, count); } return count; diff --git a/gcc/lto-compress.c b/gcc/lto-compress.c index b5f4916..c40a13c 100644 --- a/gcc/lto-compress.c +++ b/gcc/lto-compress.c @@ -250,7 +250,6 @@ lto_compression_zlib (struct lto_compression_stream *stream) const size_t outbuf_length = Z_BUFFER_LENGTH; unsigned char *outbuf = (unsigned char *) xmalloc (outbuf_length); z_stream out_stream; - size_t compressed_bytes = 0; int status; gcc_assert (stream->is_compression); @@ -282,7 +281,6 @@ lto_compression_zlib (struct lto_compression_stream *stream) stream->callback ((const char *) outbuf, out_bytes, stream->opaque); lto_stats.num_compressed_il_bytes += out_bytes; - compressed_bytes += out_bytes; cursor += in_bytes; remaining -= in_bytes; @@ -342,7 +340,6 @@ lto_uncompression_zlib (struct lto_compression_stream *stream) size_t remaining = stream->bytes; const size_t outbuf_length = Z_BUFFER_LENGTH; unsigned char *outbuf = (unsigned char *) xmalloc (outbuf_length); - size_t uncompressed_bytes = 0; gcc_assert (!stream->is_compression); timevar_push (TV_IPA_LTO_DECOMPRESS); @@ -378,7 +375,6 @@ lto_uncompression_zlib (struct lto_compression_stream *stream) stream->callback ((const char *) outbuf, out_bytes, stream->opaque); lto_stats.num_uncompressed_il_bytes += out_bytes; - uncompressed_bytes += out_bytes; cursor += in_bytes; remaining -= in_bytes; diff --git a/gcc/targhooks.c b/gcc/targhooks.c index cbbcedf..812bbe3 100644 --- a/gcc/targhooks.c +++ b/gcc/targhooks.c @@ -2200,7 +2200,7 @@ pch_option_mismatch (const char *option) /* Default version of pch_valid_p. */ const char * -default_pch_valid_p (const void *data_p, size_t len) +default_pch_valid_p (const void *data_p, size_t len ATTRIBUTE_UNUSED) { struct cl_option_state state; const char *data = (const char *)data_p; @@ -2221,7 +2221,6 @@ default_pch_valid_p (const void *data_p, size_t len) memcpy (&tf, data, sizeof (target_flags)); data += sizeof (target_flags); - len -= sizeof (target_flags); r = targetm.check_pch_target_flags (tf); if (r != NULL) return r; @@ -2233,7 +2232,6 @@ default_pch_valid_p (const void *data_p, size_t len) if (memcmp (data, state.data, state.size) != 0) return pch_option_mismatch (cl_options[i].opt_text); data += state.size; - len -= state.size; } return NULL; |