[Patch] Fix spurious warning in ccmp.c
authorjiwang <jiwang@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 19 Jan 2016 18:02:48 +0000 (18:02 +0000)
committerjiwang <jiwang@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 19 Jan 2016 18:02:48 +0000 (18:02 +0000)
2016-01-19  Wilco Dijkstra  <wdijkstr@arm.com>

* ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@232576 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/ccmp.c

index 5c4a132..63b2bee 100644 (file)
@@ -1,3 +1,7 @@
+2016-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
+
+       * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
+
 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
 
        PR ipa/66223
index 9e49d1e..9f1ce29 100644 (file)
@@ -170,7 +170,7 @@ expand_ccmp_expr_1 (gimple *g, rtx *prep_seq, rtx *gen_seq)
          int unsignedp0, unsignedp1;
          rtx_code rcode0, rcode1;
          int speed_p = optimize_insn_for_speed_p ();
-         rtx tmp2, ret, ret2;
+         rtx tmp2, ret = NULL_RTX, ret2 = NULL_RTX;
          unsigned cost1 = MAX_COST;
          unsigned cost2 = MAX_COST;