From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15652 invoked by alias); 20 Nov 2014 17:25:51 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 15582 invoked by uid 48); 20 Nov 2014 17:25:46 -0000 From: "dominiq at lps dot ens.fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/63998] gcc.dg/lto/pr60820 fails on darwin Date: Thu, 20 Nov 2014 17:25:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dominiq at lps dot ens.fr X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-11/txt/msg02301.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63998 --- Comment #4 from Dominique d'Humieres --- > If so, it would probably need > > // { dg-additional-options "-Wl,-undefined,dynamic_lookup" { target *-*-darwin* } } > // { dg-additional-options "-Wl,-flat_namespace" { target *-*-darwin[89]* } } > > (see gcc.dg/attr-weakref-1.c). > > Untested so far. It does not work because lto does not support dg-additional-options. I confirm that adding -w to dg-lto-options fixes the failures. However I have noticed that there is a lto_prune_warns in lib/lto.exp. It would probably better to add "warning: alias definitions not supported in Mach-O; ignored" to the list.