summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorjamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4>2014-06-04 09:23:52 +0000
committerjamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4>2014-06-04 09:23:52 +0000
commit5cb7c8cf9860d39ab7d499b1a6c0f9c5ec4263bd (patch)
treea709ffe23b44fcd2abb68344a04e99f622598b1d /gcc
parenta499a116ce74465d3eff0040f5bc394de81ea237 (diff)
downloadgcc-5cb7c8cf9860d39ab7d499b1a6c0f9c5ec4263bd.tar.gz
2014-06-04 Martin Jambor <mjambor@suse.cz>
PR ipa/61340 * ipa-pure-const.c (propagate_pure_const): Add unreachable default handler for switch on an ipa_ref_use enum. * ipa-reference.c (analyze_function): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211216 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/ipa-pure-const.c2
-rw-r--r--gcc/ipa-reference.c2
3 files changed, 11 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index d36d0adf8e8..a4ae5a2a3ea 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2014-06-04 Martin Jambor <mjambor@suse.cz>
+
+ PR ipa/61340
+ * ipa-pure-const.c (propagate_pure_const): Add unreachable default
+ handler for switch on an ipa_ref_use enum.
+ * ipa-reference.c (analyze_function): Likewise.
+
2014-06-04 Kai Tietz <ktietz@redhat.com>
* recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
diff --git a/gcc/ipa-pure-const.c b/gcc/ipa-pure-const.c
index 0ebfe5d5994..b9a3d3e0418 100644
--- a/gcc/ipa-pure-const.c
+++ b/gcc/ipa-pure-const.c
@@ -1286,6 +1286,8 @@ propagate_pure_const (void)
break;
case IPA_REF_ADDR:
break;
+ default:
+ gcc_unreachable ();
}
better_state (&ref_state, &ref_looping,
w_l->state_previously_known,
diff --git a/gcc/ipa-reference.c b/gcc/ipa-reference.c
index ebff60cdfee..bc58cfa25ec 100644
--- a/gcc/ipa-reference.c
+++ b/gcc/ipa-reference.c
@@ -483,6 +483,8 @@ analyze_function (struct cgraph_node *fn)
break;
case IPA_REF_ADDR:
break;
+ default:
+ gcc_unreachable ();
}
}