From ef9200aa356119b87c4e1b8d995e7d767dace57a Mon Sep 17 00:00:00 2001 From: Martin Sebor Date: Tue, 30 May 2017 21:27:35 +0000 Subject: [PATCH] re PR c/80731 (poor -Woverflow warnings, missing detail) gcc/testsuite/ChangeLog: PR c/80731 * g++.dg/ext/utf16-4.C: Relax test. * gcc.dg/fixed-point/int-warning.c: Adjust. From-SVN: r248700 --- gcc/testsuite/ChangeLog | 6 +++++ gcc/testsuite/g++.dg/ext/utf16-4.C | 2 +- .../gcc.dg/fixed-point/int-warning.c | 24 +++++++++---------- 3 files changed, 19 insertions(+), 13 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 8fbbfcece6b..1754a389ba8 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2017-05-30 Martin Sebor + + PR c/80731 + * g++.dg/ext/utf16-4.C: Relax test. + * gcc.dg/fixed-point/int-warning.c: Adjust. + 2017-05-30 David Malcolm * g++.dg/plugin/plugin.exp (plugin_test_list): Add... diff --git a/gcc/testsuite/g++.dg/ext/utf16-4.C b/gcc/testsuite/g++.dg/ext/utf16-4.C index 2c4377cea5d..e32c5edb573 100644 --- a/gcc/testsuite/g++.dg/ext/utf16-4.C +++ b/gcc/testsuite/g++.dg/ext/utf16-4.C @@ -13,6 +13,6 @@ const static char16_t c5 = U'\u2029'; const static char16_t c6 = U'\U00064321'; /* { dg-warning "conversion from .char32_t. to .char16_t. changes value from .410401. to .17185." } */ const static char16_t c7 = L'a'; const static char16_t c8 = L'\u2029'; -const static char16_t c9 = L'\U00064321'; /* { dg-warning "unsigned conversion from .wchar_t. to .char16_t. changes value from .410401. to .17185." "" { target { 4byte_wchar_t } } } */ +const static char16_t c9 = L'\U00064321'; /* { dg-warning "conversion from .wchar_t. to .char16_t. changes value from .410401. to .17185." "" { target { 4byte_wchar_t } } } */ /* { dg-warning "constant too long" "" { target { ! 4byte_wchar_t } } .-1 } */ int main () {} diff --git a/gcc/testsuite/gcc.dg/fixed-point/int-warning.c b/gcc/testsuite/gcc.dg/fixed-point/int-warning.c index cf48e4ba2b3..14adcc7221d 100644 --- a/gcc/testsuite/gcc.dg/fixed-point/int-warning.c +++ b/gcc/testsuite/gcc.dg/fixed-point/int-warning.c @@ -9,16 +9,16 @@ unsigned char uc; void test() { - sc = 500k; /* { dg-warning "overflow in implicit constant conversion" } */ - sc = -500k; /* { dg-warning "overflow in implicit constant conversion" } */ - sc = 500lk; /* { dg-warning "overflow in implicit constant conversion" } */ - sc = -500lk; /* { dg-warning "overflow in implicit constant conversion" } */ - sc = 500llk; /* { dg-warning "overflow in implicit constant conversion" } */ - sc = -500llk; /* { dg-warning "overflow in implicit constant conversion" } */ - uc = 500k; /* { dg-warning "overflow in implicit constant conversion" } */ - uc = -500k; /* { dg-warning "overflow in implicit constant conversion" } */ - uc = 500lk; /* { dg-warning "overflow in implicit constant conversion" } */ - uc = -500lk; /* { dg-warning "overflow in implicit constant conversion" } */ - uc = 500llk; /* { dg-warning "overflow in implicit constant conversion" } */ - uc = -500llk; /* { dg-warning "overflow in implicit constant conversion" } */ + sc = 500k; /* { dg-warning "overflow in conversion" } */ + sc = -500k; /* { dg-warning "overflow in conversion" } */ + sc = 500lk; /* { dg-warning "overflow in conversion" } */ + sc = -500lk; /* { dg-warning "overflow in conversion" } */ + sc = 500llk; /* { dg-warning "overflow in conversion" } */ + sc = -500llk; /* { dg-warning "overflow in conversion" } */ + uc = 500k; /* { dg-warning "overflow in conversion" } */ + uc = -500k; /* { dg-warning "overflow in conversion" } */ + uc = 500lk; /* { dg-warning "overflow in conversion" } */ + uc = -500lk; /* { dg-warning "overflow in conversion" } */ + uc = 500llk; /* { dg-warning "overflow in conversion" } */ + uc = -500llk; /* { dg-warning "overflow in conversion" } */ } -- 2.30.2