From: Antoni Boucher <[email protected]>

gcc/testsuite/ChangeLog:

        * jit.dg/test-cold-attribute.c: Use -Oz to fix test.
---
 gcc/testsuite/jit.dg/test-cold-attribute.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/testsuite/jit.dg/test-cold-attribute.c b/gcc/testsuite/jit.dg/test-cold-attribute.c
index 0c76d3e36818..620b04d99846 100644
--- a/gcc/testsuite/jit.dg/test-cold-attribute.c
+++ b/gcc/testsuite/jit.dg/test-cold-attribute.c
@@ -8,8 +8,8 @@
 #define TEST_ESCHEWS_SET_OPTIONS
 static void set_options (gcc_jit_context *ctxt, const char *argv0)
 {
-  // Set "-O2".
-  gcc_jit_context_set_int_option(ctxt, GCC_JIT_INT_OPTION_OPTIMIZATION_LEVEL, 2);
+  // Set "-Oz".
+  gcc_jit_context_add_command_line_option (ctxt, "-Oz");
 }
 
 #define TEST_COMPILING_TO_FILE

Reply via email to