From: Manuel López-Ibáñez Date: Sun, 10 Aug 2008 18:32:52 +0000 (+0000) Subject: re PR other/36901 (pedwarn() + -pedantic-errors + -w (inhibit_warnings) should not... X-Git-Tag: releases/gcc-4.4.0~3204 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=21c9aaf983c7c43e78893a24be40634adc443614;p=thirdparty%2Fgcc.git 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 --- 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); +