From 21c9aaf983c7c43e78893a24be40634adc443614 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Manuel=20L=C3=B3pez-Ib=C3=A1=C3=B1ez?= Date: Sun, 10 Aug 2008 18:32:52 +0000 Subject: [PATCH] re PR other/36901 (pedwarn() + -pedantic-errors + -w (inhibit_warnings) should not emit errors) 2008-08-10 Manuel Lopez-Ibanez 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 | 7 +++++++ gcc/testsuite/gcc.dg/pr36901-3.c | 3 +-- gcc/testsuite/gcc.dg/pr36901-4.c | 4 +--- gcc/testsuite/gcc.dg/pr36901.h | 4 ++-- 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index c73e8bc9d582..d242cad96214 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2008-08-10 Manuel Lopez-Ibanez + + 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 PR middle-end/36238 diff --git a/gcc/testsuite/gcc.dg/pr36901-3.c b/gcc/testsuite/gcc.dg/pr36901-3.c index 50e0d7207a1f..1f3574214767 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 319c2c241035..f1d261657af7 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 aff2cb39c6f5..e08d156412a5 100644 --- a/gcc/testsuite/gcc.dg/pr36901.h +++ b/gcc/testsuite/gcc.dg/pr36901.h @@ -1,2 +1,2 @@ -#include -static int sc = INT_MAX + 1; +int sc = (&sc > 0); + -- 2.47.2