[testsuite,pushed] Fix sloppy PR119160 test

Message ID ca032c86-c3ba-4411-9b40-1d0a6b29e59f@gjlay.de
State New
Headers
Series [testsuite,pushed] Fix sloppy PR119160 test |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_simplebootstrap_build--master-aarch64-bootstrap fail Patch failed to apply
linaro-tcwg-bot/tcwg_simplebootstrap_build--master-arm-bootstrap fail Patch failed to apply

Commit Message

Georg-Johann Lay Sept. 1, 2026, 6:09 p.m. UTC
  gcc.dg/pr119160 failed with

FAIL: gcc.dg/pr119160.c (test for excess errors)
Excess errors:
cc1: warning: instruction scheduling not supported on this target machine

Johann

--

gcc/testsuite/
	PR testsuite/119160
	* gcc.dg/pr119160.c: Require scheduling.
  

Patch

diff --git a/gcc/testsuite/gcc.dg/pr119160.c 
b/gcc/testsuite/gcc.dg/pr119160.c
index c3d9b811f16..c2738e8cac8 100644
--- a/gcc/testsuite/gcc.dg/pr119160.c
+++ b/gcc/testsuite/gcc.dg/pr119160.c
@@ -1,4 +1,4 @@ 
-/* { dg-do run } */
+/* { dg-do run { target { scheduling } } } */
  /* { dg-options "-O2 -finstrument-functions-once 
-favoid-store-forwarding -fnon-call-exceptions -fschedule-insns 
-Wno-psabi" } */
  /* { dg-additional-options "-mgeneral-regs-only" { target { x86_64-*-* 
i?86-*-* arm*-*-* aarch64*-*-* } } } */