From patchwork Mon Oct 10 19:44:10 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Botcazou X-Patchwork-Id: 680550 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3st9Ys6fF8z9sDG for ; Tue, 11 Oct 2016 06:44:33 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=nX1dpryA; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=f/k4T4hYD+pJhvI5 3DuL0ERUkJ2dU5x1HrQC5MGO9st/6+b1FPuwETdTzfRsf+B7XHlaxWDETSD4oLGi uNr7Ejkdzlj+ty5BCfn2YRMrOJC7SMs85CaT+o2jkoE+cL4pQbdcTrIzEpVX2+CZ vyp/SDEZeojnGoU3Xg+T39/VWEE= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=default; bh=sWiOmUpwipomG8gO4xSK0J /eaUg=; b=nX1dpryAEOemgwsCNFYlvQHzuSuiJcIotMQ1hyKVDW+35MjmHI9TuM T3KcAZ35NgU8TBWtxwKbWz0tCZCicm/CFfyRH/+u1D/ovya6C8BdXa7UpcV5N0G2 MkTShip+oZWSyKCinIFJS0a9YK5QB1DifDZHqWCYo+YCeDdQHQ7pY= Received: (qmail 97685 invoked by alias); 10 Oct 2016 19:44:26 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 97660 invoked by uid 89); 10 Oct 2016 19:44:24 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=CC, fsplitstack, fsplit-stack, Hx-languages-length:1221 X-HELO: smtp.eu.adacore.com Received: from mel.act-europe.fr (HELO smtp.eu.adacore.com) (194.98.77.210) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 10 Oct 2016 19:44:13 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id A0DA5812FF for ; Mon, 10 Oct 2016 21:44:11 +0200 (CEST) Received: from smtp.eu.adacore.com ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id enPEorBt1WJ0 for ; Mon, 10 Oct 2016 21:44:11 +0200 (CEST) Received: from polaris.localnet (bon31-6-88-161-99-133.fbx.proxad.net [88.161.99.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.eu.adacore.com (Postfix) with ESMTPSA id 7C096812F8 for ; Mon, 10 Oct 2016 21:44:11 +0200 (CEST) From: Eric Botcazou To: gcc-patches@gcc.gnu.org Subject: [libgo] Silence compiler error message Date: Mon, 10 Oct 2016 21:44:10 +0200 Message-ID: <42229801.KuuiXnj593@polaris> User-Agent: KMail/4.14.10 (Linux/3.16.7-42-desktop; KDE/4.14.9; x86_64; ; ) MIME-Version: 1.0 Hi, on Solaris the configuration of the library yields an ugly: checking whether linker supports split/non-split linked together... cc1: error: '-fsplit-stack' is not supported by this compiler configuration xgcc: error: conftest1.o: No such file or directory no Tested on x86-64/Linux and SPARC/Solaris, OK for the mainline? 2016-10-10 Eric Botcazou * configure.ac (libgo_cv_c_linker_split_non_split): Redirect compiler output to /dev/null. * configure: Regenerate. Index: configure.ac =================================================================== --- configure.ac (revision 240888) +++ configure.ac (working copy) @@ -447,9 +447,9 @@ EOF cat > conftest2.c << EOF void f() {} EOF -$CC -c -fsplit-stack $CFLAGS $CPPFLAGS conftest1.c -$CC -c $CFLAGS $CPPFLAGS conftest2.c -if $CC -o conftest conftest1.$ac_objext conftest2.$ac_objext; then +$CC -c -fsplit-stack $CFLAGS $CPPFLAGS conftest1.c >/dev/null 2>&1 +$CC -c $CFLAGS $CPPFLAGS conftest2.c > /dev/null 2>&1 +if $CC -o conftest conftest1.$ac_objext conftest2.$ac_objext > /dev/null 2>&1; then libgo_cv_c_linker_split_non_split=yes else libgo_cv_c_linker_split_non_split=no