* genemit.c (gen_exp): Remove -Wduplicated-cond hack.
authormpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 2 Oct 2015 17:49:15 +0000 (17:49 +0000)
committermpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 2 Oct 2015 17:49:15 +0000 (17:49 +0000)
* c.opt (Wduplicated-cond): Don't enable by -Wall anymore.

* c-c++-common/Wduplicated-cond-2.c: Skip until PR67819 is resolved.

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

gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/c-family/c.opt
gcc/genemit.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/Wduplicated-cond-2.c

index f9e5372..6e41810 100644 (file)
@@ -1,3 +1,7 @@
+2015-10-02  Marek Polacek  <polacek@redhat.com>
+
+       * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
+
 2015-10-02  Aditya Kumar  <aditya.k7@samsung.com>
 
        * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
index 8ab8964..78cc2bd 100644 (file)
@@ -1,5 +1,9 @@
 2015-10-02  Marek Polacek  <polacek@redhat.com>
 
+       * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
+
+2015-10-02  Marek Polacek  <polacek@redhat.com>
+
        PR c/64249
        * c-common.c (warn_duplicated_cond_add_or_warn): New function.
        * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
index a79b9f1..c62eefb 100644 (file)
@@ -407,7 +407,7 @@ C ObjC C++ ObjC++ Var(warn_div_by_zero) Init(1) Warning
 Warn about compile-time integer division by zero
 
 Wduplicated-cond
-C ObjC C++ ObjC++ Var(warn_duplicated_cond) Warning LangEnabledBy(C ObjC C++ ObjC++,Wall)
+C ObjC C++ ObjC++ Var(warn_duplicated_cond) Init(0) Warning
 Warn about duplicated conditions in an if-else-if chain
 
 Weffc++
index 13f9119..e92f757 100644 (file)
@@ -182,7 +182,7 @@ gen_exp (rtx x, enum rtx_code subroutine_type, char *used)
               && INTVAL (x) <= MAX_SAVED_CONST_INT)
        printf ("const_int_rtx[MAX_SAVED_CONST_INT + (%d)]",
                (int) INTVAL (x));
-      else if (STORE_FLAG_VALUE > 1 && INTVAL (x) == STORE_FLAG_VALUE)
+      else if (INTVAL (x) == STORE_FLAG_VALUE)
        printf ("const_true_rtx");
       else
        {
index 58a0289..8211e03 100644 (file)
@@ -1,3 +1,7 @@
+2015-10-02  Marek Polacek  <polacek@redhat.com>
+
+       * c-c++-common/Wduplicated-cond-2.c: Skip until PR67819 is resolved.
+
 2015-10-02  Sebastian Pop  <s.pop@samsung.com>
 
        PR tree-optimization/67754
index 90a8663..c424e76 100644 (file)
@@ -1,6 +1,7 @@
 /* PR c/64249 */
 /* { dg-do compile } */
 /* { dg-options "-Wall" } */
+/* { dg-skip-if "PR67819" { *-*-* } } */
 
 #ifndef __cplusplus
 # define bool _Bool