aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAndreas Krebbel <krebbel@linux.vnet.ibm.com>2017-04-05 08:24:34 +0000
committerAndreas Krebbel <krebbel@gcc.gnu.org>2017-04-05 08:24:34 +0000
commitb88a6a88183a6cf44721881fe81a8f5c731bce4f (patch)
tree16a4248ee1a70cc77542bbffeb197f4827a98b20 /gcc
parent36f896c7728d0d0f39cea1f064a809c2e684db45 (diff)
downloadgcc-b88a6a88183a6cf44721881fe81a8f5c731bce4f.zip
gcc-b88a6a88183a6cf44721881fe81a8f5c731bce4f.tar.gz
gcc-b88a6a88183a6cf44721881fe81a8f5c731bce4f.tar.bz2
S/390: Initialize variable to avoid warning
gcc/ChangeLog: 2017-04-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com> * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Initialize last_match_fntype_index. From-SVN: r246700
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/s390/s390-c.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 3e1e070..5e6839c 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2017-04-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
+
+ * config/s390/s390-c.c (s390_resolve_overloaded_builtin):
+ Initialize last_match_fntype_index.
+
2017-04-05 Jakub Jelinek <jakub@redhat.com>
PR target/80310
diff --git a/gcc/config/s390/s390-c.c b/gcc/config/s390/s390-c.c
index fb8d821..35c3545 100644
--- a/gcc/config/s390/s390-c.c
+++ b/gcc/config/s390/s390-c.c
@@ -854,7 +854,7 @@ s390_resolve_overloaded_builtin (location_t loc,
const unsigned int ob_flags = bflags_for_builtin(ob_fcode);
int num_matches = 0;
tree target_builtin_decl, b_arg_chain, return_type;
- enum s390_builtin_ov_type_index last_match_fntype_index;
+ enum s390_builtin_ov_type_index last_match_fntype_index = BT_OV_MAX;
if (TARGET_DEBUG_ARG)
fprintf (stderr,