https://gcc.gnu.org/g:24df2ab33c5e805054006e7b4b94d4270d82074f

commit r15-2887-g24df2ab33c5e805054006e7b4b94d4270d82074f
Author: Joern Rennecke <joern.renne...@riscy-ip.com>
Date:   Mon Aug 12 11:30:02 2024 +0100

    16-bit testsuite fixes - excessive code size
    
    gcc/testsuite/
            * gcc.c-torture/execute/20021120-1.c: Skip if not size20plus or -Os.
            * gcc.dg/fixed-point/convert-float-4.c: Require size20plus.
            * gcc.dg/torture/pr112282.c: Skip if -O0 unless size20plus.
            * g++.dg/lookup/pr21802.C: Require size20plus.

Diff:
---
 gcc/testsuite/g++.dg/lookup/pr21802.C              | 1 +
 gcc/testsuite/gcc.c-torture/execute/20021120-1.c   | 2 ++
 gcc/testsuite/gcc.dg/fixed-point/convert-float-4.c | 1 +
 gcc/testsuite/gcc.dg/torture/pr112282.c            | 1 +
 4 files changed, 5 insertions(+)

diff --git a/gcc/testsuite/g++.dg/lookup/pr21802.C 
b/gcc/testsuite/g++.dg/lookup/pr21802.C
index 18b2219166a4..0b1d63c3c4b5 100644
--- a/gcc/testsuite/g++.dg/lookup/pr21802.C
+++ b/gcc/testsuite/g++.dg/lookup/pr21802.C
@@ -1,5 +1,6 @@
 // PR c++/21802
 // { dg-do run }
+// { dg-require-effective-target size20plus }
 #include <cassert>
 
 struct X;
diff --git a/gcc/testsuite/gcc.c-torture/execute/20021120-1.c 
b/gcc/testsuite/gcc.c-torture/execute/20021120-1.c
index 68043cc949cb..013e0a4650ec 100644
--- a/gcc/testsuite/gcc.c-torture/execute/20021120-1.c
+++ b/gcc/testsuite/gcc.c-torture/execute/20021120-1.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "memory tight" { ! size20plus } { "*" } { "-Os" } } */
+
 void abort (void);
 void exit (int);
 
diff --git a/gcc/testsuite/gcc.dg/fixed-point/convert-float-4.c 
b/gcc/testsuite/gcc.dg/fixed-point/convert-float-4.c
index c25a55c07155..a9275342f08e 100644
--- a/gcc/testsuite/gcc.dg/fixed-point/convert-float-4.c
+++ b/gcc/testsuite/gcc.dg/fixed-point/convert-float-4.c
@@ -1,5 +1,6 @@
 /* { dg-do run } */
 /* { dg-options "-std=gnu99 -O0" } */
+/* { dg-require-effective-target size20plus } */
 
 /* C99 6.3 Conversions.
 
diff --git a/gcc/testsuite/gcc.dg/torture/pr112282.c 
b/gcc/testsuite/gcc.dg/torture/pr112282.c
index cfe364f9a841..a016f6e230cb 100644
--- a/gcc/testsuite/gcc.dg/torture/pr112282.c
+++ b/gcc/testsuite/gcc.dg/torture/pr112282.c
@@ -1,4 +1,5 @@
 /* { dg-do run } */
+/* { dg-skip-if "memory tight" { ! size20plus } { "-O0" } } */
 
 #if __SIZEOF_INT__ < 4
 #define Xint __INT32_TYPE__

Reply via email to