]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR other/36901 (pedwarn() + -pedantic-errors + -w (inhibit_warnings) should not...
authorManuel López-Ibáñez <manu@gcc.gnu.org>
Sun, 10 Aug 2008 18:32:52 +0000 (18:32 +0000)
committerManuel López-Ibáñez <manu@gcc.gnu.org>
Sun, 10 Aug 2008 18:32:52 +0000 (18:32 +0000)
2008-08-10  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>

PR 36901
testsuite/
* gcc.dg/pr36901.h: Do not depend on limits.h.
* gcc.dg/pr36901-3.c: Update.
* gcc.dg/pr36901-4.c: Update.

From-SVN: r138932

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr36901-3.c
gcc/testsuite/gcc.dg/pr36901-4.c
gcc/testsuite/gcc.dg/pr36901.h

index c73e8bc9d5829a4619d8fc33ec91ee52100e3103..d242cad96214221538d651b1510eba4054f46286 100644 (file)
@@ -1,3 +1,10 @@
+2008-08-10  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
+
+       PR 36901
+       * gcc.dg/pr36901.h: Do not depend on limits.h.
+       * gcc.dg/pr36901-3.c: Update.
+       * gcc.dg/pr36901-4.c: Update.
+
 2008-08-09  Andrew Pinski  <andrew_pinski@playstation.sony.com>
 
        PR middle-end/36238
index 50e0d7207a1fbb4c482f71fad7223006beaf5f00..1f3574214767aeeb98195d1da128aee8a194c6c7 100644 (file)
@@ -6,5 +6,4 @@ void foo(void)
   int s = sc;
 }
 /* { dg-message "file included" "In file included" { target *-*-* } 0 } */
-/* { dg-warning "overflow" "overflow" { target *-*-* } 0 } */
-/* { dg-error "overflow" "overflow" { target *-*-* } 0 } */
+/* { dg-error "ordered comparison of pointer with integer zero" "pedantic error" { target *-*-* } 0 } */
index 319c2c241035f49d0f6d664375783152138cc6d9..f1d261657af73fa9e51c4edc901c80b18b8132d6 100644 (file)
@@ -6,6 +6,4 @@ void foo(void)
   int s = sc;
 }
 /* { dg-message "from " "In file included" { target *-*-* } 0 } */
-/* { dg-warning "overflow" "overflow" { target *-*-* } 0 } */
-/* { dg-error "overflow" "overflow" { target *-*-* } 0 } */
-/* { dg-error "#include_next is a GCC extension" "#include_next" { target *-*-* } 0 } */
+/* { dg-error "ordered comparison of pointer with integer zero" "pedantic error" { target *-*-* } 0 } */
index aff2cb39c6f534cd3984ab3d5841256916ecbdaa..e08d156412a5bc950a64b265f180d0ea45a7ec41 100644 (file)
@@ -1,2 +1,2 @@
-#include <limits.h>
-static int sc = INT_MAX + 1; 
+int sc = (&sc > 0);
+