diff options
author | Jozef Lawrynowicz <jozef.l@mittosystems.com> | 2018-11-17 00:45:43 +0000 |
---|---|---|
committer | Jozef Lawrynowicz <jozefl@gcc.gnu.org> | 2018-11-17 00:45:43 +0000 |
commit | 7cf403a36e197c40f42021e78b8fd9a5ede64b3f (patch) | |
tree | fcf8a4a465c3f427fa2815962ef6efbaf0e552aa /gcc | |
parent | 4bc4855280b05d5b159df887bf1657910094f992 (diff) | |
download | gcc-7cf403a36e197c40f42021e78b8fd9a5ede64b3f.zip gcc-7cf403a36e197c40f42021e78b8fd9a5ede64b3f.tar.gz gcc-7cf403a36e197c40f42021e78b8fd9a5ede64b3f.tar.bz2 |
re PR middle-end/87854 (gcc.c-torture/compile/pr46534.c ICE for 16-bit size_t)
2018-11-17 Jozef Lawrynowicz <jozef.l@mittosystems.com>
PR middle-end/87854
* g++.dg/parse/concat1.C: Add dg-error for targets with size_t < 32
bits. Update comment.
* gcc.dg/concat2.c: Likewise.
* gcc.c-torture/compile/pr46534.c: Likewise.
From-SVN: r266230
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/parse/concat1.C | 6 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/pr46534.c | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/concat2.c | 6 |
4 files changed, 14 insertions, 10 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index c879a8b..d0a237b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2018-11-17 Jozef Lawrynowicz <jozef.l@mittosystems.com> + + PR middle-end/87854 + * g++.dg/parse/concat1.C: Add dg-error for targets with size_t < 32 + bits. Update comment. + * gcc.dg/concat2.c: Likewise. + * gcc.c-torture/compile/pr46534.c: Likewise. + 2018-11-16 Jakub Jelinek <jakub@redhat.com> PR c++/87269 diff --git a/gcc/testsuite/g++.dg/parse/concat1.C b/gcc/testsuite/g++.dg/parse/concat1.C index 7bf97a6..7d19a7d 100644 --- a/gcc/testsuite/g++.dg/parse/concat1.C +++ b/gcc/testsuite/g++.dg/parse/concat1.C @@ -1,11 +1,9 @@ /* PR c/3581 */ /* { dg-do compile } */ -/* Intended as a compile-time test for string literal concatenation. - The fact that the string isn't actually used in the resulting program - should allow this to compile for any target. */ +/* Intended as a compile-time test for string literal concatenation. */ -#define e0 "a" +#define e0 "a" /* { dg-error "size of string literal is too large" "" { target { ! size32plus } } } */ #define e1 e0 e0 e0 e0 e0 e0 e0 e0 e0 e0 #define e2 e1 e1 e1 e1 e1 e1 e1 e1 e1 e1 #define e3 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 diff --git a/gcc/testsuite/gcc.c-torture/compile/pr46534.c b/gcc/testsuite/gcc.c-torture/compile/pr46534.c index 885aa6d..1894636 100644 --- a/gcc/testsuite/gcc.c-torture/compile/pr46534.c +++ b/gcc/testsuite/gcc.c-torture/compile/pr46534.c @@ -1,4 +1,4 @@ -/* { dg-skip-if "too big" { avr-*-* nvptx-*-* pdp11-*-* } } */ +/* { dg-skip-if "too big" { nvptx-*-* } } */ /* PR middle-end/46534 */ extern int printf (const char *, ...); @@ -14,5 +14,5 @@ extern int printf (const char *, ...); void foo (void) { - printf (S7 "\n"); + printf (S7 "\n"); /* { dg-error "size of string literal is too large" "" { target { ! size32plus } } } */ } diff --git a/gcc/testsuite/gcc.dg/concat2.c b/gcc/testsuite/gcc.dg/concat2.c index 1e92400..e9fa216 100644 --- a/gcc/testsuite/gcc.dg/concat2.c +++ b/gcc/testsuite/gcc.dg/concat2.c @@ -2,9 +2,7 @@ /* { dg-do compile } */ /* { dg-options "" } */ -/* Intended as a compile-time test for string literal concatenation. - The fact that the string isn't actually used in the resulting program - should allow this to compile for any target. */ +/* Intended as a compile-time test for string literal concatenation. */ #define e0 "a" #define e1 e0 e0 e0 e0 e0 e0 e0 e0 e0 e0 @@ -13,4 +11,4 @@ #define e4 e3 e3 e3 e3 e3 e3 e3 e3 e3 e3 #define e5 e4 e4 e4 e4 e4 e4 e4 e4 e4 e4 -void foo() { (void)(e5); } +void foo() { (void)(e5); } /* { dg-error "size of string literal is too large" "" { target { ! size32plus } } } */ |