aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorManuel López-Ibáñez <manu@gcc.gnu.org>2008-08-10 18:32:52 +0000
committerManuel López-Ibáñez <manu@gcc.gnu.org>2008-08-10 18:32:52 +0000
commit21c9aaf983c7c43e78893a24be40634adc443614 (patch)
tree36fc220f2069551cf96e27ff6ccde533b84df7db /gcc
parent77d451087596cba90c948eb7c4446f4f9a2a785a (diff)
downloadgcc-21c9aaf983c7c43e78893a24be40634adc443614.zip
gcc-21c9aaf983c7c43e78893a24be40634adc443614.tar.gz
gcc-21c9aaf983c7c43e78893a24be40634adc443614.tar.bz2
re PR other/36901 (pedwarn() + -pedantic-errors + -w (inhibit_warnings) should not emit errors)
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog7
-rw-r--r--gcc/testsuite/gcc.dg/pr36901-3.c3
-rw-r--r--gcc/testsuite/gcc.dg/pr36901-4.c4
-rw-r--r--gcc/testsuite/gcc.dg/pr36901.h4
4 files changed, 11 insertions, 7 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index c73e8bc..d242cad 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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
diff --git a/gcc/testsuite/gcc.dg/pr36901-3.c b/gcc/testsuite/gcc.dg/pr36901-3.c
index 50e0d72..1f35742 100644
--- a/gcc/testsuite/gcc.dg/pr36901-3.c
+++ b/gcc/testsuite/gcc.dg/pr36901-3.c
@@ -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 } */
diff --git a/gcc/testsuite/gcc.dg/pr36901-4.c b/gcc/testsuite/gcc.dg/pr36901-4.c
index 319c2c2..f1d2616 100644
--- a/gcc/testsuite/gcc.dg/pr36901-4.c
+++ b/gcc/testsuite/gcc.dg/pr36901-4.c
@@ -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 } */
diff --git a/gcc/testsuite/gcc.dg/pr36901.h b/gcc/testsuite/gcc.dg/pr36901.h
index aff2cb3..e08d156 100644
--- a/gcc/testsuite/gcc.dg/pr36901.h
+++ b/gcc/testsuite/gcc.dg/pr36901.h
@@ -1,2 +1,2 @@
-#include <limits.h>
-static int sc = INT_MAX + 1;
+int sc = (&sc > 0);
+