From 01c2ce169a05c8e59c4182796876f7e0754e4b5c Mon Sep 17 00:00:00 2001 From: Christophe Lyon Date: Thu, 25 Feb 2021 15:55:28 +0000 Subject: [PATCH] PR middle-end/97172 - ICE: tree code 'ssa_name' is not supported in LTO streams Skip test when -shared is not supported. 2021-02-25 Christophe Lyon gcc/testsuite/ PR middle-end/97172 * gcc.dg/pr97172-2.c: Add dg-require-effective-target shared. --- gcc/testsuite/gcc.dg/pr97172-2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/testsuite/gcc.dg/pr97172-2.c b/gcc/testsuite/gcc.dg/pr97172-2.c index 6f355bb..99cc6c2 100644 --- a/gcc/testsuite/gcc.dg/pr97172-2.c +++ b/gcc/testsuite/gcc.dg/pr97172-2.c @@ -3,6 +3,7 @@ { dg-do link } { dg-options "-Wall -flto -fpic -shared" } { dg-require-effective-target fpic } + { dg-require-effective-target shared } { dg-require-effective-target lto } */ #include "pr97172.c" -- 2.7.4