From 1a9825f7d489cab7256bc3ff6dd67cdcf1e28922 Mon Sep 17 00:00:00 2001 From: Dominique d'Humieres Date: Mon, 15 Apr 2019 09:56:43 +0200 Subject: [PATCH] re PR tree-optimization/90020 (-O2 -Os x86-64 wrong code generated for GNU Emacs) 2019-04-15 Dominique d'Humieres PR tree-optimization/90020 * gcc.dg/torture/pr90020.c: Add linker options for darwin. From-SVN: r270360 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.dg/torture/pr90020.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 8055780aaa1..877ecc46502 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2019-04-15 Dominique d'Humieres + + PR tree-optimization/90020 + * gcc.dg/torture/pr90020.c: Add linker options for darwin. + 2019-04-14 Jan Hubicka PR lto/89358 diff --git a/gcc/testsuite/gcc.dg/torture/pr90020.c b/gcc/testsuite/gcc.dg/torture/pr90020.c index 2aa8aa0e4a4..1748243852a 100644 --- a/gcc/testsuite/gcc.dg/torture/pr90020.c +++ b/gcc/testsuite/gcc.dg/torture/pr90020.c @@ -1,5 +1,7 @@ /* { dg-do run } */ /* { dg-require-weak "" } */ +/* { dg-additional-options "-Wl,-undefined,dynamic_lookup" { target *-*-darwin* } } */ +/* { dg-additional-options "-Wl,-flat_namespace" { target *-*-darwin[89]* } } */ void __attribute__((noinline,noclone)) check (int i) -- 2.30.2